files_retention icon indicating copy to clipboard operation
files_retention copied to clipboard

Move action to different location (instead of deleting)

Open ctenuun opened this issue 7 years ago • 10 comments

Just being able to delete after set %time seems to be lacking in usage, Can you please add an option to change the behavior? For example, when %time is due, all matching files to be moved to external storage or trash bin or any path within the NC platform.

rule applied path - /path/to/files selectors - year, month, day, hour move to - /path (trash/deleted files) (attached external storage/path) (local /data/$user/../..)

Cheers,

Tenuun

ctenuun avatar Apr 23 '18 11:04 ctenuun

Anyone?

This file retention app has already done 60% of the work, now please add a feature to move items on to external storage with original path and it can be backported as a core archiving feature. Just like Amazon S3 lifetime manager on NEXTCLOUD. Dirt cheap encrypted archiving solution.

ctenuun avatar May 15 '18 02:05 ctenuun

I second that feature request. This is exactly what I need.

A folder I created named "Archive" and within it, all the files that are older than $time get moved into it.

example: path/to/file/so-old.odt → Archive/path/to/file/so-old.odt path/to/very/old/folder → Archive/path/to/very/old/folder/

path/to/file/just-created.odt stays in path/to/file/just-created.odt

Where I can see it getting troublesome might be having this as a per folder, or per group thing maybe? I have different group folders for different parts of the company.

Section1/many/folders would then get a Section1/Archive/ to put everything into only from Section1 while Section2/folders would get a Section2/Archive/ where nothing from Section1 gets into and vice versa.

daspuppy avatar Sep 16 '18 16:09 daspuppy

I would also love to have this.

Actually it's a trigger on a file based on a timeout. The action to do could be generalized (deleted, moved to other location, reset ownership, reset share status, ...)

dvergeylen avatar Dec 21 '18 10:12 dvergeylen

I hope we have this soon ❤️

FALErwi avatar Jul 14 '22 10:07 FALErwi

This feature would be perfect. Rarely used data could be moved to a cheaper storage...

elronzo avatar Oct 15 '22 21:10 elronzo

I would also be interested if this could work with federated systems as well, to allow for a more flexible workflow. However, just having the basic functionality in place would be awesome too.

smacz42 avatar Dec 19 '22 05:12 smacz42

Any updates on this functionality, would be amazing to have!

@nickvergessen

ItsMeRitch avatar Aug 28 '23 19:08 ItsMeRitch

Not planed at the moment from my side. But if anyone wants to implement it, I'm happy to review and help getting the changes in.

nickvergessen avatar Aug 28 '23 19:08 nickvergessen

Not planed at the moment from my side. But if anyone wants to implement it, I'm happy to review and help getting the changes in.

I might have some time to look into it. Is there a way to find Nextcloud folders which haven't been touched for a while (atime of files within the folder) in order to autotag them in NC?

elronzo avatar Dec 10 '23 15:12 elronzo

See the file in lib/BackgroundJob/

nickvergessen avatar Dec 10 '23 16:12 nickvergessen