aboutsummaryrefslogtreecommitdiff
path: root/scripts/backup/README.md
diff options
context:
space:
mode:
authorMax Bossing <info@maxbossing.de>2025-10-05 02:24:11 +0200
committerMax Bossing <info@maxbossing.de>2025-10-05 02:24:11 +0200
commit96b5b9dbd60e1a6bb4a1b10d7cd7954d5a49ad68 (patch)
treeada38e8f1f1ab09c4e7a7bc3c8bbbc3caa12c8ef /scripts/backup/README.md
parent3ba5f886414c0baeab4bb0036e9641cc5cd60c92 (diff)
markdownisation
Diffstat (limited to 'scripts/backup/README.md')
-rw-r--r--scripts/backup/README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/backup/README.md b/scripts/backup/README.md
new file mode 100644
index 0000000..4a245a6
--- /dev/null
+++ b/scripts/backup/README.md
@@ -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.