LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Copying directory trees

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell