Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-06-2009, 10:11 PM
|
#1
|
Member
Registered: May 2006
Location: China
Distribution: Debian
Posts: 198
Rep:
|
Based on what condition, will rsync delete files?
Hi, List,
I got a critical error here on rsync. It removes some of my files without my permisstion.
I'm running RHEL-AS4U6 with the default installed rsync.
I use rsync to copy about 10TB files from one server to another.
Quote:
[datum@matrix33 data]$ cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
[datum@matrix33 data]$ rsync --version
rsync version 2.6.3 protocol version 28
Copyright (C) 1996-2004 by Andrew Tridgell and others
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
inplace, IPv6, 64-bit system inums, 64-bit internal inums
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
|
The rsync server config files are:
Quote:
$ cat /etc/rsyncd.conf
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
[data]
path = /data
comment = dir for backup
uid = datum
gid = datum
use chroot = yes
syslog facility = local5
list = yes
read only = yes
ignore errors
hosts allow = 192.168.0.0/16
|
Here as the logfile says:
Quote:
file has vanished: "26/244/216/4576E91E68912F" (in data)
file has vanished: "29/243/154/4576E91D541D2F" (in data)
file has vanished: "25/247/148/4576E923EA5A2F" (in data)
file has vanished: "11/243/145/4576E91D28392F" (in data)
file has vanished: "29/246/032/4576E9222D3B2F" (in data)
file has vanished: "30/243/130/4576E91CDAEC2F" (in data)
file has vanished: "31/243/145/4576E91DC9512F" (in data)
file has vanished: "24/247/234/4576E924B7842F" (in data)
file has vanished: "14/244/103/4576E91EC0452F" (in data)
file has vanished: "31/246/104/4576E9220B872F" (in data)
file has vanished: "08/243/081/4576E91D2BE72F" (in data)
file has vanished: "31/248/145/4576E92542062F" (in data)
file has vanished: "08/247/196/4576E923B2362F" (in data)
rsync: opendir "/01/029/138/4576E848CD262F" (in data) failed: Permission denied (13)
rsync: readlink "/01/030/023/4576E84A187D2F" (in data) failed: Input/output error (5)
rsync: readlink "/01/030/023/4576E84A2EB02F" (in data) failed: Input/output error (5)
rsync: readlink "/01/030/023/4576E84AAE872F" (in data) failed: Input/output error (5)
|
These files are deleted from both sides, I cannot read them any more from both the source side and destination side.
It's unacceptable!
After google around, I cannot find anything helpful, is there anyone able to give me a hand please?
Thanks for any input,
all the best,
joe
|
|
|
04-07-2009, 03:05 PM
|
#2
|
Senior Member
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,410
Rep: 
|
Are you sure these weren't temp files that were there when you started rsync, but had been removed when rsync reached the point where it should have copied them? This can happen when you have processes running while you do your rsync backup. You would have seen a message something like "file xxx disappeared before it could be copied". I'd have to google for the exact message.
|
|
|
04-07-2009, 03:16 PM
|
#3
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
What flags are you passing to rsync?
|
|
|
04-08-2009, 02:05 AM
|
#4
|
Member
Registered: May 2006
Location: China
Distribution: Debian
Posts: 198
Original Poster
Rep:
|
Quote:
Originally Posted by AlucardZero
What flags are you passing to rsync?
|
Hi, AZ, I'm using:
/usr/bin/rsync -az --delete user@192.168.192.168::data ./ &
At the server side, "read only" has been set.
|
|
|
04-08-2009, 02:10 AM
|
#5
|
Member
Registered: May 2006
Location: China
Distribution: Debian
Posts: 198
Original Poster
Rep:
|
Quote:
Originally Posted by Quakeboy02
Are you sure these weren't temp files that were there when you started rsync, but had been removed when rsync reached the point where it should have copied them? This can happen when you have processes running while you do your rsync backup. You would have seen a message something like "file xxx disappeared before it could be copied". I'd have to google for the exact message.
|
yes, I have other instances running at the same time which may delete these files.
|
|
|
04-08-2009, 12:32 PM
|
#6
|
Senior Member
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,410
Rep: 
|
Quote:
Originally Posted by edenCC
yes, I have other instances running at the same time which may delete these files.
|
In that case, there may not actually be a problem. Consider the case where you make up a list of things to do, and someone else does one of the tasks before you've completed, but since they don't know about your list, they can't mark it done. It's more or less the same thing, here.
|
|
|
04-09-2009, 01:21 AM
|
#7
|
Member
Registered: May 2006
Location: China
Distribution: Debian
Posts: 198
Original Poster
Rep:
|
Thanks, I'm much clear now
All the best - joe
|
|
|
All times are GMT -5. The time now is 07:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|