I installed MacOS Sequoia 15.4 and now my backup script no longer works.
My script is using rsync
in this way:
rsync -avz —delete —log-file=“$LOG_FILE” “$SRC_DIR” “$DEST_DIR”
This has been working fine for a very long time.
After updating to 15.4, this produces the error “rsync: unrecognized action —log-file=/users/admin/logs/backuplog_xxx.log
”.
The log file path is correct (and hasn’t changed).
Interestingly, the man
page for rsync
no longer shows the —log-file
as an option.
I know I can use:
rsync -avz —delete “$SRC_DIR” “$DEST_DIR”
> “$LOG_FILE”`
or even
rsync -avz —delete “$SRC_DIR” “$DEST_DIR”
> “$LOG_FILE” 2>&1`
to also capture stderr
.
However, I liked the output from the built-In log option.
Does anyone know why this might have been removed or if there is a way to get it back?
Thanks.
So, yeah, macOS 15.4 does include a significant revision to the built-in rsync
. If that’s causing you grief, I encourage you to file a bug about the specific problem you’re having. Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"