brds
BRDS
Utility makes directories structure backup or recovery. The main feature is to save structure to YAML file as list of directories and metadata.
Installation
- Clone repo
git clone https://github.com/creadone/brds.git
- Install dependencies
cd brds && shards
- Build release
crystal build --release ./src/brds.cr -o ./dist/brds
Usage
See ./brds --help
for manual page.
How to:
./brds [flags...] [arg...]
Backup and recovery directories structure
Flags:
--file, -f (default: backup.yaml) # Backup or recovery source file
--help (default: false) # Display help for the current command
--mode, -m (required) # Work mode (backup | recovery)
--target, -t (default: ./) # Path to directory where backup or recovery process will start
- To make backup:
./brds -m backup -f /path/to/backup.yaml -t /dirs/to/backup
- To recover from backup:
./brds -m recovery -f /path/to/backup.yaml -t /path/to/recovery/dirs
Contributing
- Fork it ( https://github.com/creadone/brds/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- creadone - owner, maintainer
Repository
brds
Owner
Statistic
- 2
- 0
- 0
- 0
- 1
- over 7 years ago
- August 15, 2017
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 19:23:03 GMT
Languages