Re: Need help with rsync

2020-11-13 Thread ToddAndMargo via users
On 2020-11-13 00:37, Cameron Simpson wrote: On 12Nov2020 20:38, ToddAndMargo wrote: But the question still arises, why did the command stop pruning after it found the bad link? It still updated. Rsync does that. I think it's just caution. The delete phase is sort of separate (runs last by de

Re: Need help with rsync

2020-11-12 Thread Samuel Sieb
On 11/12/20 8:36 PM, ToddAndMargo via users wrote: 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. It's being safe. If something went wrong in the copying, it can't be sure that it will delete the right f

Re: Need help with rsync

2020-11-12 Thread ToddAndMargo via users
On 2020-11-12 20:29, Cameron Simpson wrote: I like -a for this. --archive, -a archive mode; equals -rlptgoD (no -H,-A,-X) --recursive, -r --links, -l --perms, -p --times, -t --group, -g --owner, -o --devices --specials, -D -- ~~ Computers are like air con

Re: Need help with rsync

2020-11-12 Thread ToddAndMargo via users
For some reason, my follow up is getting bounced. If you want to see it, respond to this and I will eMail it to you directly. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedo

Re: Need help with rsync

2020-11-12 Thread ToddAndMargo via users
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

Re: Need help with rsync

2020-11-12 Thread Cameron Simpson
On 12Nov2020 18:55, ToddAndMargo wrote: >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 I like -a for this. >>>2) remove all files on the destination that do not >>>

Re: Need help with rsync

2020-11-12 Thread ToddAndMargo via users
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

Re: Need help with rsync

2020-11-12 Thread Samuel Sieb
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

Need help with rsync

2020-11-12 Thread ToddAndMargo via users
Hi All, 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. This is bash code: Synchronize () { # $1 rsync command l