X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=scripts.git;a=blobdiff_plain;f=freeze-dir.sh;fp=freeze-dir.sh;h=d8b249d98d31f70e2a9d61523d6615f28ca96167;hp=0a23b494fdc2cc86162bde1bab5db1a9872caf60;hb=4533cd84b6c05d62f049fba6f47530cb972f2194;hpb=ec86ffb8d47ff8576492ad423b6f59368e83ae0c diff --git a/freeze-dir.sh b/freeze-dir.sh index 0a23b49..d8b249d 100755 --- a/freeze-dir.sh +++ b/freeze-dir.sh @@ -61,14 +61,14 @@ while [[ "$1" ]]; do new_backup="${backup}:::${date}" if [[ -h "${current_backup}" ]]; then - rsync --link-dest="${current_backup}/" -axz "${full_path}/" "${new_backup}/" + rsync --progress --link-dest="${current_backup}/" -axz "${full_path}/" "${new_backup}/" rm "${current_backup}" else if [[ -a ${current_backup} ]]; then echo "${current_backup} exists and is not a symbolic link" >&2 exit 1 else - rsync -axz "${full_path}/" "${new_backup}/" + rsync --progress -axz "${full_path}/" "${new_backup}/" fi fi