View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jun 03, 2005 3:24 am 
I don't know if I am the only person who has issues with mythbackup but I have had to fix it in both A12 and A16 so I thought I better get off my lazy ass and bost the diffs.
My problems were that it would not back up the etc, home, and root directories, the backup files were empty due to it not finding them. The other problem was that it was not making etc.bak or home.bak, this was due to the syntax not acounting for the files being gziped. I also added some lines to make a mythtv.tar.bz.bak as there wasn't one, I also created a variable for this rather than using the text.

I have been using knoppmyth for over 12months now and have had to fight with the avermedia 771 cards I have, the A16 install was a dream compaired the the R4 or A12 install :).

I am no linux expert so I may have done something wrong but it works for me, I don't know why I can't find anyone else with these issues, I am sure I am not doing anything different, but if you can tell me why it didn't work without being modded please let me know.

Cheers,
Beau


Code:
10d9
< BK_MTV="mythtv.tar.bz2"
31,32c30,31
<  [ -f "$BK_DIR/$BK_ETC.gz" ] && mv -f $BK_DIR/$BK_ETC.gz $BK_DIR/${BK_ETC}.gz.bak
<  find /etc ! -type d -newer /etc/.epoch | xargs tar -uf $BK_DIR/$BK_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
35,36c34,35
<  [ -f "$BK_DIR/$BK_HME.gz" ] && mv -f $BK_DIR/$BK_HME.gz $BK_DIR/${BK_HME}.gz.bak
<  find /home ! -type d -newer /home/.epoch | xargs tar -uf $BK_DIR/$BK_
HME
---
>  [ -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
40c39
<  tar czf $BK_DIR/$BK_GOD /root
---
>  tar czf $BK_DIR/$BK_GOD ./root
43,44c42
<  [ -f "$BK_DIR/$BK_MTV" ] && mv -f $BK_DIR/$BK_MTV $BK_DIR/${BK_MTV}.bak
< tar -cjvpf /myth/backup/$BK_MTV /home/mythtv/ /etc/mythtv/modules
---
> tar -cjvpf /myth/backup/mythtv.tar.bz2 /home/mythtv/ /etc/mythtv/modules


Top
  
 
 Post subject:
PostPosted: Fri Jun 03, 2005 7:02 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
A search of the forum would have turned up this recent post: http://mysettopbox.tv/phpBB2/viewtopic.php?t=4759


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 04, 2005 6:56 am 
tjc wrote:
A search of the forum would have turned up this recent post: http://mysettopbox.tv/phpBB2/viewtopic.php?t=4759


Search I did, find I did not. I noticed you didn't address the issues that "mythtv.tar.bz2" is not moved to a .bak, so there is still something new in my diffs for the punters.

Cesman: Just wondering my why this issues has not been addressed, as it has been in place from at least R4V5?

Cheers,
Beau


Top
  
 
 Post subject:
PostPosted: Sat Jun 04, 2005 10:16 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
The use of "./root", "./etc", ... are intentional. It's done that way so you can easily unpack them in a different location. Oh and your diff is backwards too... ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 05, 2005 3:05 am 
tjc wrote:
The use of "./root", "./etc", ... are intentional. It's done that way so you can easily unpack them in a different location. Oh and your diff is backwards too... ;-)


Strange, I just ended up with empty files when left as ./root, ./etc, ./home ... First time using diff so I more than likely screwed it up :).


Top
  
 
 Post subject:
PostPosted: Sun Jun 05, 2005 2:02 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
What you need to do is move the "cd /" command to the right place since a later change broke that. See my version for the details.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 15 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu