diff options
-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() { |