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: Thu Jan 04, 2007 2:32 pm 
Offline
Joined: Sat Oct 29, 2005 6:57 am
Posts: 176
I have backed up my myth set up to the back up directory. I am trying to do a cut and paste to my windows pc. Several of the files won't copy because I get an error that says sometheing to the effect that the file is busy. I have looked at a link on knoppmythwiki but the data is gone. The link was http://www.knoppmythwiki.org/index.php? ... FilesHowTo.

Thanks

Rkshack


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 2:54 pm 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
It's a permissions issue. The backup file is owned by root, and doesn't allow others to read.
Edit /usr/local/bin/mythbackup

See:
# If you can't read this you've got no business restoring from it anyway.
chown root:root $BACKUP_TAR* $BACKUP_SQL*
chmod go-rwx $BACKUP_TAR* $BACKUP_SQL*

Just comment out the chown lines:
# If you can't read this you've got no business restoring from it anyway.
#chown root:root $BACKUP_TAR* $BACKUP_SQL*
#chmod go-rwx $BACKUP_TAR* $BACKUP_SQL*


The authors of the backup had their reasons for doing this, but it can get in the way. I have shared my backup directory on the network so that I can include in my windows backup automatically. This too, was initially thwarted by the well-intended permissions in the backup script.


Top
 Profile  
 
 Post subject: permissions
PostPosted: Thu Jan 04, 2007 2:57 pm 
Offline
Joined: Sat Oct 29, 2005 6:57 am
Posts: 176
Is there a good way to change the permissions of the files that are already created?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 3:06 pm 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
as root:
Code:
cd /myth/backup
chmod a+r *

(change permissions, all users, read access=YES, all files in this directory)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 3:35 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
@ thornsoft, interesting... I always do a
Code:
# chmod 777 file
. I didn't know about that a+r * syntax.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


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 0 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