Removal of obsolete media files? #1806
Replies: 2 comments 1 reply
-
We have lots of customers who delete things that they didn't really mean to, and since we use S3 compatible storage which is cheap, we never actually delete anything from the dbfs table and we don't remove the real media files. This means in combination with the deletion table, we can restore anything that has been deleted in the last 6 months. If you do want to remove your deleted media forever, you can run the cron.py script with the target "maint_db_delete_orphaned_media" This will delete the DBFS files and database entries that have been removed from the media table to bring them back in sync. |
Beta Was this translation helpful? Give feedback.
-
I'll remove this in master now, there's no need for the config file to be output to stderr like this, it's unnecessary debug code and if it should have gone anywhere it should have been to the syslog. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How are purged obsolete files? Isn't
/etc/cron.daily/sheltermanager3
supposed to clean up old files?We have 4 photos actually used:
But the file folder contains much more files, because I made a few tests and then removed media from the web UI:
By the way, files referenced in DB column
MediaName
(for example31.jpg
or34.jpg
) are not the name in the filesystem (there34.jpg
is one of my test which were removed from the web UI since). The actual files are4[0-3].jpg
(as can be confirmed by the file sizes), which is the name shown in the columDBFSID
.Beta Was this translation helpful? Give feedback.
All reactions