[Bug 3215] New: --ignore-errors only ignores but does not delete

samba-bugs at samba.org samba-bugs at samba.org
Wed Oct 26 03:58:26 GMT 2005


https://bugzilla.samba.org/show_bug.cgi?id=3215

           Summary: --ignore-errors only ignores but does not delete
           Product: rsync
           Version: 2.6.6
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: mheather at visiongaming.com.au
         QAContact: rsync-qa at samba.org


if I
{
 rsync --files-from=.rsync -ruvvvv --delete --ignore-errors transfer/ 
192.168.10.190::transfer/
opening tcp connection to 192.168.10.190 port 873
opening connection using --server -vvvvurR --delete --ignore-errors . 
transfer/ 
(Client) Protocol versions: remote=27, negotiated=27
building file list ... 
[sender] make_file(fil1.txt,*,2)
[sender] make_file(fil2.txt,*,2)
rsync: link_stat "/home/mark/transfer/fil3.txt" failed: No such file or 
directory (2)
[sender] make_file(fil4.txt,*,2)
[sender] make_file(fil5.txt,*,2)
[sender] make_file(fil6.txt,*,2)
[sender] make_file(fil7.txt,*,2)
done
[sender] i=0 <NULL> fil1.txt mode=0100644 len=0 flags=0
[sender] i=1 <NULL> fil2.txt mode=0100644 len=0 flags=0
[sender] i=2 <NULL> fil4.txt mode=0100644 len=0 flags=0
[sender] i=3 <NULL> fil5.txt mode=0100644 len=0 flags=0
[sender] i=4 <NULL> fil6.txt mode=0100644 len=0 flags=0
[sender] i=5 <NULL> fil7.txt mode=0100644 len=0 flags=0
send_file_list done
file list sent
send_files starting
send_files phase=1
send files finished
total: matches=0  tag_hits=0  false_alarms=0 data=0

sent 99 bytes  received 12 bytes  222.00 bytes/sec
total size is 0  speedup is 0.00
_exit_cleanup(code=0, file=main.c, line=791): entered
rsync error: some files could not be transferred (code 23) at main.c(791)
_exit_cleanup(code=0, file=main.c, line=791): about to call exit(23)
}

where .rsync contains all of the files (but not the directories) last copied.
I do now want to include directories in the .rsync file
fil3.txt is not deleted from the 192.168.10.190

The total batch file is
#!/bin/bash

SERVER=192.168.10.190
rsync --files-from=.rsync -aruv --delete --ignore-errors --existing 
~/transfer/ $SERVER::transfer/
rsync -LrPvz --delete $SERVER::transfer/ ~/transfer/
rsync -r --list-only --log-format=%L ~/transfer/ ~/transfer/ | grep --
regexp='^-' | cut -c 44- > .rsync

Unless I am missing something the batch file should allow files deleted from 
the ~/transfer/ to be deleted from $server::transfer/

I am having problems with the first rsync command

If I remove the --ignore-errors, it mentions that an IO error has occured - 
skipping file deletion.

If this is a problem in my understanding of rsync, I am terribly sorry.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list