From 771f7319d8f56c1c40538fd8438d2c3b472f432f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 15 Jan 2016 14:20:47 +0100 Subject: backup.sh: Add missing variable; add timestamp file Signed-off-by: Florian Pritz --- backup.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'backup.sh') diff --git a/backup.sh b/backup.sh index a59cf3e..4f3ec69 100755 --- a/backup.sh +++ b/backup.sh @@ -35,6 +35,9 @@ main() { /media/ ) + # mountpoints of these types do not need to be excluded + fsWhitelist=(ext4 btrfs) + # first line that matches wins IFS='' read -r -d '' excludeList < /root/full-file-list.txt.gz - backup / sftp://backup/$HOSTNAME-backup/full-backup/ --exclude-filelist "$TMPDIR/exclude-list" + local backupdir="$HOSTNAME-backup/full-backup" + + backup / "sftp://backup/$backupdir/" --exclude-filelist "$TMPDIR/exclude-list" + ssh backup "touch $backupdir/last-backup-timestamp" } backup() { -- cgit v1.2.3-24-g4f1b