summaryrefslogtreecommitdiffstats
path: root/backup.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-01-15 14:20:47 +0100
committerFlorian Pritz <bluewind@xinu.at>2016-01-15 14:20:47 +0100
commit771f7319d8f56c1c40538fd8438d2c3b472f432f (patch)
tree4e75f3e859a76c9646f2a227b3ef203ddc206ca2 /backup.sh
parent6c88c5c0958afe950277b4832a22365d6099e0ef (diff)
downloadbin-771f7319d8f56c1c40538fd8438d2c3b472f432f.tar.gz
bin-771f7319d8f56c1c40538fd8438d2c3b472f432f.tar.xz
backup.sh: Add missing variable; add timestamp file
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'backup.sh')
-rwxr-xr-xbackup.sh8
1 files changed, 7 insertions, 1 deletions
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 <<EOF || true
+ /home/flo/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/cfg
@@ -62,7 +65,10 @@ EOF
# this does not ignore /proc and network mounts so it's not that useful :(
#find / | gzip > /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() {