On Mon, 27 Feb 2012 11:13:13 +0100 Prefer Anon <my.m...@gmail.com> wrote: | Hi Anthony, | | Thanks a lot for the help. This looks very promising. So if I understand | correctly I could do the following: | | on laptop (schematically): | | encfs --reverse ~/Documents ~/enc_tmp | unison ~/enc_tmp /server/laptop_enc | | Which would make an encrypted copy of my homedir and sync it to the server. | Then on my desktop I could run: | | on desktop: | | encfs /server/laptop_enc ~/laptop_tmp | unison ~/laptop_tmp ~/Documents | | The first line would mount the laptop's data in laptop_tmp and the second | line would sync that would the desktop data. |
I would have assumed 'sever' was actually a remote machine (for unison) ensfc only works between local file systems. Though thay can be ANY filesystem that could have been mounted/copied from a remote server (dropbox, sshfs, nfs, unison, etc). So that last should probably look exactly like the first! Unless it being a laptop you want to keep the Documents saved in encrypted form. In that case ~/enc_tmp becomes the real files and you remove the reverse The unison part however remains the same. On a machine storing files unencrypted (order is important) encfs --reverse ~/Documents ~/enc_tmp unison ~/enc_tmp /server/remote_store On machines storing file encrypted (order not important) encfs ~/enc_tmp ~/Documents unison ~/enc_tmp /server/remote_store The later can do the two commands in any order. That is you can 'sync' at any time, and unencrypt the docs only when you make changes. In that case a remote server could be the laptop itself For example I have encrytped files syncing between my workstation and my laptop. Workstation encfs ~/encrypted ~/documents Laptop encfs ~/encrypted ~/documents unison ~/encrypted /workstation/encrypted NOTE this this case the unison command MUST only run on one machine (laptop in my case). I have not found how I can launch it from either machine to sync the same to directories and have it use teh right unison cache information. This is probably simplest! Anthony Thyssen ( System Programmer ) <a.thys...@griffith.edu.au> -------------------------------------------------------------------------- Three Schools of Magic... 1/ State a tautology, then ring changes on its corollaries. -- Philosphy 2/ Record many facts. Try to see a pattern. Then make wrong guess at the next fact. -- Science 3/ Awareness that you live in an malevolent universe controled by Murphy's Law, sometimes offset by Brewsters Facter. -- Engineering -------------------------------------------------------------------------- Anthony's Castle http://www.ict.griffith.edu.au/anthony/ ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Encfs-users mailing list Encfs-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/encfs-users