rsync doesn't delete deleted files
Bug #233849 reported by
David Prieto
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rsync (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: rsync
I'm trying to use rsync in Hardy to backup my /home, and I get this error:
rsync -av --delete /home/david/ /media/disk/Backup
building file list ... rsync: readlink "/home/david/.gvfs" failed: Transport endpoint is not connected (107)
done
IO error encountered -- skipping file deletion
Seemingly as a result, new files get copied to the destination but deleted files do NOT get erased from the destination.
I also tried rsync -av --delete --exclude=
Changed in rsync (Ubuntu): | |
status: | New → Invalid |
To post a comment you must log in.
It is a problem.
The workaround is to have an exclude file with the line:
- .gvfs
Funnily,
- .gvfs/
did not work. Maybe it is not really a dir?
The solution above would also work with amended grammar. I think the format for an exclude should be:
--exclude="- .gvfs"
or for just one home dir:
--exclude="- /home/david/.gvfs"
though I did not test it.
An exclude file is usually better so you don't send across the Trash as well.