Bug 9877 - target file deleted in error
Summary: target file deleted in error
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.6
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
Depends on:
Reported: 2013-05-10 21:00 UTC by Jack Savage
Modified: 2013-05-26 23:40 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jack Savage 2013-05-10 21:00:06 UTC
After running rsync, I discovered that a file - libdeb.so - that exists in the source tree had been deleted in the target tree.  The specific command was....

rsync -aivc \
        --delete \
        --log-file=/home/oracle/logs/refresh_thrd_apps.log \
        /mnt/oradb10-bkp20/oracle/src_r12_apps_prd/ \

/mnt/oradb10-bkp20 is an NFS file system mounted ReadOnly and /d00 is a local file system.

I have verified that libdeb.so exists in the source tree and I have no evidence that it was every deleted.  (The source tree was created using rsync.)

After discovering that libdeb.so was missing, I reran the rsync command which copied libdeb.so into the correct location.

I did not notice any error messages while rsync was running.  The only unusual situation was that the /tmp file system had no free space after the original rsync execution but I cleaned up the /tmp file system before the last rsync execution.

Is it possible that running out of space on /tmp could have caused the error?  If so, my preference would be for rsync to fail and report the error.
Comment 1 Jack Savage 2013-05-10 21:01:57 UTC
I meant to include this information in the original post.

[oracle@rh5-appsrvr99 oracle > cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
[oracle@rh5-appsrvr99 oracle > rpm -qa | grep rsync
[oracle@rh5-appsrvr99 oracle > uname -a
Linux rh5-appsrvr99.mid.org 2.6.18-308.16.1.el5 #1 SMP Tue Sep 18 07:21:07 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

Comment 2 Wayne Davison 2013-05-26 23:40:30 UTC
Sadly, there's not enough info here for me try to diagnose what happened to you, since what you describe is not how rsync works.