It also has a GUI so you can see what it decides needs changing. I use it so I can take my work with me from my desktop on to my laptop, and copy any changes I make back to my desktop when I get home. Unison is about keeping files on two (or more) different devices in step. Unison is not for backup, as that's one directional, and rsync will do the job. Not that I've seen a change to Unison in the 12 months I've used it. Then, with every new version of unison there were so much problems with ocaml.ĪFAIK that's been solved - unison is now "slotted", and one unison instance tells the other which version to use. ssh/authorized_keys'īefore many years I also had unison as backup software. (I would recommend to do it from desktop).įor ssh connect I am using this (from notebook to desktop 192.168.2.4 of course in ssh-config from desktop root login must be allowed other way is also possible): With rsync you just make one bash-script on ONE machine and run it every time from this machine. If you want use unison you must install it on both machines. I stoped using it and since then I am using happily "luckybackup"īut this is more for backups. Then, with every new version of unison there were so much problems with ocaml. Note the documentation is what you get from: Code:īefore many years I also had unison as backup software. I use if to sync between my laptop and desktop machines, both directions. Net-misc/unison is, I think, exactly what you need. (Just look into "man rsync" yes, it is the same as -p for emerge what it WOULD do) Dont forget: rsync also has an very nice option: -dry-run syncthing is nice but for syncing between two machines. Sometimes, I experience troubles possibly because hardware clock go bit different and I have ntp clock update only at boot. Rsync -av -delete-after -progress -rsync-path='sudo rsync' -stats /directory/source/ the sshd server must be up and running on the remote source or destination machine to make copies through the local network. Rsync -av -delete-after -progress -rsync-path='sudo rsync' -stats /directory/destination/ Rsync -av -delete-after -progress -stats /directory/source/ /directory/destination/ About this I do not use the FAT filesystem who cannot preserve permissions. Rsync is versatile, you can push your data from the machine source to the distinated machine or pull them from the destinated machine. I even copy Linux systems from a machine to an other. I make backups of my personnal datas from a block support (disk) to an other, I can do the same from a machine to an other through the local network. It work in local, in local network and through Internet. The caveat is they need to have time to sync (i.e., be connected to the net and have some time to update when you switch from one machine to the other). For things like this syncthing (with some form of syncthing versioning used on the folder) works well in my experience. Sounds like a relatively simple use case. "The most dangerous world view is the world view of the ones who haven't viewed the world." I read about syncthing, unison and synkron but I'm really unsure which road to take - if it'd be one of those and not some other way. I'm not sure if I could trust in bare rsync. But I'd like some reliable more or less automatic mechanism to do it - preferably with a GUI integrated in plasma to supervise it if I want to. Until up to now I copy the directory from the machine I worked on last to the other machine within dolphin and the use of 'fish'. I work on both machines (desktop & laptop) in that directory but not at the same time. It's a directory containing confidential files and I don't want to put it on some server (I don't like the idea that I would be the one to blame when some of this data gets revealed.). I need some advice for I need to keep a directory in sync on two machines. Posted: Wed 3:26 pm Post subject: syncing a directory between two machines Location: near Lebkoungcity (='Gingerbreadcity' =Nuremberg) Gentoo Forums Forum Index Other Things Gentoo Gentoo Forums :: View topic - syncing a directory between two machines
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |