summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbackup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/backup.sh b/backup.sh
index 74d855d..0db62a3 100755
--- a/backup.sh
+++ b/backup.sh
@@ -46,7 +46,7 @@ main() {
EOF
exclude_mountpoints
- #echo "$excludeList"
+ echo "$excludeList" > "$TMPDIR/exclude-list"
# save some data that's useful for restores
backupDataDir=/root/backup-data/
@@ -62,7 +62,7 @@ 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 <(echo "$excludeList")
+ backup / sftp://backup/$HOSTNAME-backup/full-backup/ --exclude-filelist "$TMPDIR/exclude-list"
}
backup() {