Auto syncing folder from Linux to Windows, SCP/Rsync?
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.
Auto syncing folder from Linux to Windows, SCP/Rsync?
Hi everyone
I have a folder of incremental backups on a Linux server and I'd like to keep a copy of it on a Windows laptop. This will be happening over a gigabit LAN and it will usually need to copy 2-3 files of 100-300MB each.
I thought of setting up an SMB share on the windows machine then mounting that on the Linux box and copying the files over. But I don't really want to have windows sharing enabled on the laptop permanently.
But then I thought that I can probably do something with rsync but then I've read reports of differing success with rsync on Windows.
Anyone got any comments/suggestions on this?
Ideally I'd like the trigger for the file copy to be on the Linux server side, so a cron job on there to push the files over.
Rather than the laptop trying to pull the files down.
Since you only want to mirror the contents, a simple rsync script probably is all you need, but you might want to check out unison also. It should work on all platforms.
Unison looks interesting.
If I only want the sync to be one-way, Linux to the Windows laptop, which one of those do I need to set as an rsync server?
Also if a file is deleted from the directory on the Linux box, I also want it removed from the Windows laptop.
Do you think it's better for the Linux box to push the backups across, or for the Windows laptops to pull them down?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.