X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=freeze-dir.sh;h=d8b249d98d31f70e2a9d61523d6615f28ca96167;hb=750f872cb118f152b3cf7c1756486667e472aa18;hp=0a23b494fdc2cc86162bde1bab5db1a9872caf60;hpb=d4b247661d2a5e9a9c09c6c6648141726c85fe59;p=scripts.git 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