LinHES Forums
http://forums.linhes.org/

copy backup to windows pc
http://forums.linhes.org/viewtopic.php?f=17&t=13299
Page 1 of 1

Author:  rkshack [ Thu Jan 04, 2007 2:32 pm ]
Post subject:  copy backup to windows pc

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

Author:  thornsoft [ Thu Jan 04, 2007 2:54 pm ]
Post subject: 

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.

Author:  rkshack [ Thu Jan 04, 2007 2:57 pm ]
Post subject:  permissions

Is there a good way to change the permissions of the files that are already created?

Author:  thornsoft [ Thu Jan 04, 2007 3:06 pm ]
Post subject: 

as root:
Code:
cd /myth/backup
chmod a+r *

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

Author:  graysky [ Thu Jan 04, 2007 3:35 pm ]
Post subject: 

@ thornsoft, interesting... I always do a
Code:
# chmod 777 file
. I didn't know about that a+r * syntax.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/