Thread view

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
2) "-b":
When one runs "save-config -b" the old config will be backed upt to
etc-backup.tar.bz2
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.
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"
So that's it for now. What do you think?
--
MfG / Regards
Friedrich Lobenstock
____________________________________________________________________
Friedrich Lobenstock Linux Services Lobenstock
URL: http://www.lsl.at/ Email: fl@...
____________________________________________________________________

Hi!
Friedrich Lobenstock wrote on 26.03.2004 01:49 MET:
>
> *The following applies only if one uses eg. a USB stick to save the config*
>
Of course there's something else that came to my mind right after hitting
the send button. So here it goes:
5) option "-really-quit" .... save config with no output at all
6) option "-dump": ... implies -really-quit
When one runs "save-config -dump" the config will not be saved to the
configuration media but dumped to stdout.
Background: This way one could run
ssh root@... "save-config -dump" > etc.tar.bz2
on a remote host.
--
MfG / Regards
Friedrich Lobenstock
____________________________________________________________________
Friedrich Lobenstock Linux Services Lobenstock
URL: http://www.lsl.at/ Email: fl@...
____________________________________________________________________

Friedrich Lobenstock wrote:
> Hi!
>
> Friedrich Lobenstock wrote on 26.03.2004 01:49 MET:
>
>>
>> *The following applies only if one uses eg. a USB stick to save the
>> config*
>>
>
> Of course there's something else that came to my mind right after
> hitting the send button. So here it goes:
>
> 5) option "-really-quit" .... save config with no output at all
-really-quiet
Do we really need this?
> 6) option "-dump": ... implies -really-quit
>
> When one runs "save-config -dump" the config will not be saved to the
> configuration media but dumped to stdout.
>
> Background: This way one could run
> ssh root@... "save-config -dump" > etc.tar.bz2
> on a remote host.
Hmmmm, like that. Of course one would have to have root login enabled,
which I usually don't allow.
Heiko

Heiko Zuerker <heiko@...> writes:
>> Background: This way one could run
>> ssh root@... "save-config -dump" > etc.tar.bz2
>> on a remote host.
>
> Hmmmm, like that. Of course one would have to have root login enabled,
> which I usually don't allow.
That's pretty much what I have been doing for some time with a
modified version of the save-config script. Now if we could just use
tftp to load the config... :-)
--
Arnaud

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

Heiko Zuerker wrote on 26.03.2004 02:02 MET:
> Friedrich Lobenstock wrote:
>
>> 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.
Excatelly.
--
MfG / Regards
Friedrich Lobenstock
____________________________________________________________________
Friedrich Lobenstock Linux Services Lobenstock
URL: http://www.lsl.at/ Email: fl@...
____________________________________________________________________

Community

Help

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

CountryState

JavaScript is required for this form.

I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details