A simple bash script for backup up directories to Dropbox
- Go to https://www.dropbox.com/developers/apps and setup an API v2 app with full access to your Dropbox account
- Configure the appropriate variables in the header of
backup.sh
- Run
chmod o+x ./backup.sh
- Launch the script with
./backup.sh
or add it to a scheduled cron - Profit
This script is overly simple and assumes your settings are correct; there is currently no error checking.
- Delete backup files after reaching a certain age
- Maybe some other stuff