Timeline for Ubuntu 16.04 rsync - doing backups of the NAS server, can I tell it to exclude all the .Trash directories?
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 22, 2017 at 0:18 | vote | accept | SDsolar | ||
Aug 20, 2017 at 22:49 | answer | added | SDsolar | timeline score: 0 | |
Aug 20, 2017 at 4:20 | comment | added | SDsolar | Yes, /purge is implied with /mir in robocopy. That is what I want to accomplish. But any --delete switch is not applied to anything in --exclude | |
Aug 20, 2017 at 3:25 | history | edited | SDsolar | CC BY-SA 3.0 |
added 43 characters in body
|
Aug 20, 2017 at 1:50 | history | edited | SDsolar | CC BY-SA 3.0 |
added 122 characters in body
|
Aug 20, 2017 at 1:43 | comment | added | Vomit IT - Chunky Mess Style |
Well how about the --delete-before and/or --delete-after options as mentioned on the Rsync - Man. I think the Robocopy function you are referring to is the /PURGE option and I think one of those two or maybe both will do what you need—simple enough to test.
|
|
Aug 20, 2017 at 1:33 | answer | added | SDsolar | timeline score: 0 | |
Aug 20, 2017 at 1:22 | history | edited | SDsolar | CC BY-SA 3.0 |
added 19 characters in body
|
Aug 19, 2017 at 23:09 | comment | added | SDsolar | @Arkadiusz, YES. I would welcome a command that would seek and destroy all of them on the original. I'll alter the question to include that in case you are willing to post it as an answer. It would really help a lot with the immediate problem, even if it doesn't fix rsync. TNX | |
Aug 19, 2017 at 23:05 | history | edited | SDsolar | CC BY-SA 3.0 |
added 95 characters in body
|
Aug 19, 2017 at 22:58 | history | edited | SDsolar | CC BY-SA 3.0 |
added 95 characters in body
|
Aug 19, 2017 at 11:23 | comment | added | Arkadiusz Drabczyk |
So you want to remove all *.Trash* directories that were already copied?
|
|
Aug 19, 2017 at 11:01 | history | asked | SDsolar | CC BY-SA 3.0 |