[ILUG] Copying directory trees

Steven Satelle (Service Desk) Steven.Satelle at aer-rianta.ie
Tue Jan 27 10:06:03 GMT 2004


Brendan Halpin <mailto:brendan.halpin at ul.ie> scribbled on 27 January 2004
09:19:

> Say I want to move /usr/local to a new partition: what's the least
> error-prone way of doing the copy?
> 
> cp to the new location, delete old, edit fstab, mount new partition?
> tar /usr/local, delete old, edit fstab, mount new partition, untar?
> 

the way I'd do it is 

'cp -rvf /usr/local /<new patition in temp mount point>
2>~/usr_local_cp.err'

then check to make sure there was no errors, unmount the old /usr/local,
mount the new one and leave the old one unmounted for a day or so to make
sure I can go back in case of SOD

But..... YMMV



-- 



DISCLAIMER:  The information contained in this email and in any attachments
is confidential and is designated solely for the attention and use of the
intended recipient(s).  If you are not the intended recipient(s) of this
email you must not use, disclose, copy, distribute or retain this message,
the attachment(s) or any part thereof.  If you believe that you have
received this email in error please notify us immediately at the address set
out below.  Please also delete all copies of this email and any
attachment(s) from your computer system.

  Unless expressly stated this email is not intended to create any
contractual relationship.  If this email is not sent in the course of the
senders employment or fulfilment of his/her duties to Aer Rianta, Aer Rianta
accepts no liability whatsoever for the content of this message or any
attachment(s). 

 infosec at aer-rianta.ie

  Aer Rianta, Head Office, Dublin Airport  





More information about the ILUG mailing list