Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a suitable off-site backup / file synchronization solution. Both local client and remote server run linux. Storage space on the server is limited, bandwidth between client and server is very limited.

I had a look at duplicity, Back In Time, Déjà Dup, luckyBackup, rsnapshot, rdiff-backup, rsynccrypto. None of those seem to do what I want, at least if I understand them correctly. They either store multiple versions, or do a full retransmit each time, or lack encryption, or lack compression. I tried a rsync/fusecompress/encfs combination, but fusecompress keeps destroying my files. I searched superuser and askubuntu, found only one similar question here (How to do rsync-like encrypted backup?), but there is no talk about compression and no fitting solution either.

Requirements:

  • simple mirroring, only one copy of the files (limited storage space)
  • update only the files that changed since last sync (limited bandwidth)
  • store files compressed and encrypted
  • encryption should happen on the client before transmitting

Basically, what I want is something that behaves like rsync, but stores the mirrored files compressed and encrypted. Does something like that exist?

share|improve this question
1  
This is not meant to be mean but may sound like it; it appears like you are placing an order. We are here to help you, not do it for you. What have YOU searched/found/tried so far? –  CharlieRB Aug 16 '12 at 19:22
1  
@CharlieRB I had a look at duplicity, Back In Time, Déjà Dup, luckyBackup, rsnapshot, rdiff-backup, rsynccrypto. None of those seem to do what I want, at least if I understand them correctly. They either store multiple versions, or do a full retransmit each time, or lack encryption, or lack compression. I tried a rsync/fusecompress/encfs combination, but fusecompress keeps destroying my files. I searched superuser and askubuntu, found only one similar question here (How to do rsync-like encrypted backup?), but there is no talk about compression and no fitting solution either. –  Alfred Rupp Aug 16 '12 at 19:36
    
Great. That is the detail needed in your question. I added it for you so everyone who reads your question knows what you've tried and won't offer the same solutions. –  CharlieRB Aug 16 '12 at 19:43
    
You want to compress (server-side) client-side encrypted files? How do you think this'll work? –  Daniel Beck Aug 16 '12 at 19:43
    
@Daniel Beck: I want to compress client-side, then encrypt client-side, then transmit. –  Alfred Rupp Aug 16 '12 at 19:53
show 2 more comments

1 Answer

If server is running ssh:

  1. mount remote site locally with

    sshfs -o nonempty,sshfs_sync,compression=yes username@host:/path/archives/ /mounted/encrypted/
    
  2. Create the encrypted system and mount it (The first time you try to mount the directory, encfs will create the encrypted filesystem. It works like the regular mount):

    encfs /mounted/encrypted /mounted/unencrypted 
    
  3. use rsync to /mounted/unencrypted

  4. unmount encryption

    fusermount -u /mounted/unencrypted
    
  5. eventually unmount remote resource

    umount /mounted/encrypted
    
share|improve this answer
    
This is, what I've been doing so far, but it lacks compression. I can add a gzip -r, but then sshfs is not an option anymore, and I have to rsync twice. (rsync to a temporary dir, gzip -r that dir, rsync to the server) –  Alfred Rupp Aug 20 '12 at 22:25
    
so then between 1) and 2) mount FuseCompress file system: code.google.com/p/fusecompress –  jet Jan 30 '13 at 16:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.