Re: [Hampshire] rsync

Top Page

Reply to this message
Author: Keith Edmunds
Date:  
To: hampshire
Subject: Re: [Hampshire] rsync
On Mon, 5 Nov 2012 18:32:41 -0000, linux@??? said:

> So in the spirit of my sanity, could someone please post the syntax to
> exactly mirror /mnt/foo to /mnt/goo ?
>
> And by exactly mirror I mean
>
> * Copy all files on foo which are not on goo
>
> * Delete all files on goo which are not on foo


$ rsync -av --delete /mnt/foo/* /mnt/goo
--
We're looking for smart Linux people:
http://www.tiger-computing.co.uk/jobs

--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------