Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'd recommend not syncing in both directions unless it's a one off when you're first setting it up, having two authoritative sources is confusing and prone to errors and/or data destruction.
You can simply reverse the source and destination when running the rsync command to sync the other way, it doesn't do two-way replication in one go.
That about the time between first and second command?
Code:
rsync /folderA /folderB
If it takes 5 minutes to sync
Code:
rsync /folderB /folderA
It takes 1 minutes to sync
Do I have to put sleep option between 2 commands so second command run after first is finished, or second command alwasy will run AFTER first is finished? Can you clarify this issue please?
I have tried unison few days ago and I didnot like the interface. I think is too simple and has few option for condifure.
Or meybe I dont spend too much time exploring it.
I have tried unison few days ago and I did not like the interface.
There is no "interface" if you use it in 'batch mode' as I showed you.
Solutions aren't always elegant, nor pretty but they tend to "do the job". Interface? I can run those 'batch modes' in dialog, zenity, or yad.
Using unison by itself, you get an Interface.
Use the c-li
If you want a pretty interface, try grsync
"Sample uses of grsync include: synchronize a music collection with removable devices, backup personal files to a networked drive, replication of a partition to another one, mirroring of files, etc." and I believe it'll support 'profiles' or 'jobs' that can specify direction from A to B or B to A.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.