MvL Posted April 21, 2018 Share Posted April 21, 2018 How to easily delete all these annoying "@eaDir" files on my unRAID drives. These files where created on my Synology NAS. Anyone? Quote Link to comment
MvL Posted April 21, 2018 Author Share Posted April 21, 2018 I can do something like this "find /mnt/* -name @eaDir" Quote Link to comment
John_M Posted April 21, 2018 Share Posted April 21, 2018 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. 3 1 Quote Link to comment
MvL Posted April 22, 2018 Author Share Posted April 22, 2018 Thanks John for your help. Appreciated! Quote Link to comment
kizer Posted April 22, 2018 Share Posted April 22, 2018 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. 2 Quote Link to comment
MvL Posted April 28, 2018 Author Share Posted April 28, 2018 @kizer Thanks for the suggestion! A very safe one. Very useful. Quote Link to comment
Jokerigno Posted March 7, 2020 Share Posted March 7, 2020 Thank you all for your suggestions Quote Link to comment
pltaylor Posted April 2 Share Posted April 2 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? Quote Link to comment
standin000 Posted September 16 Share Posted September 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 \; Quote Link to comment
Recommended Posts
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.