diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-01-23 11:53:14 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-01-23 11:53:14 +0100 |
commit | f4d995ebea87f51038699fd486794e47e79caa2f (patch) | |
tree | 7d2e6c7d565593c2c3b2cca52ab0d11f0b6296ea | |
parent | f52ae0968e85a793f67dd311a7c687b9c956f222 (diff) | |
download | rdumpfs-f4d995ebea87f51038699fd486794e47e79caa2f.tar.gz rdumpfs-f4d995ebea87f51038699fd486794e47e79caa2f.tar.xz rdumpfs-f4d995ebea87f51038699fd486794e47e79caa2f.zip |
parametrize $RDUMPFS_DEFAULT_ARGS
-rwxr-xr-x | rdumpfs | 3 |
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}) |