summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbackup.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/backup.sh b/backup.sh
index dfa67dd..4208db1 100755
--- a/backup.sh
+++ b/backup.sh
@@ -66,7 +66,9 @@ EOF
# TODO: create snapshots here if possible. Sadly that's really difficult so
# it will probably not be implemented
- backup_borg / "backup:borg-$HOSTNAME"
+ local backupdir="borg-$HOSTNAME"
+ backup_borg / "backup:$backupdir"
+ ssh backup "touch $backupdir/last-backup-timestamp"
}
backup_borg() {