1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
4 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
5 <TITLE>grml - config-framework: Scripts</TITLE>
6 <LINK HREF="config-framework-5.html" REL=next>
7 <LINK HREF="config-framework-3.html" REL=previous>
8 <LINK HREF="config-framework.html#toc4" REL=contents>
11 <A HREF="config-framework-5.html">Next</A>
12 <A HREF="config-framework-3.html">Previous</A>
13 <A HREF="config-framework.html#toc4">Contents</A>
15 <H2><A NAME="s4">4.</A> <A HREF="config-framework.html#toc4">Scripts</A></H2>
17 <H2><A NAME="ss4.1">4.1</A> <A HREF="config-framework.html#toc4.1">save-config - save configuration</A>
21 <P>Calling the script 'save-config' without any further options will start
22 the script in interactive mode. If any of the following options are
23 provided on command line, save-config will run in non-interactive mode.
24 The following options are supported for specifying which parts should be
25 saved in the configuration file:</P>
30 -home => save modified hidden files in $HOME (that's: '.*')
31 -etc => save modified files from directory /etc
32 -configdir => save complete directory $HOME/config
33 -all => save /etc, $HOME/.*, $HOME/config and unionfs-snapshot
38 <P>By default the configuration file will be generated and stored in the
39 current directory. The following options are supported for specifying
40 another destination of the configuration file:</P>
45 -file foo_bar_config.tbz => save configuration in specified file
46 -mail user@example.com => send configuration via e-mail
47 -ssh [user@]remotehost:/path/to/file/ => ssh/scp configuration
53 <H2><A NAME="ss4.2">4.2</A> <A HREF="config-framework.html#toc4.2">restore-config - restore configuration</A>
57 <P>It is not only possible to restore a configuration
58 <A HREF="config-framework-5.html#bootoptions">via bootoptions</A> but also via a script namend 'restore-config'.
59 This script exists to restore a specific configuration saved via
60 'save-config'. Just specify the name of the archive which should be
61 extracted as argument to restore-config.</P>
66 -home => extract only /home
67 -etc => extract only /etc
68 -configdir => extract only $HOME/config
73 <P>Usage examples: 'restore-config config.tbz' restores config.tbz.
74 'restore-config -etc foobar.tbz' restores only /etc from configuration
75 archive foobar.tbz.</P>
77 <H2><A NAME="ss4.3">4.3</A> <A HREF="config-framework.html#toc4.3">mkpersistenthome - use persistent home-directory</A>
81 <P>You have a local partition you would like to use as your home-directory?
82 Just use the interactive script called 'mkpersistenthome'. It will
83 either create a file namend grml.img on the specified partition or
84 create a ext2-partition. grml.img is a loopback device, you can specify
85 its size manually. it is possible to scan through the partitions to
86 identify the appropriate partition. To use the home-directory when
87 booting grml specify the appropriate bootoption on bootprompt:</P>
92 home=/dev/hda3 => use /dev/hda3 as the homepartition
93 home=scan => scan through the available partitions and search
101 <A HREF="config-framework-5.html">Next</A>
102 <A HREF="config-framework-3.html">Previous</A>
103 <A HREF="config-framework.html#toc4">Contents</A>