aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-01-23 11:53:14 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-01-23 11:53:14 +0100
commitf4d995ebea87f51038699fd486794e47e79caa2f (patch)
tree7d2e6c7d565593c2c3b2cca52ab0d11f0b6296ea
parentf52ae0968e85a793f67dd311a7c687b9c956f222 (diff)
downloadrdumpfs-f4d995ebea87f51038699fd486794e47e79caa2f.tar.gz
rdumpfs-f4d995ebea87f51038699fd486794e47e79caa2f.tar.xz
rdumpfs-f4d995ebea87f51038699fd486794e47e79caa2f.zip
parametrize $RDUMPFS_DEFAULT_ARGS
-rwxr-xr-xrdumpfs3
1 files changed, 2 insertions, 1 deletions
diff --git a/rdumpfs b/rdumpfs
index 8c2e0fb..4eca809 100755
--- a/rdumpfs
+++ b/rdumpfs
@@ -28,7 +28,8 @@ now=$(date +%Y%m%d)
dumps=($(rsync --no-h $dst/ | cut -c44- | grep '^[0-9]*$' | sort -nr))
last=${dumps[0]}
-rsync_args=(-aHAX --stats --human-readable
+: ${RDUMPFS_DEFAULT_ARGS:=-aHAX}
+rsync_args=($RDUMPFS_DEFAULT_ARGS --stats --human-readable
--out-format='%10l %n%L' --log-file-format='%10l %i %n%L'
--filter='dir-merge /.rdumpfs' --filter='protect .rdumpfs.*.log')
rsync_args+=(${VARIANT:+--filter='dir-merge /.rdumpfs.'$VARIANT})