At 10:21 20/02/02 +0000, Gavin McCord wrote:
>On Wed, Feb 20, 2002 at 02:57:04AM -0000, Ben McCosh wrote:
>> Can anyone recommend any backup scripts / software for slackware 8
>>
>> Secondly how do I stop in.pop3d logging every access /var/log/messages?
>>
>> Thanks in advance all
>>
>> Ben
>
>1) man tar
You're getting mean in your old age Gavin ;)
Here's something to get you started Ben (obviously you might want to edit
the destination unless you happen to be using a tape drive at /dev/tape):
#!/bin/sh
#
# bkup - a script to backup entire system (except for listed files)
# to /dev/tape
# C.McKinnon 30/6/98
tar -czf /dev/tape --exclude-from /etc/nobackup / 2>bkup.err
sleep 120
# eject the tape
mt offline
Another fave way of setting up the backups is to use 'find' to generate a
list of the stuff you want e.g. mtime > last_backup_log (I'm guessing here):
find / -newer bkup.err.last | tar -cvzf /dev/tape --files-from -- 2>bkup.err
mv bkup.err bkup.err.last
As for the logging....
man syslog.conf
;)
Colin
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------