Skip to main content
8 events
when toggle format what by license comment
May 30, 2022 at 13:27 comment added xeruf find -type d -delete only deletes empty directories (you can add -empty to avoid error messages, but don't have to)
Apr 15, 2017 at 20:19 comment added teekkari Furthermore the man pages says u should use -execdir instead of -exec ...
Apr 15, 2017 at 19:59 comment added teekkari When rsync is interrupted, the find never starts or not? So the -delete in a second rsync shouldn't be a problem. But -delete also remove files, instead rmdir never delete files, only directories. Both (-delete and rmdir) check the directories if they are empty before deleting.
Apr 13, 2017 at 12:37 history edited CommunityBot
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Feb 8, 2017 at 15:50 comment added mit @flying_sheep see user7000's comment in sim's answer: when rsync ist interrupted you could loose files
Jan 10, 2017 at 9:24 comment added flying sheep why not just -delete instead of -exec rmdir {} \;?
Jan 12, 2015 at 1:14 history edited mit CC BY-SA 3.0
deleted 9 characters in body
Jan 11, 2015 at 13:14 history answered mit CC BY-SA 3.0