I'm trying to set up automated incremental backups to a headless server running Debian. The backups use hard links, pretty much following Mike Rubel's script. I'm using sshfs to mount the target directory to my local partition:
and then the idea is that rsync can do its magic:
$ sshfs quixote@ourmole:teaching_backups /mnt/ourmole_local/teaching_backups -o uid=1000 -o nonempty
The copying part works fine, but the --link-dest gives an error message that the link could not be made, "function not implemented (38 )." If I try to make a hard link manually, I get "hard link not allowed for directory."
rsync -avu --delete-delay --link-dest=$RTARGET/daily.2 $SOURCES/ $RTARGET/daily.1
So I'm guessing I need to set an option in sshfs or fuse to allow this, but I don't see anything in the man pages that says "if you want to allow hardlinks, use -o allow-hardlinks" or something! The options I am using above are an attempt to get sshfs / fuse to stop messing me about.
I realize I'm pretty deep in the weeds here, but I'm hoping somebody can help!