I have had success with ext4
over luks
over sshfs
. I find that running unison
on a mount of this type is much, much faster than over encfs
over sshfs
. So it must be that those thousands of stat()
structs are somehow bundled together in the ext4
fs, so that they require less network traffic during a sync.
One thing which is slightly annoying is that the ext4
filesystem needs a user id for every file, and this user id is used for computing access permissions when the ext4
fs is mounted locally on a client. In my case, I chose to change my local user id to a specific number on all the clients I'm sync-ing from. The alternative would be to store the files in the ext4
fs with uid 0, then use bindfs
to mount the ext4
fs with non-root uid.