LinHES Forums http://forum.linhes.org/ |
|
R5A22 - mythbackup has a bug (I think) http://forum.linhes.org/viewtopic.php?f=3&t=8108 |
Page 1 of 1 |
Author: | stinga [ Thu Jan 26, 2006 5:47 am ] |
Post subject: | R5A22 - mythbackup has a bug (I think) |
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 |
Author: | ryanpatterson [ Thu Jan 26, 2006 9:08 am ] |
Post subject: | |
Yea I posted the same thing on sunday. |
Author: | tjc [ Thu Jan 26, 2006 8:21 pm ] |
Post subject: | |
Yeah, it's a really old bug, moving the "cd /" is the simplest fix. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |