LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-06-2006, 11:58 AM   #1
crashsystems
Member
 
Registered: May 2006
Location: Tennessee et. al
Distribution: Debian Sid, Etch
Posts: 138

Rep: Reputation: 15
rsync IO Error


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
 
Old 10-06-2006, 02:10 PM   #2
marcon
LQ Newbie
 
Registered: Jan 2006
Distribution: OPEN SUSE
Posts: 6

Rep: Reputation: 0
does the tape rewind when starts the tape or just append it? it could be a full tape... have you tryed a new tape?
 
Old 10-06-2006, 11:54 PM   #3
crashsystems
Member
 
Registered: May 2006
Location: Tennessee et. al
Distribution: Debian Sid, Etch
Posts: 138

Original Poster
Rep: Reputation: 15
The backup medium is an IDE hard drive (200 GB), and there is a lot of free room on it currently.

crashsystems
 
Old 01-14-2007, 10:40 PM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Like the original poster, I am having this error when I try to rsync using the --delete option. I get the IO error encountered -- skipping file deletion. Anyone have any idea why we are getting this? I am backing up to an IDE internal hard drive with plenty of room on it.
 
Old 01-17-2007, 11:15 PM   #5
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Well, I fixed this weird IO error problem. Originally I was rsyncing with this command:
Code:
rsync -azvgotu --exclude=/blahblah --delete -e ssh username@my.ipaddress.com:/path /home/backup
I would then get the I/O error. So then I did this:
Code:
rsync -azv --exclude=/blahblah --ignore-errors -e ssh username@my.ipaddress.com:/path /home/backup
The bolded parts are what I changed and that fixed the I/O problem. Now it deletes fine. I suspect it either has to do with me trying to carry over the owner,group, and time (-azvgotu) and/or the --ignore-errors option. The users/groups do not exist on the computer I am trying to backup on to. Weird, but it works now.

Last edited by Micro420; 01-17-2007 at 11:18 PM.
 
Old 05-19-2013, 01:00 PM   #6
Azendale
LQ Newbie
 
Registered: Sep 2011
Distribution: Ubuntu, Debian
Posts: 2

Rep: Reputation: Disabled
Just a note to people reading this thread, a lot of times, you will get I/O errors when a file that you are trying to copy disappears sometime between when rsync goes through and sees what is changed and needs to be transferred, and when it actually gets to trying to transfer that file. This can often happen when you are backing up a running system (it often happens with Firefox's Cache when I'm backing up my computer).
 
1 members found this post helpful.
  


Reply

Tags
backup, rsync


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync: error while copying Fusi Linux - Software 5 06-10-2013 12:00 AM
error with rsync DJE007 Linux - Networking 3 09-21-2009 12:51 AM
rsync error noir911 Suse/Novell 1 08-03-2006 03:22 AM
NMON - rsync error touny AIX 0 03-11-2006 02:51 AM
rsync error irvken Linux - Software 5 04-24-2005 05:12 PM


All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration