For that purpose, I use ncftp.
I use ncftpls to display the remote server's contents and to send "rm"
commands to delete old backups before sending new ones using ncftpput
.
Cheers,
Andrés
2011/2/8 Gavin McCullagh <gmccullagh at gmail.com>:
> Hi,
>> On Mon, 07 Feb 2011, Gareth 'bigbro' Eason wrote:
>>> For backing up files, rsync is far more effective than FTP as it supports
>> checksumming, partial downloads, partial deltas, file attribute and
>> timestamp preservation and a whole lot more.
>> While we're on the subject, does anyone know of a decent command line tool
> which will allow syncing over FTP, ie sync a local copy with a remote
> directory only over FTP.
>> It's easy (if a little wasteful) to do a full recursive GET each time.
> However, where a file is deleted off the remote copy, it won't be deleted
> locally. I guess I could wipe out the local copy (I am downloading the
> whole thing again after all) but this all seems very wasteful.
>> Is there a better solution (which could be used in a shell script)? ncftp
> doesn't seem to offer it anyway. I plan using subversion to version the
> local copy.
>> Gavin
>> --
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug> Who we are : http://www.linux.ie/> Where we are : http://www.linux.ie/map/>
--
Andres Jimenez
GPG : http://www.andresin.com/gpg/gandresin@gmail.com.asc
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!