From 13b04d50b0353108ddc856cc54a50f6d9dbfb40d Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 19 Jul 2024 20:14:33 +0000 Subject: [PATCH] sane-backup-rsync-net: dont try to backup device files the remote doesn't seem to support them (or maybe it's the protocol) --- hosts/modules/services/rsync-net/sane-backup-rsync-net | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/modules/services/rsync-net/sane-backup-rsync-net b/hosts/modules/services/rsync-net/sane-backup-rsync-net index 27c043d93..037fa0b56 100755 --- a/hosts/modules/services/rsync-net/sane-backup-rsync-net +++ b/hosts/modules/services/rsync-net/sane-backup-rsync-net @@ -23,5 +23,6 @@ for dir in "$@"; do echo "syncing '$dir' to '$remote_dir'" # N.B.: the `--exclude=$RN_ID` flag is a noop to get the ID file to be included in the sandbox... - sane-vpn do unmetered rsync --exclude="$RN_ID" -e "ssh -i $RN_ID" --mkpath -arv --delete "$dir" "$remote_dir" + # N.B.: manual flags instead of `-a -> -rlptgoD` because device files have a max path length which is too restricted + sane-vpn do unmetered rsync --exclude="$RN_ID" -e "ssh -i $RN_ID" --mkpath -rlptgov --delete "$dir" "$remote_dir" done