LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 11-25-2010, 04:03 PM   #1
batfastad
Member
 
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Linux Mint, IPCop, PS2Linux
Posts: 91

Rep: Reputation: 23
Question 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.

Cheers, B
 
Old 11-26-2010, 01:04 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
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.
 
Old 11-26-2010, 02:08 AM   #3
batfastad
Member
 
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Linux Mint, IPCop, PS2Linux
Posts: 91

Original Poster
Rep: Reputation: 23
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?

Cheers, B
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux scp or rsync without password sanjee Linux - Server 15 09-13-2012 02:46 PM
Trying to scp from Linux to Windows warlocx45 Linux - General 3 10-20-2009 04:02 PM
Syncing two partitions on different systems (rsync?) alk77 Linux - Software 2 07-15-2008 12:39 AM
Home network is fine, until i try to rsync/scp lagartoflojo Linux - Networking 4 01-15-2006 09:09 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM


All times are GMT -5. The time now is 10:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration