View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Nov 27, 2005 1:11 pm 
Offline
Joined: Mon Nov 21, 2005 2:55 pm
Posts: 7
I have connected a new sata drive that I plan to store my /myth files on. But before I go on editing the fstab I am wondering how to copy the myth folders and files to the new drive with right permissions.

Thanks for help!


newbie


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 27, 2005 1:58 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Code:
cp -a /myth /path/to/newdrive

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 28, 2005 11:06 am 
Offline
Joined: Mon Nov 21, 2005 2:55 pm
Posts: 7
Thanks for answer, but when I try this command I get different permissions on the copy when I type ls -l /myth. Any ideas :?:


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 28, 2005 1:00 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
The most reliable way I know of doing this is to use the old tar trick. Note that you need to do this as root:
Code:
( cd /myth ; tar cf - . ) | ( cd /NewMyth ; tar xf - )


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 12:40 am 
Offline
Joined: Mon Nov 28, 2005 9:05 pm
Posts: 200
Tar would work great as tjc said. cp -rpv * /newmyttv should preserver the permissions as well.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu