LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Is it possible to sync in real time over ftp? (http://www.linuxquestions.org/questions/linux-server-73/is-it-possible-to-sync-in-real-time-over-ftp-786168/)

replica88 02-01-2010 05:24 AM

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

theYinYeti 02-01-2010 06:27 AM

This filesystem may be part of your solution:
http://www.furquim.org/chironfs/index.en.html

Yves.

replica88 02-03-2010 05:22 AM

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!

jschiwal 02-03-2010 06:01 AM

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.

jerrybear 02-03-2010 09:10 AM

Quote:

Originally Posted by replica88 (Post 3848122)
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

You can check out the Mirror File System from Twin Peaks Software.
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 04:20 PM.