discourse/app/jobs/scheduled/drop_backup_schema.rb
Gerhard Schlager f216c6d60b FEATURE: Drop "backup" schema 7 days after restore
The "backup" schema is used to rollback a failed restore. It isn't useful after a longer period of time and turns into a waste of disk space.
2020-01-16 17:48:47 +01:00

12 lines
199 B
Ruby

# frozen_string_literal: true
module Jobs
class DropBackupSchema < ::Jobs::Scheduled
every 1.day
def execute(_)
BackupRestore::DatabaseRestorer.drop_backup_schema
end
end
end