X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=doc%2Fsave-config.1.txt;fp=doc%2Fsave-config.1.txt;h=55b75597f01d39d9228f44b5ea0301c7afb060b5;hp=0000000000000000000000000000000000000000;hb=044d67ae243554c35bf3832f51bbac4570b04e77;hpb=dd31080f647066e88d42cd2a7981631e0cf632ba diff --git a/doc/save-config.1.txt b/doc/save-config.1.txt new file mode 100644 index 0000000..55b7559 --- /dev/null +++ b/doc/save-config.1.txt @@ -0,0 +1,101 @@ +save-config(1) +============== + +Name +---- +save-config - save configuration + +Synopsis +-------- + +save-config + +About +----- + +This script generates a plain bzip2 compressed tar archive containing the +specified files, suitable as a GCA ('grml configuration archive', see +grml-autoconfig(1) for details). + +Options +------- + +The following options are supported for specifying which parts should be saved +in the configuration file: + + *-home*:: + +Store hidden files from $HOME ($HOME/.*). + + *-grmlhome*:: + +Store hidden files from \$HOME (\$HOME/.*) of user grml [use as user root]. + + *-etc*:: + +Sstore modified files from /etc. + + *-configdir*:: + +Store $HOME/config. + + *-all*:: + +Store all configuration files (:= -home, -configdir and -etc). + +[TIP] +It is also possible to use environment variables for specifying which parts +should be saved. Just set the corresponding variable: $SAVE_HOME, $SAVE_ETC, +$SAVE_CONFIGDIR and $SAVE_ALL + +The default filename of the generated configuration file is config.tbz. The +following options are supported for specifying another destination of the +configuration file: + + *-ssh user@host:/path/to/file*:: + +Copy configuration via ssh/scp to remote host. + + *-mail *:: + +Send configuration via mail. + + *-file foo_bar_config.tbz*:: + +Save configuration in specified file. + +Usage examples +-------------- + + *save-config -all*:: + +Store all configuration files in config.tbz in current dir. + + *save-config -home -mail devnull@grml.org*:: + +Store $HOME/.* in config.tbz and send it via mail. + + *save-config -etc -ssh devnull@grml.org:/path/*:: + +Store /etc in config.tbz and scp it to specified host. + + *save-config -all -file foo.tbz*:: + +Store all configuration files in foo.tbz. + + *SAVE_ALL=yes save-config -file /path/foo.tbz*:: + +Store all configuration files in /path/foo.tbz. + +Bugs +---- +If you find a bug please report it. See link:http://grml.org/bugs/ for details +about how to report bugs. + +See also +-------- +grml-autoconfig(1), grml-autoconfig(8), mkpersistenthome(1), restore-config(1) + +Author +------ +(c) 2005++, Michael Prokop