Auto backup
I'd like to run a script once a week to backup /root, /usr and /var. I'd also like to tar those dump files. If I run the following script what do I need to add to it to compress the dump files? Also, will the dump commands run one after another or do I need something to start each one?
#!/bin/sh
mount /dev/d0s1 /mnt/usb
dump -0au -L -f /mnt/usb/usr.ad0s1f.dump /usr
dump -0au -L -f /mnt/usb/var.ad0s1d.dump /var
dump -0au -L -f /mnt/usb/root.ad0s1a.dump /
#end
|