This is a set of scripts to help with creating local backups. Note that it does not save these backups to an external location. You must set that up yourself.
- Clone repo.
- Copy
config_example.py
toconfig.py
. - Edit settings/backup specs in config.py.
- Add to crontab to run periodically:
- (on mac)
EDITOR=vi crontab -e
- Add a line like this:
37 2 * * * /bin/bash -l -c '/<path>/<to>/<this>/<dir>/make_backups.py' > /tmp/backups.log
. This will run the backups script every day at 02:37. - Confirm that your crontab was changed by running
crontab -l
. You should see the line you added in the output. - Copy your ~/backups folder to an external location.
- Periodically check your backups, to make sure they are capturing what you want.