diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-01-15 14:20:47 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-01-15 14:20:47 +0100 |
commit | 771f7319d8f56c1c40538fd8438d2c3b472f432f (patch) | |
tree | 4e75f3e859a76c9646f2a227b3ef203ddc206ca2 /backup.sh | |
parent | 6c88c5c0958afe950277b4832a22365d6099e0ef (diff) | |
download | bin-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-x | backup.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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() { |