Garayed.com  

Go Back   Garayed.com > Linux
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-28-2008, 04:51 AM
Robert Riches
 
Posts: n/a
Default Re: Make constant backup of various config files?

On 2008-09-28, RedPenguin <ZeroOneTwoThree@gmail.com> wrote:
> What would be the best way, meaning either a script or some program to
> backup various config files?
>
> Basically on my one "router", which is ClarkConnect, I have modified
> smb.conf, and some other various files here and there, and I was
> wondering if either in a script or specifying in a program, if I could
> have something go through, backup various config files into a zip/tar
> or something similar and then send them over to another machine,
> through FTP, Samba, NFS, or whichever would probably be the best in
> this case.
>
> I already think I have a script in my head on how to do it already,
> but I didn't want to make my life hard and find out there is some
> program to do this already.


How about using tar to capture the content of the files you
want, with the tar command encapsulated in a shell or Perl
script? If you want it done automatically on a periodic
basis, you could have cron run the script.

One alternative to tar might be rsync, depending on the
details of what you want to do and how you want to do it.

For my own systems, I have an copy managed with RCS of all
config files I know that I modify, and I have a script that
can import into the copy area, export from the copy area,
and compare/verify between the copy area and the live
files. For the files that have the same contents on
multiple systems, I use a symlink in the copy area.

--
Robert Riches
spamtrap42@verizon.net
(Yes, that is one of my email addresses.)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:36 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.