![daemon sync between pcs daemon sync between pcs](https://i.ytimg.com/vi/bU_UGQGKoJs/maxresdefault.jpg)
![daemon sync between pcs daemon sync between pcs](https://i5.walmartimages.com/asr/5a544d79-9ba9-4deb-8231-c0b77de16344.789a659444405ddc5369f74cd517de21.jpeg)
So, there's always a small risk to see someone taking control of my server. The fact is that I also host other services on my server. Each client will have its own independent copy.įor eCryptfs, the metadata is stored in the file itself.Īctually, if I could find a solution involving a complete encryption (and files never in an unencrypted state), it would be really great Not only will this prevent it from appearing on the server, it will also ensure that an error arising in one copy does not propagate to the others. I would configure unison to ignore it and transfer it manually and directly to each client. If you use EncFS, there is a file in the encrypted directory that contains encryption metadata. This is better than using sshfs as unison will be able to checksum files directly on the server instead of transferring all of the data via ssh(fs) to do it locally.
#DAEMON SYNC BETWEEN PCS FULL#
With filesystem encryption (EncFS, eCryptfs), the underlying encrypted files are regular files, so you can leverage unison's full potential for keeping these files in sync without having to transfer unencrypted data. Synchronize other clients with the server Set up unison to synchronize the underlying encrypted directory ( not the unencrypted mountpoint) via ssh on the server Mount the local encrypted directory and add your files to it Set up ssh on the server if you haven't done so alreadyĬreate a local encrypted directory on one of the clients with EncFS or eCryptfs (you may find ecryptfs-simple useful) If that is correct then here is how you do it: The files must never be unencrypted on the server The files must be encrypted on the server Summarizing to check that I have understood your requirements:Ī central server will host all files and all other systems (the clients) will sync with it (i.e. (always in a correct state no matter connection losses, etc.) What about unison + any encryption scheme ? Else, Owncloud has an encryption app which could provide the same as Dropbox, no ?Ī last solution I found would be to use a Git repository with transparent encryption with something like git-crypt or git-annex ( ).įinally, if I can't find any better solution, I could made my own script based on duplicity frontend which uses rsync for optimization and supports encryption via GPG. So maybe remote mount point won't be a great deal, no ?ĮDIT : A solution could be to sync against a webdav mount. So the cache will always be on my laptop and my desktop.
![daemon sync between pcs daemon sync between pcs](https://i.pinimg.com/474x/00/c3/2d/00c32dd7528cd1a6d62056718703d832.jpg)
This might not be a great deal for some documents files but I'm looking for a way to sync my whole disks, which means about 80GB of music and hundreds of GB of videos.ĮDIT : I thought about something : I'll only run unison from the laptop and the desktop, never from the server. I just have to set a script to handle conflicts.
![daemon sync between pcs daemon sync between pcs](http://1.bp.blogspot.com/-liJrcLljRUE/UpWYHoE5PdI/AAAAAAAAA0A/tTTIKF3aAek/s1600/2013-11-27_115308.png)
Last edited by doupod ( This scheme might be the easier one but (if I correctly understand what you propose), I'll have to store the data twice on my laptop : one encrypted version and one unencrypted version. Mounting a remote location on my computer (Webdav for example) and syncing against it with a script. Git repo ? => Not sure it's a good idea because of the size of the potential repo. If possible, it would be great to have an option to crypt the backup on my server (just as what you can do with duplicity).Īnd some ideas I got (if by chance, anyone had an advice about it / a feedback) : I really need also some bandwith saving system (ie syncing only necessary files and if possible compressing during sync). But, I really need the system to be ok with connection loss (as I'll use it on my laptop, I won't always have an internet access, and I can lost my internet access in the middle of a sync). Scheduled updates made by Cron are ok also. Some more infos I forgot in my previous post : Indeed, I saw Unison while searching infos about this on the web.