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
- Host: GitHub
- URL: https://github.com/raomuyang/baku
- Owner: raomuyang
- License: mit
- Created: 2019-10-17T06:48:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-17T07:48:51.000Z (over 5 years ago)
- Last Synced: 2025-01-29T06:51:26.214Z (5 months ago)
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BAKU
[](https://travis-ci.org/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.