summaryrefslogtreecommitdiffstats
path: root/backup.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-09-28 09:26:59 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-09-28 09:26:59 +0200
commite008cf34fefd9153572a25be34f1cbe719c8ecbf (patch)
treefa624b30bb6bb685a076379d0447997b98ea250a /backup.sh
parentf4a93f70044c213b2e3d97d61af972ab1bba19a2 (diff)
downloadbin-e008cf34fefd9153572a25be34f1cbe719c8ecbf.tar.gz
bin-e008cf34fefd9153572a25be34f1cbe719c8ecbf.tar.xz
backup.sh: Fix seek error in globbing file list
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'backup.sh')
-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() {