aboutsummaryrefslogtreecommitdiffstats
path: root/backup-notes
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-03-29 10:32:58 +0100
committerMatthew Lemon <y@yulqen.org>2023-03-29 10:32:58 +0100
commit95fd25292b417f9e19dece7fed0b82b91f7b5429 (patch)
treecd064dfc7023437205a35785051fa09144a5913c /backup-notes
parent281ffa2e971c7607b998394b49eedd1a9b38fe1b (diff)
added systemd timer files and script for backing up notes files to remote
Diffstat (limited to 'backup-notes')
-rwxr-xr-xbackup-notes13
1 files changed, 13 insertions, 0 deletions
diff --git a/backup-notes b/backup-notes
new file mode 100755
index 0000000..4cc56e4
--- /dev/null
+++ b/backup-notes
@@ -0,0 +1,13 @@
+#!/bin/env bash
+
+# Source folder to be backed up
+src_folder="/home/lemon/Documents/Notes/"
+
+# Remote server details
+remote_user="lemon"
+remote_host="16693433.xyz"
+remote_port="2222"
+remote_folder="/home/lemon/Backups/Notes"
+
+# Run rsync command to sync the folders
+rsync -avz -e "ssh -p ${remote_port}" ${src_folder} ${remote_user}@${remote_host}:${remote_folder}