All pastes #32181 Raw Edit

Mine

public shellscript v1 · immutable
#32181 ·published 2005-12-03 00:07 UTC
rendered paste body
#!/bin/bashmount /mnt/backif [ $? -gt 0 ]then  echo "mount failed at `date`"|mail -s "backup failure" root  kill $$firsync -av --exclude /mnt --exclude /proc --exclude /sys \ --stats --delete / /mnt/back >/root/backup.log 2>&1if [ $? -gt 0 ]then  echo "rsync failed at `date`" >/root/backup.err  cat /root/backup.err /root/backup.log|mail -s "backup failure" rootfiumount /mnt/back 2>&1if [ $? -gt 0 ]then  echo "umount failed at `date`"|mail -s "backup failure" rootfi