Posted April 21, 20187 yr How to easily delete all these annoying "@eaDir" files on my unRAID drives. These files where created on my Synology NAS. Anyone?
April 21, 20187 yr I'd run find /mnt/user -name @eaDir -exec rm '{}' \; but because it's potentially dangerous I'd run find /mnt/user -name @eaDir -exec ls '{}' \; first to find and list them.
April 22, 20187 yr Or your could simply move them from where ever they are to a folder. I do that to my cache drive so I can browse and delete. find /mnt/disk1 -name "@eaDir" -exec mv {} /mnt/cache/destination \; Yes I do that to each disk at a time often just to have more control.
April 2, 20241 yr I know this is a really old topic but I'm trying to go through this process now and using a variation of the mv cmd process that @kizer suggested.... i.e. something like this find /mnt/user/Photos/2011/ -name "@eaDir" -exec mv {} /mnt/user/Photos/EAPhotos \; the problem is I have a LOT of @eaDir folders and the mv command fails because more than one folder named /@eaDir is trying to get moved to /mnt/user/Photos/EAPhotos. Does someone with better scripting knowledge than I do have a suggestion for how to make the end directory a little more dynamic so I don't have the folder conflicts and I can do this in one command instead of run, delete, run?
September 16, 2024Sep 16 On 4/3/2024 at 12:35 AM, pltaylor said: I know this is a really old topic but I'm trying to go through this process now and using a variation of the mv cmd process that @kizer suggested.... i.e. something like this find /mnt/user/Photos/2011/ -name "@eaDir" -exec mv {} /mnt/user/Photos/EAPhotos \; the problem is I have a LOT of @eaDir folders and the mv command fails because more than one folder named /@eaDir is trying to get moved to /mnt/user/Photos/EAPhotos. Does someone with better scripting knowledge than I do have a suggestion for how to make the end directory a little more dynamic so I don't have the folder conflicts and I can do this in one command instead of run, delete, run? use this command find /mnt/user/Photos/2011/ -name "@eaDir" -exec mv --backup=numbered {} /mnt/user/Photos/EAPhotos \;
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.