[OBORONA-SPAM] Re: Automatically duplicate files
Michael R. Head
burner at suppressingfire.org
Wed Feb 21 19:27:33 UTC 2007
On Wed, 2007-02-21 at 19:05 +0000, Gabriel Dragffy wrote:
> nodata wrote:
> > Am Mittwoch, den 21.02.2007, 12:10 +0000 schrieb GyroTech:
> >> Bazooka Joe wrote:
> >>> man rsync
> >>>
> >> Thanks a lot :-) Can rsync run as a background task, automatically
> >> updating as changes happen or should I just add it as a cron job??
> >>
> >> Thanks
> >>
> >
> > cron.
> >
> >
>
>
> AFAIK rsync itself won't do that, you'd need some kind of system daemon
> and I don't think cron is up to it. Only thing I know of that can do
> what you're talking about is called launchd, this uses XML formatted
> plist files and can invoke rsync when contents of a specified point are
> accessed/altered. Thing is, this is a super-daemon and only for OS X,
> but I do think the source was released, so maybe you could adapt it!!
What's wrong with cron? The only problem I can think of is that with
cron you might end up with two rsync processes running at the same time,
so just make sure to avoid this situation by putting enough minutes
between the jobs or by wrapping the rsync call in a script that does a
little locking to ensure that two rsync procs won't run at the same
time.
--
Michael R. Head <burner at suppressingfire.org>
http://www.suppressingfire.org/~burner/
http://suppressingfire.livejournal.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070221/291d2328/attachment.bin>
More information about the ubuntu-users
mailing list