Next Previous Contents

4. Scripts

4.1 save-config - save configuration

Calling the script 'save-config' without any further options will start the script in interactive mode. If any of the following options are provided on command line, save-config will run in non-interactive mode. The following options are supported for specifying which parts should be saved in the configuration file:


 -home              =>    save modified hidden files in $HOME (that's: '.*')
 -etc               =>    save modified files from directory /etc
 -configdir         =>    save complete directory $HOME/config
 -all               =>    save /etc, $HOME/.*, $HOME/config and unionfs-snapshot

By default the configuration file will be generated and stored in the current directory. The following options are supported for specifying another destination of the configuration file:


 -file foo_bar_config.tbz               =>    save configuration in specified file
 -mail user@example.com                 =>    send configuration via e-mail
 -ssh [user@]remotehost:/path/to/file/  =>    ssh/scp configuration

4.2 restore-config - restore configuration

It is not only possible to restore a configuration via bootoptions but also via a script namend 'restore-config'. This script exists to restore a specific configuration saved via 'save-config'. Just specify the name of the archive which should be extracted as argument to restore-config.


 -home              =>    extract only /home
 -etc               =>    extract only /etc
 -configdir         =>    extract only $HOME/config

Usage examples: 'restore-config config.tbz' restores config.tbz. 'restore-config -etc foobar.tbz' restores only /etc from configuration archive foobar.tbz.

4.3 mkpersistenthome - use persistent home-directory

You have a local partition you would like to use as your home-directory? Just use the interactive script called 'mkpersistenthome'. It will either create a file namend grml.img on the specified partition or create a ext2-partition. grml.img is a loopback device, you can specify its size manually. it is possible to scan through the partitions to identify the appropriate partition. To use the home-directory when booting grml specify the appropriate bootoption on bootprompt:


 home=/dev/hda3    =>   use /dev/hda3 as the homepartition
 home=scan         =>   scan through the available partitions and search
                        for file grml.img


Next Previous Contents