LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] rsync query

[ILUG] rsync query

Conor Daly conor.daly_ilug at cod.homelinux.org
Mon Sep 4 11:00:47 IST 2006


On Mon, Sep 04, 2006 at 10:05:09AM +0100 or so it is rumoured hereabouts, 
Frank Duignan thought:
> 
> I want to periodicall synchronize a directory on my desktop with an ftp
> repository.  I only want to download new/changed files and delete files on
> the receiver side that are no longer necessary.

wget --mirror

will do it.  I'm not sure if it deletes as well but it does leave behind a
'.listing' file in each directory (for an ftp mirror).  This could be used
with find to delete files that no longer exist...

Conor

'man wget:

 -m
 --mirror
   Turn on options suitable for mirroring.  This option turns on recursion
   and time-stamping, sets infinite recursion depth and keeps FTP
   directory listings.  It is currently equivalent to -r -N -l inf
   --no-remove-listing.'

-- 
Conor Daly <conor.daly at cod.homelinux.org>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/G/S/O d+(-) s:+ a+ C++(+) UL++++ US++ P>++ L+++>++++ E--- W++ !N
PS+ PE Y+ PGP? tv(-) b+++(+) G e+++(*) h-- r+++ z++++ 
------END GEEK CODE BLOCK------
http://www.geekcode.com/ http://www.ebb.org/ungeek/



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell