Re: [Hampshire] rsync 101

2012-06-02 Thread Victor Churchill
On 2 June 2012 09:29, Jon Wilks jonnyx1...@gmail.com wrote: If ever you get temped to use --delete as an arg to rsync, always always always test it first with the -nv argument.  No matter how confident you are with the outcome. oooh yess. Seconded. Except I remeber '--dry-run' (though I

[Hampshire] rsync 101

2012-06-01 Thread Rob Malpass
Hi all I need a bit of help with rsync (well grsync actually but I assume grsync is just an interface to rsync) please... What I've used it for in the past is to mirror two drives - and it works fine. However I've noticed the following and I need a workaround. Let A be the master and B

Re: [Hampshire] rsync 101

2012-06-01 Thread Andy Smith
Hi Rob, On Fri, Jun 01, 2012 at 06:04:16PM +0100, Rob Malpass wrote: Running grsync in the usual way means I end up with /foo/bar/1987/fred (which is correct) but I also end up with /foo/bar/fred (which is now a duplicate - and can be deleted) What I want

Re: [Hampshire] rsync 101

2012-06-01 Thread Vic
but I also end up with /foo/bar/fred (which is now a duplicate - and can be deleted) You're looking to add one of the --delete options to rsync. I've no idea how to do that in grsync - I don't use it. The exact incantation to use depends on when you want the deletion to