View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Jan 26, 2006 5:47 am 
Offline
Joined: Sat Nov 05, 2005 4:37 am
Posts: 191
Location: Cornwall - uk
G'day all,

I believe there is a bug in mythbackup

The following...
Quote:
# Tars newer part of /etc
[ -f "$BK_DIR/$BK_ETC" ] && mv -f $BK_DIR/$BK_ETC $BK_DIR/${BK_ETC}.bak
find ./etc ! -type d -newer /etc/.epoch | xargs tar -uf $BK_DIR/$BK_ETC
[ -f "$BK_DIR/$BK_ETC" ] && gzip -9 $BK_DIR/$BK_ETC
# Tars newer part of /home
[ -f "$BK_DIR/$BK_HME" ] && mv -f $BK_DIR/$BK_HME $BK_DIR/${BK_HME}.bak
find ./home ! -type d -newer /home/.epoch | xargs tar -uf $BK_DIR/$BK_HME
[ -f "$BK_DIR/$BK_HME" ] && gzip -9 $BK_DIR/$BK_HME
# Tars all of /root
[ -f "$BK_DIR/$BK_GOD" ] && mv -f $BK_DIR/$BK_GOD $BK_DIR/${BK_GOD}.bak
tar czf $BK_DIR/$BK_GOD ./root


Should be... (no . in front of /etc /home /root)
Quote:
# Tars newer part of /etc
[ -f "$BK_DIR/$BK_ETC" ] && mv -f $BK_DIR/$BK_ETC $BK_DIR/${BK_ETC}.bak
find /etc ! -type d -newer /etc/.epoch | xargs tar -uf $BK_DIR/$BK_ETC
[ -f "$BK_DIR/$BK_ETC" ] && gzip -9 $BK_DIR/$BK_ETC
# Tars newer part of /home
[ -f "$BK_DIR/$BK_HME" ] && mv -f $BK_DIR/$BK_HME $BK_DIR/${BK_HME}.bak
find /home ! -type d -newer /home/.epoch | xargs tar -uf $BK_DIR/$BK_HME
[ -f "$BK_DIR/$BK_HME" ] && gzip -9 $BK_DIR/$BK_HME
# Tars all of /root
[ -f "$BK_DIR/$BK_GOD" ] && mv -f $BK_DIR/$BK_GOD $BK_DIR/${BK_GOD}.bak
tar czf $BK_DIR/$BK_GOD /root



Or you need to add
Quote:
cd /

before
# back up the old back, if present:

I did cd /

Stinga


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 26, 2006 9:08 am 
Offline
Joined: Fri Aug 26, 2005 9:54 pm
Posts: 617
Yea I posted the same thing on sunday.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 26, 2006 8:21 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Yeah, it's a really old bug, moving the "cd /" is the simplest fix.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 23 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