diff options
Diffstat (limited to 'scripts/backup/README')
| -rw-r--r-- | scripts/backup/README | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/backup/README b/scripts/backup/README new file mode 100644 index 0000000..4a245a6 --- /dev/null +++ b/scripts/backup/README @@ -0,0 +1,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. |
