diff options
| author | Max Bossing <info@maxbossing.de> | 2025-09-30 18:54:24 +0200 | 
|---|---|---|
| committer | Max Bossing <info@maxbossing.de> | 2025-09-30 18:54:24 +0200 | 
| commit | e97191522940cb52be082aa76a4e79cef1bd9afe (patch) | |
| tree | 7da4364c4ccf847b75e3df164f7b09435690955d /scripts/backup/README | |
| parent | 75c02e4c3d5db45cd18157a780a92014cfcf3d26 (diff) | |
backup: generalize backup script
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. | 
