Web Hosting Talk







View Full Version : Backup question


maxbear
11-22-2002, 03:09 PM
Hi all,

I have 2 servers and I use rsync to backup and it's working fine.

Is there any way, any script or any program which can auto detect a user update file by ftp and run the rsync command?

Thanks for any comments.

sasha
11-22-2002, 04:50 PM
Things that come to my mind are IMON and FAM. The later (File aalteration monitor, i think) is the daemon that interfacas with IMON (kernel monitor). Google should tell you more if you search for FAM IMON. Then you need an application that will take advantage of these.

Or, you could just have script monitor your transfer log and act based on new entries in there.

lotuslnd
11-24-2002, 03:48 AM
Why not just check the filesystem for files newer than a day (and do it on a daily basis)? I don't use rsync, but I do do something like this:

tar -czf filename.tar.gz `find /home -mtime -1`

Does this help at all?

ho247
11-24-2002, 05:09 AM
Originally posted by maxbear
Hi all,

I have 2 servers and I use rsync to backup and it's working fine.

Is there any way, any script or any program which can auto detect a user update file by ftp and run the rsync command?

Thanks for any comments. If your server is a busy server, and you had it auto-detect for file changes, then that may cause a lot of processors to run, eventually slowing down your servers. A better idea would be to just set a cron job to run the rsync command once a day and copy only files that have changed.

Alan

admin0
11-24-2002, 05:27 PM
Better to rsync in incremental mode every 30 minutes or every 1 hour.

:homer: