![]() |
Is it possible to sync in real time over ftp?
I am currently using curlftps to mount a directory on a ftp server locally as /backup , I then use rsync to do an incremental backup to this directory every night and a full backup at the weekend.
A requirement has arose for a similar set up but one that syncs in real time, so if a user puts a file in a directory it immediately copies that file to my ftp server, in this case it immediately copies it to /backup Any ideas how I could do this?? Thanks |
|
This looks like it could do the job, there is not much online documentation and the man page isn't very good so its going to be trail and error!
|
How soon does a file need to be detected? You don't want to start ftp'ing it to the backup before the file is finished being uploaded.
You could look at the file alteration monitor daemon and the "fileschanged" client. You can indicate a delay time before reporting the file being changed. You could also use a cron job to monitor files in the upload directory periodically. |
Quote:
It is a new type of file system that replicates files between servers in real time. http://TwinPeakSoft.com/ Jerrybear |
| All times are GMT -5. The time now is 02:56 AM. |