From e008cf34fefd9153572a25be34f1cbe719c8ecbf Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 28 Sep 2015 09:26:59 +0200 Subject: backup.sh: Fix seek error in globbing file list Signed-off-by: Florian Pritz --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backup.sh') 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() { -- cgit v1.2.3-24-g4f1b