Re: [Hampshire] rsync

Top Page

Reply to this message
Author: Philip Stubbs
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] rsync
On 5 November 2012 18:32, Rob Malpass <linux@???> wrote:

>
>
> **
>
> 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****
>
> **
>


I have a real simple script that uses this line
rsync -av --delete --ignore-errors <source> <destination>

It works for me. So far! :-)

man rsync is also very helpful.
--
Philip Stubbs
--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------