By way of answering question 3, have a look at the sysback script below.
Understand I'm going to patch it a little so another version that puts
dates in file names for the .log file and the actual backup files as well
so another version will appear.

cut here.
#!/bin/sh
# system backup script
# uses tar to do a system backup to zip disks in /dev/hdd4
# excluded directories are: /proc/ and /tmp/
echo "put a zip disk in drive for system backup"
read
cd /
echo "system backup log started:" >/tmp/sysback.log
date >>/tmp/sysback.log
mount -t vfat /dev/hdd4 /zip
tar zcMpPv --exclude=/proc,/tmp --file=/zip/sysback.tar / 2>&1 >>/root/sysback.log
mv /tmp/sysback.log /root/sysback.log
cp /root/sysback.log /var/adm/archive/sysback.log
umount /zip




cut here.
Jude <dashielljt(at)gmpexpress-dot-net>

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to