From: Heiko Z. <he...@zu...> - 2004-03-26 01:06:18
|
Friedrich Lobenstock wrote: > Hi! > > *The following applies only if one uses eg. a USB stick to save the config* > > 1) "-h" .... print some help text and all possible command line options Good point > 2) "-b": > > When one runs "save-config -b" the old config will be backed upt to > etc-backup.tar.bz2 Good idea. > 3) option "-t timeout": > > When one runs "save-config -t 10" the config will be saved as > etc-tryout.tar.bz2 instead of etc.tar.bz2 and the timeout value 10 will > be written to a file named "try-out". > > At the next boot the system will detect both files from above, will load > the etc-tryout.tar.bz2 and continue starting the system. Before the > first prompt is displayed a "shutdown -r XX &", where XX is the value > given via -t to save-config. > > Background: This way one could try out invasive changes to the config > even from remote without the risk of loosing the old config in case the > new config is crap. Should be easy to implement, why not. > 4) /etc/sysconfig/save-config with the following content: > > # > # This config option, only applicable when used with an USB configuration > # media, allows one to keep more than one copy of the configuration. This > # might be of help when the configuration media goes bad so there is an > # increased chance to recover the configuration from one of the additional > # ones. > # > NR_COPIES="3" Nice feature, we should keep the default to 0, which means no backup. > So that's it for now. What do you think? Go ahead and implement it. Heiko |