![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
| |||
| 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.) |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |