Replies: 1 comment
-
Thanks for sharing! While this approach works well with the local filesystem, it may be challenging to apply it to cloud storage backends. SFTPGo includes built-in support for data retention rules, and starting with version 2.7.20250726 of our Enterprise edition (not open-source), we’ve added the ability to archive files to a virtual folder instead of simply deleting them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
Just wanted to share a simple cleanup script I made, it moves user data 7 days after file modification time to the backup dir.
And 7 days after that it removes the backup of that data.
My script is locked ALL the way down using systemd security features, so if your data location is different, make sure you update the paths in both the script and the service.
https://gist.github.com/Gunni/04d0d63194247e466964e15df208b210
Beta Was this translation helpful? Give feedback.
All reactions