[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Conf File Backup Idea

Thom Paine wrote:
I was wondering if anyone routinely backups their conf files? I am
trying to figure out a way to just backup any of the conf files I
regularly use so that I can rsync them to an offsite server somewhere.

I'm not looking to do a full server backup, as that isn't really my
intention. I'm looking at things like dhcpd.conf, httpd.conf, bind,
that sort of thing, so that I can quickly roll out a new server based
on the old one.

Where I am going with this, is that I am anticipating replacing some
hard drives in a server of mine with some larger ones. Also I almost
lost a whole server worth of stuff (it is very aged and nothing
mission critical) but that got me to thinking if I had a program or
some sort of a way to add files I've edited to a list that get rsynced
somewhere, that would be something I am very interested in.

Even if I just make a directory and make a symbolic link to it, would
that work? Expanding on this would let me backup a weeks worth of
versions in the event I don't like a change I made to one file.

Anyways, just looking for some ideas here on this.

Since config files can be scattered all over hell-and-gone and don't all
conform to a standardized filename format, it'd be quite difficult.  I
suppose you could do something like:

	find / -name "*.conf" >/tmp/conflist.txt

to build a list of files with ".conf" at the end, but that wouldn't
grab your bind configs for example.  For those that don't match the
find's criteria, you could manually append them to /tmp/conflist.txt,
then use something like the "--files-from=/tmp/conflist.txt" option to
rsync or tar to back them up.

Just an idea.  Your mileage may vary.  Void where prohibited.  Some
batteries required.  (insert appropriate disclaimer here)
- Rick Stevens, Systems Engineer                      ricks nerd com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-   The light at the end of the tunnel is really an oncoming train.  -

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]