My understanding of computers is, they are machines and machines fail from time to time. That's when you get a replacement for the machine. With computers that's not always easy, because computers hold lots of valuable information, especially in times of digital cameras. So that's why we have backups. In my computer I had a separate hard drive
(
Read more... )
Comments 5
Reply
CNT=1
while [ ! -d /$BACKUP_MOUNT/somedir ]
do
if [ $CNT -gt 3 ]
then
echo "ERROR: Could not mount Backup Volume $BACKUP_MOUNT."
exit -1
fi
mount $BACKUP_MOUNT
CNT=$(expr $CNT + 1)
sleep 10
done
Reply
Reply
Reply
Cronjob in cron.daily:
#!/bin/sh
#
# This script runs rsyncbackup cronjobs
NICE="/usr/bin/nice -n 15"
RSYNCBACKUP="/usr/local/bin/rsyncbackup.sh"
BACKUPSET="daily"
logger -t rsyncbackup[$$] "Starting backup set ${BACKUPSET}."
${NICE} /bin/sh ${RSYNCBACKUP} ${BACKUPSET}
logger -t rsyncbackup[$$] "Backup set ${BACKUPSET} finished."
And the actual backup script:
#!/bin/sh ( ... )
Reply
Leave a comment