aboutsummaryrefslogtreecommitdiff
path: root/scripts/backup/README
blob: 4a245a67a8ded85546c3250e917798d574dde3cd (plain)
1
2
3
4
5
6
7
8
9
10
11
# backup.sh 

This simply copies a remote directory's contents to a local directory.

1. Drop this script in your home and make it executable.
2. Create a new ssh keypair and put the private key somewhere only you have access to (this file needs to have 0600 permissions).
3. For every thing you want to backup, create a bash script that sets the REMOTE_LOCATION and BACKUP_DIR variable.
3. Add a new cron job like this `@daily BASH_ENV=$HOME/environment.sh $HOME/backup.sh >> $HOME/backup.log`.


License: It's like 10 lines bro. MIT if you must.