Script to backup system files
I'm looking at backing up configuration and other various files off my NetBSD box to my fileserver.
I've made an attempt to write up a script to do all this for me. I'm not at home at the moment, or infront of a BSD box, so I've just tried remembering commands and file paths from memory. I'd appreciate some input on the following:
Code:
# OS: NetBSD 3.0.1 -Kristijan |
From the find man pages:
-mtime n True if the difference between the file last modification time and the time find was started, rounded up to the next full 24-hour period, is n 24-hour periods. Could I do something like this for the line count? Code:
if [ $linecnt -ge 5 ] -Kristijan |
Script updated :)
Any advice and/or tips would be greatly appreciated. -Kristijan |
Why not use the entire /etc and keep diffs if size matters to you ?
A daily pkg_info comes handy by using diffs, for example. It's good to keep records of everything you do as root, dates and so on. |
All times are GMT -5. The time now is 05:53 PM. |