An open API service indexing awesome lists of open source software.

https://github.com/raomuyang/baku

a tool for coping/merge directories
https://github.com/raomuyang/baku

Last synced: 3 months ago
JSON representation

a tool for coping/merge directories

Awesome Lists containing this project

README

        

# BAKU

[![Build Status](https://travis-ci.org/raomuyang/baku.svg?branch=master)](https://travis-ci.org/raomuyang/baku)
[![Go Report Card](https://goreportcard.com/badge/github.com/raomuyang/baku)](https://goreportcard.com/report/github.com/raomuyang/baku)

A tool for coping/merge directories

## Usage

* create a hard link for backup

```shell
baku -src /path/src -dst /path/to/backup/root/ -link
```

* create overwrite existing files

```shell
baku -src /path/src -dst /path/to/backup/root/ -overwrite
```

* ignore special files by regex

```shell
baku -src /path/src -dst /path/to/backup/root/ -ignore "\.git"
```

* specify the custom "copy command"

```shell
baku -src /path/src -dst /path/to/backup/root/ -cmd "cp"
```

> The symbol link of a directory was unsupported now in builtin functions.