In article <(E-Mail Removed)>, Nomen Nescio wrote:
> I've got an XP machine and a linux machine that are connected across a fast
> ethernet network and TCP/IP + Samba.
>
> I've got directories and files on the Windows machine I'd like to have
> periodically "mirrored" on the Linux machine. Something along the lines of
> a crontab job that would run like at 3AM. It'd be great if it would only
> copy over the modified/changed/added files and not unchanged ones. This
> way, if my Windows machines hard drives ever take a dump, or I screw
> something up, I'll have copies of my important files on my Linux machine's
> HD.
>
> I'd like this to be implemented on the Linux machine, where the Linux
> machine initiates the process/runs the command and talks to the Windows
> machine, rather than running a "crontab" like job on the Windows machine
> and perhaps emailing me if there were any problems. I want the process to
> occur across samba/SMB, and not FTP or NFS.
>
> I looked at the "smbtar" and the "smbclient" commands, and it looks like it
> could be doable with those, but I'm wondering if there's a better way than
> with those...
Yes, use rsync (
http://samba.anu.edu.au/rsync/)
> Is this easily doable?
>
> If so, could someone point to a relevant FAQ or explain the steps in a way
> that is easy to implement for someone who is not a UNIX guru.
I use a modifed version of the sample scripts at
http://rsync.samba.org/examples.html
There is an explanation of incremental backups as well as many ideas for
using rsync for backup at
http://www.mikerubel.org/computers/rsync_snapshots/
--
Ambarish