Skip to content
 
 

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usb-backup

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.

Usage

./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.

Configuration

Edit backup.conf to specify what to back up. Each line is a path relative to the config file:

# directories must end with '/'
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.

Contributing

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

License

BSD Zero Clause License (0BSD) - see LICENSE.

About

A simple bash script used to backup configurable files from a removable drive to a given destination.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages