On Friday 01 October 2004 13:49, Iain wrote:
> I want to sync part of my ~/ directory on my laptop with
> /home/iain/laptop/ on my server. I know I can do a variety of scripts
> that will compare and copy selectively, run rsync also, but what I am
> thinking of is a method to copy when there is a connection and a file is
> modified. Something a bit more automated.

Most laptops are installed with a network hotplug daemon. On Mandrake the 
package is called ifplugd. You can edit the /etc/ifplugd/ifplugd.action shell 
script to add the command you need when the interface goes up.

I'd suggest rsync to synchronise the directories.

-- 
Ramon Casha

Reply via email to