Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Preventing backup on shutdown< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 20 2006,04:44 QUOTE

If it doesn't backup from runlevel 2, my only guess is that you are not shutting down properly.  The system must enter either runlevel 0 or 6 and run knoppix-reboot or knoppix-halt in order for the backup to occur.  It looks to me as though the backup system is properly coded to work as expected regardless of your runlevel.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Oct. 20 2006,18:46 QUOTE

If do have backup.tar.gz sitting on multiple devices, which you shouldn't, you always have complete control of your system by specifying which device by using the restore boot option.

In fact all auto searches can be overridden with boot options.
Be it restore, mydsl, or even bootfrom. By specifying the exact device will speed up the boot process, as auto scanning will not be performed. On the otherhand the auto scan feature provides a nice and easy hands free boot from CD experience.
Back to top
Profile PM WEB 
andrewb Offline





Group: Members
Posts: 316
Joined: July 2005
Posted: Oct. 22 2006,23:44 QUOTE

Quote (mikshaw @ Oct. 19 2006,14:44)
If it doesn't backup from runlevel 2, my only guess is that you are not shutting down properly.  The system must enter either runlevel 0 or 6 and run knoppix-reboot or knoppix-halt in order for the backup to occur.  It looks to me as though the backup system is properly coded to work as expected regardless of your runlevel.

I've realised what the problem was I was having - I had a persistent /opt directory. In this case .backup_device exists permanently so even when 'norestore' is specified a backup still occurs on shutdown. I'm moving away from the persistent /opt so the problem should go away.

When there is a persistent /opt it's not that it doesn't backup - it DOES backup from runlevel 2, but no RESTORE is done when 'DSL 2' is used as a boot option. This results in the previous backup being overwritten with default values. I've tracked this down to the 'DSL 2' boot line in grub having the 'norestore' option specified. This means that if you decide to boot to CLI using 'DSL 2' you will not have your backup restored, BUT you will have you backup overwritten when you close down (unless you just pull the plug!).

To my mind this is a trap for the unwary. Particularly with slower systems where you may use a persistent /opt  &  want to boot to CLI rather than X on every occasion. I suggest the 'norestore' option be removed from the 'DSL 2' boot option for the default install. Users can always add 'norestore' if they wish & at least they will then be aware of what is going on. If I get a chance I'll check how the WIKI describes the backup/restore function, but it does need to be made clear that specifying 'norestore' at boot time doesn't stop a backup being made of the settings from that session being done
Back to top
Profile PM 
colinbes Offline





Group: Members
Posts: 41
Joined: May 2004
Posted: Oct. 23 2006,00:13 QUOTE

Found an easy solution to preventing auto restore on shutdown while still maintaining ease of backup.

In /opt there is a script called powerdown.sh, removing appropriate lines prevent backup from being called.

I went this route and kept /opt/.backup_device as this allowed presetting of backup device and provision of simple script for support personnel to remotely execute backup when required.

Just make sure that powerdown.sh is included in filetool.lst file else the change won't be restored on next reboot.
Back to top
Profile PM 
8 replies since Oct. 19 2006,23:24 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Preventing backup on shutdown

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code