SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Ok having a laptop and a desktop usually results in different info under the a users directories.
I woluld like to have the same info on either machine.
Ie if a user logs in on the laptop and creates files etc, somehow at the end of the day the same files will be copied over to the desktop machine at some time. And vice versa , if a user logs on to the desktop and creates files , evetnually the files will be replicated to the laptop.
How do I do this.
Obviously I can copy and paste the whole user directory but this will have problems. ie what if new files exist on both machines at the time of copy then the new files on the destination machine will get replaced.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
If you mean sharing a single repository between both machines, it would only marginally help.
A laptop, by design, is mobile so it can't be constantly connected to a network.
Disclaimer: I haven't used unison, so I don't know if it solves the following problem.
What the OP asked is quite hard to automate without using NFS (or something similar) as it has already been suggested. The problem are deleted files. If a file is in one drive but not in the other, is that because the file has been removed in one end or because it has been added in the other end? Granted, you could ommit the --delete option in rsync, but that way you would be unable to delete any files. So you probably want the --delete option. If you don't carefully sync always before using one computer or after having used it, you could (a) make an old file appear (which shouldn't be very important) or (b) make a new file disappear. The second case is problematic, so you need to run rsync manually and carefully to avoid those mistakes.
Just managed to get back here, Thanx for the valued info. Ill go with the rsync option but as rg3 says its going to get a little confusing, quite a problem though cause one minute you are using the laptop , the next you are using the desktop and vice versa. Maybe just create 1 directory that gets synced one way only. mmmm
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.