Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to backup a FTP directory (not backup to) with a cron script running daily. I'd prefer a solution that could sync the FTP to my local computer; only copy files changed and remove files that have been deleted.

Is there such an application?

share|improve this question
2  
You could do something like curlftpfs and rsync. Also look at this: serverfault.com/questions/24622/how-to-use-rsync-over-ftp –  Patrick Aug 24 '12 at 13:31
    
@Patrick curlftpfs looks very nice, think this will be perfect together with rsnapshot that I'm already using –  Znarkus Aug 24 '12 at 14:01
    
cool :-). Submitted as an answer so the question can be marked as solved. –  Patrick Aug 24 '12 at 14:10
1  
There are several ftp mirroring programs, these will probably work best. That's also the term you should search for to find them... –  derobert Aug 24 '12 at 17:21

2 Answers 2

up vote 3 down vote accepted

You can use curlftpfs and rsync to accomplish what you want.

curlftpfs is a FUSE filesystem that will let you mount a remote ftp location as a normal filesystem. Once it's mounted, you can use rsync to sync the mount with a local copy.

share|improve this answer
    
Actually ended up using lftp with mirroring from your link –  Znarkus Aug 26 '12 at 7:09

rsync can do that.

Make a script and put it in cron.

share|improve this answer
3  
No it cant. Rsync doesnt work with ftp –  Patrick Aug 24 '12 at 13:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.