On 7 Jul 2009, at 12:25, Patrick O'Connor wrote:
> Thanks for all the responses, it looks like I'll be building a bash
> alright. I have the bulk of the mails backed up onto the new machine
> won't need to be doing a big transfer across the network. Any mails
> the backup will be brought across by modifying the script to only
> mails from a certain date.
This is exactly why you use rsync - no need to mess with find, just
run rsync again and it will only copy what's new. HOWEVER, know what
you're doing, and look at the --dryrun option. By default, rsync
decides that files have changed based on their size and modification
time, and if you didn't do the initial copy with rsync, you mightn't
have preserved those attributes.
> I'll delve into the manuals for find and cpio to see what I can come
Repeat after me - rsync, rsync, rsync.
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!