snap-sync
snap-sync copied to clipboard
Unable to log in SSH with password
plain SSH works eg. ssh [email protected]
, rsync also works
snap-sync -c home -r 192.168.1.123
[email protected]'s password:
[email protected]'s password:
Exited due to error on line 222.
exit status: 1
command: TARGETS=$($ssh findmnt -n -v -t btrfs -o TARGET --list)
bash line: 0
function name:
Are you trying to back up to a Synology device or some other weird embedded linux system? I'm having the same issue with my Synology NAS, and it's because they don't ship util-linux (which provides findmnt). You'll have to either find a way to package/install it yourself or modify the script to not rely on findmnt for target selection. Also, at least with recent versions of Synology DSM, logging in as root won't work either, so you'll have to use the --sudo flag.
It's probably best to just use your own script if you're dealing with weird/locked down hardware.
@saucyfox the target was a laptop with fully updated Arch Linux, the root partition was ext4, and a btrfs external drive mounted under /mnt