Jump to content

How to easily delete "@eaDir" files

Featured Replies

Posted

How to easily delete all these annoying "@eaDir" files on my unRAID drives. These files where created on my Synology NAS. Anyone?

  • Author

I can do something like this "find /mnt/* -name @eaDir"

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.

  • Author

Thanks John for your help. Appreciated! 

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.

  • Author

@kizer Thanks for the suggestion! A very safe one. Very useful.

  • 1 year later...

Thank you all for your suggestions :)

  • 4 years later...

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?

  • 5 months later...
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.

Guest
Reply to this topic...