Last week I set up a backup file server using SSH, rsync and public key authentication with the following script in /etc/cron.hourly:
Code:
#! /bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
rsync -ave ssh --delete-after backup@192.168.0.100:/mnt/drive1/Shared /mnt/backup > /home/admin/rsync.hourly.log
I have checked the log file rsync.hourly.log several times a day to keep track of the backup process. Everything was running well, until yesterday, it started giveing me error messages. Here is the log from the last backup that was done:
Code:
receiving file list ... done
Shared/Accounting/Letters-Memos/
Shared/Accounting/Letters-Memos/Proof of Address letter.doc
Shared/ContactsDB/Database/
Shared/ContactsDB/Database/Contacts.ldb
Shared/ContactsDB/Database/Contacts.mdb
IO error encountered -- skipping file deletion
sent 46080 bytes received 1310028 bytes 14052.93 bytes/sec
total size is 67575835171 speedup is 49830.72
To see if I could get some more info on what was going on, I checked in /var/log/syslog to see if cron was giving me any error messages, but it is not. The backup server is running Ubuntu 6.06, and the files being backed up are on a hard drive shared via samba on a server running Mandriva 2006. If anyone has any idea of what is going on and how to fix it, your help will be appreciated.
crashsystems