A sipmle backup script that lives on a removable drive and backs up specified files using rsync.
The script resolves paths relative to its own location, in order to not depend on a specific mount point.
./usb-backup.sh /path/to/backup/destination/The script reads backup.conf (located next to the script) fot a list of
files and directories to back up and copies them into a timestamped directory
at the destination.
Edit backup.conf to specify what to back up. Each line is a path relative
to the config file:
# backup entire directory
path/to/directory/
# single file
path/to/file.txt
# paths further up the file tree work too
../../path/to/another/file.md
Empty lines and lines starting with # are ignored.
All contributions are welcome, even tiny ones.
- Fix a typo
- Suggest a feature
- Report a bug
- Improve the README
- Improve the script itself
Don't worry if you aren't that experienced yet, we'll figure it out together.
By contributing to this project, you agree to the terms in CONTRIBUTING.md
BSD Zero Clause License (0BSD) - see LICENSE.