Hello
Would there be any possibilities to enforce a rule or flux that would delete or move to another location files and folder in a Nextcloud folder, based on their creation date.
For example, I have a folder named “TEMP” and I’d like the folders and files in that folder to be deleted, moved elsewhere or at least tagged when they’re older then 180 days.
It should, but I haven’t found a way to actually do it because you cannot target a specific folder when you’re building your flow.
Then, I don’t know how to tag (or do any action) on a file or folder based on it’s creation date or age.
Any suggestion would be welcomed.
Yes, you can automate file management in Nextcloud based on file age, but it requires using additional tools:
Nextcloud Flow (Nextcloud 23+): Automate workflows, such as moving, deleting, or tagging files based on triggers and conditions. You can set conditions like file age (180 days) and then define actions (delete, move, or tag).
File Access Control App: Allows for some rules, but it’s limited and doesn’t directly support actions based on file age.
Custom Scripting with Cron Jobs: You can write a script to move or delete files older than 180 days using cron jobs, offering the most flexibility but requiring server access and coding knowledge.
For more complex tasks, custom scripts or third-party tools like Zapier may be needed.
Thank you for your answer.
Probably doable with flows and file retention, however, I’ve been trying to automaticly tag files and folder in a specific folder using the filename matches condition but the filter doesn’t seem to like regex so much.
Any ideas what to put in the filter to make it match any files or folder created in a particular folder ?