I got a problem with the following command that moves files older than 13 days from /unpack to /storage as it should.
find /home/user/private/data/unpack/* -mtime +13 -exec mv {} /home/user/private/data/unpack/storage/ \;
But if i keep those files in the /storage folder organized in sub-folders the above command will move all those files from its folders back into /storage
I searched around for a way to exclude /storage completely from the find command and came a gross prune as a method. I´m still rather new to linux and regex, so still had no luck getting it working myself.
Crossing fingers for a pro out there that got time to help out.
This might work for you (it’s a single line without those ending
\characters):