The way this script is set up, it will eventually create 7 directories,
1 for each backup.  If you do one backup per day, that's a weeks worth.
The most recent backup is the directory /bkup/backup.  Then the previous
day is /bkup/backup.0 on thru /bkup/backup.6.  The first half of the
script removes backup.6 and then moves backup.5 to backup.6 and so on.
And then it runs tar and gzip on the specified directories and puts them
in the /bkup/backup directory.

POP info might be in /etc or /etc/mail.  I'm not sure.  You could also
change the tar flags to do a recursive directory archive (if it's not
already).

-Rob.

James said these things on 20000614.1319:
| Rob, thanks for posting that script.. I've been looking for a way to
| backup vital files on Mandrake 7.02.  I'm confused, though, as to the
| technical aspect of this, or most scripts.  What exactly is it doing?
| What is "backup.5", etc.?  
| 
| There are some directories I know that I want
| to back up, then there are some areas I have no idea how to back up, for
| example, how do I back up all the pop3 users on my system?  The only
| access they have is pop3.. how do I maintain that setting in a backup?
| How do I back up any changes done in linuxconf?  I will probably just back
| everything up to one directory, like in your script, then move it over to
| another computer that has a cd burner and burn the backup to a CD every
| now and then.
| 
| Thanks again for your post.
| 
| james

Reply via email to