Re: Need help with rsync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2020-11-12 18:07, Samuel Sieb wrote:
On 11/12/20 5:45 PM, ToddAndMargo via users wrote:
I am trying to use rsync to

1) copy new files on the source to the destination

2) remove all files on the destination that do not
    reside on the source

Problem: the extra files on the destination are
not being removed.

Options="--recursive --verbose --delete --delete-excluded --modify-window=5 --times --inplace --copy-links "

ExcludeLinux="--exclude='wine-*'"

Synchronize "${Options} ${ExcludeLinux} ${MyCDsSource}/Linux ${MyCDsTarget}/."

That should work.
Is there any output indicating why it's not working?
What is an example file?



Source:
$ pwd
/home/CDs/Linux/Perl/6

$ ls
Perl6.WebSite.txt
rakudo-pkg-Fedora29-2019.03.1-01.x86_64.rpm
rakudo-pkg-Fedora30-2019.07.1-03.x86_64.rpm
RakudoPkgFedora31-2020.02.1.05.x86_64.rpm
RakudoPkgFedora32-2020.10.02.x86_64.rpm
RakudoPkgFedora33-2020.10.02.x86_64.rpm


Destination:
$ pwd
/mnt/MyCDs/Linux/Perl/6

$ ls
Perl6.WebSite.txt
rakudo-pkg-Fedora29-2018.11-01.x86_64.rpm
rakudo-pkg-Fedora29-2019.03.1-01.x86_64.rpm
rakudo-pkg-Fedora30-2019.03.1-03.x86_64.rpm
rakudo-pkg-Fedora30-2019.07.1-03.x86_64.rpm
rakudo-pkg-Fedora31-2019.07.1-03.x86_64.rpm
rakudo-pkg-Fedora31-2019.11-01.x86_64.rpm
rakudo-pkg-Fedora31-2020.01-01.x86_64.rpm
RakudoPkgFedora31-2020.02.1.04.x86_64.rpm
RakudoPkgFedora31-2020.02.1.05.x86_64.rpm
RakudoPkgFedora32-2020.02.1.05.x86_64.rpm
RakudoPkgFedora32-2020.02.1.07.x86_64.rpm
RakudoPkgFedora32-2020.05.1.x86_64.rpm
RakudoPkgFedora32-2020.05.x86_64.rpm
RakudoPkgFedora32-2020.06.x86_64.rpm
RakudoPkgFedora32-2020.07.02.x86_64.rpm
RakudoPkgFedora32-2020.07.x86_64.rpm
RakudoPkgFedora32-2020.08.2.x86_64.rpm
RakudoPkgFedora32-2020.09.x86_64.rpm
RakudoPkgFedora32-2020.10.02.x86_64.rpm
RakudoPkgFedora33-2020.10.02.x86_64.rpm


This is exiting after the call to Linux:

# UpdateMyCDs
Resetting permissions
Resetting ownerships

rsync --recursive --verbose --delete --delete-excluded --modify-window=5 --times --inplace --copy-links --exclude='wine-*' /home/CDs/Linux /mnt/MyCDs/.
sending incremental file list
symlink has no referent: "/home/CDs/Linux/KVM/virtio-win/RPM/virtio-win_servers_x86.vfd"
IO error encountered -- skipping file deletion

sent 31,338 bytes  received 210 bytes  63,096.00 bytes/sec
total size is 3,207,298,531  speedup is 101,664.08
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=3.2.3]
-----------------------------


Does "IO error encountered -- skipping file deletion" just
skip the file or does it terminate the command completely?

The destination is being updated, just not pruned.


Here is somethign interesting:

ls -al /home/CDs/Linux/KVM/virtio-win/RPM/virtio-win_servers_x86.vfd
lrwxrwxrwx. 1 todd users 35 Nov 15 2019 /home/CDs/Linux/KVM/virtio-win/RPM/virtio-win_servers_x86.vfd -> virtio-win-0.1.171_servers__x86.vfd

"ls" does not sow the double dash showing in the link.

Trying it with the link corrected:
ls -al /home/CDs/Linux/KVM/virtio-win/RPM/virtio-win_servers_x86.vfd

lrwxrwxrwx. 1 todd users 35 Nov 15 2019 /home/CDs/Linux/KVM/virtio-win/RPM/virtio-win_servers_x86.vfd -> virtio-win-0.1.171_servers__x86.vfd

Oh and look-e-here:

# UpdateMyCDs
Resetting permissions
Resetting ownerships

rsync --recursive --verbose --delete --delete-excluded --modify-window=5 --times --inplace --copy-links --exclude='wine-*' /home/CDs/Linux /mnt/MyCDs/.
sending incremental file list
Linux/KVM/virtio-win/RPM/
Linux/KVM/virtio-win/RPM/virtio-win_servers_x86.vfd
deleting Linux/PDFStudio.Master-Pdf-Editor/master-pdf-editor-5.4.38-qt5-all.amd64.tar.gz
deleting Linux/PDFStudio.Master-Pdf-Editor/MasterPDFEditor-5.6.42-x86_64.rpm
deleting Linux/PDFStudio.Master-Pdf-Editor/MasterPDFEditor-5.6.29-x86_64.rpm
deleting Linux/PDFStudio.Master-Pdf-Editor/MasterPDFEditor-5.6.20-x86_64.rpm
deleting Linux/PDFStudio.Master-Pdf-Editor/MasterPDFEditor-5.6.09-qt5-all.x86_64.rpm deleting Linux/PDFStudio.Master-Pdf-Editor/MasterPDFEditor-5.4.38-qt5.x86_64.rpm
deleting Linux/Perl/6/rakudo-pkg-Fedora31-2020.01-01.x86_64.rpm
deleting Linux/Perl/6/rakudo-pkg-Fedora31-2019.11-01.x86_64.rpm
deleting Linux/Perl/6/rakudo-pkg-Fedora31-2019.07.1-03.x86_64.rpm
deleting Linux/Perl/6/rakudo-pkg-Fedora30-2019.03.1-03.x86_64.rpm
deleting Linux/Perl/6/rakudo-pkg-Fedora29-2018.11-01.x86_64.rpm
deleting Linux/Perl/6/RakudoPkgFedora32-2020.09.x86_64.rpm
deleting Linux/Perl/6/RakudoPkgFedora32-2020.08.2.x86_64.rpm
deleting Linux/Perl/6/RakudoPkgFedora32-2020.07.x86_64.rpm
deleting Linux/Perl/6/RakudoPkgFedora32-2020.07.02.x86_64.rpm
deleting Linux/Perl/6/RakudoPkgFedora32-2020.06.x86_64.rpm
deleting Linux/Perl/6/RakudoPkgFedora32-2020.05.x86_64.rpm
deleting Linux/Perl/6/RakudoPkgFedora32-2020.05.1.x86_64.rpm
deleting Linux/Perl/6/RakudoPkgFedora32-2020.02.1.07.x86_64.rpm
deleting Linux/Perl/6/RakudoPkgFedora32-2020.02.1.05.x86_64.rpm
deleting Linux/Perl/6/RakudoPkgFedora31-2020.02.1.04.x86_64.rpm

sent 2,981,248 bytes  received 1,479 bytes  1,988,484.67 bytes/sec


So it was the bad link.

But the question still arises, why did the command stop
pruning after it found the bad link?  It still updated.



-T

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux