3 ###############################################################################
6 # Author : Chris Koeritz #
7 # Rights : Copyright (C) 2000-$now by Author #
11 # Bundles the configuration files that are commonly in a user's home dir. #
13 ###############################################################################
14 # This program is free software; you can redistribute it and/or modify it #
15 # under the terms of the GNU General Public License as published by the Free #
16 # Software Foundation; either version 2 of the License or (at your option) #
17 # any later version. See: "http://www.gruntose.com/Info/GNU/GPL.html" for a #
18 # version of the License. Please send any updates to "fred@gruntose.com". #
19 ###############################################################################
21 require "shared_snarfer.pl";
23 use Env qw(HOME USER);
27 # get the number we use and increment it for the next use.
28 local($number) = &retrieve_number("aa_backup");
30 # variables for directory location to backup and the file to dump it in.
31 local($root) = "$HOME";
32 local($snarf_file_base) = snarf_prefix("$USER");
33 local($snarf_file) = &snarf_name($snarf_file_base, $number);
35 # store the archive number in the file for retrieval on the other side.
36 &backup_number("aa_backup", $snarf_file_base, $number);
38 ############################################################################
40 # backup all the config info for kde.
41 &backup_hierarchy($snarf_file_base, $number, "$root", ".kde");
43 # get any dot files ending in "rc", or with "bash" or "profile" in them, or
44 # that start with "x".
45 &backup_files($snarf_file_base, $number, $root, ".",
46 ("*rc", ".*bash*", ".*profile*", ".x*", ));
48 # get the ssh configuration files.
49 &backup_hierarchy($snarf_file_base, $number, "$root", ".ssh");
51 # now rename the file so only the unpacker can access it.
52 &rename_archive($snarf_file);