[Hampshire] rsync 101

Top Page

Reply to this message
Author: Rob Malpass
Date:  
To: Hampshire LUG Discussion List
Subject: [Hampshire] rsync 101
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 be the backup.



If A contains:

/foo/bar/fred



Say I've backed up A to be before such that B now also contains

/foo/bar/fred



Now let's suppose that I make a change to A so that it is now

/foo/bar/1987/fred



(and fred is still the same file). 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 grsync to do is ensure B is a direct copy of A. I'd prefer not
to do this via taking an image (because A and B are retail USB 2TB drives
and have some form of windows utility (which comes back after formatting no
matter what fs I choose) on them and the last thing I need is to render them
unusable).



I suspect it's just a switch I need to set but I can't find it immediately -
so any help very well received.



Cheers

Rob

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