LinHES Forums http://forum.linhes.org/ |
|
mythbackup Problems with solution http://forum.linhes.org/viewtopic.php?f=6&t=4784 |
Page 1 of 1 |
Author: | quotidian@gmail.com [ Fri Jun 03, 2005 3:24 am ] |
Post subject: | mythbackup Problems with solution |
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 |
Author: | tjc [ Fri Jun 03, 2005 7:02 pm ] |
Post subject: | |
A search of the forum would have turned up this recent post: http://mysettopbox.tv/phpBB2/viewtopic.php?t=4759 |
Author: | quotidian@gmail.com [ Sat Jun 04, 2005 6:56 am ] |
Post subject: | |
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 |
Author: | tjc [ Sat Jun 04, 2005 10:16 am ] |
Post subject: | |
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... ![]() |
Author: | quotidian@gmail.com [ Sun Jun 05, 2005 3:05 am ] |
Post subject: | |
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 ![]() |
Author: | tjc [ Sun Jun 05, 2005 2:02 pm ] |
Post subject: | |
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. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |