Trashbin configuration

提供:FirstWiki
ナビゲーションに移動 検索に移動

Deleted Items (trash bin)

ゴミ箱アプリが有効な場合(デフォルト)、この設定はゴミ箱内のファイルやフォルダが永久に削除されるタイミングのポリシーを設定します。

このアプリでは、ゴミ箱保持の最小時間とゴミ箱保持の最大時間の2つの設定が可能です。 最小時間は、ファイルが保存される日数で、その後削除される可能性があります。 最大時間は、削除が保証される日数です。最小時間と最大時間の両方を一緒に設定することで、ファイルとフォルダの削除を明示的に定義できます。 マイグレーションのために、この設定は、Nextcloudのデフォルト設定と同じ "auto "に初期設定されています。

config.phpでデフォルトのパターンを変更することができます。 デフォルト設定はautoで、デフォルトパターン:

'trashbin_retention_obligation' => 'auto',

使用可能な値:

auto
default setting. keeps files and folders in the trash bin for 30 days and automatically deletes anytime after that if space is needed (note: files may not be deleted if space is not needed).
デフォルト設定では、ファイルやフォルダは30日間ゴミ箱に保管され、その後スペースが必要な場合はいつでも自動的に削除されます(注意:スペースが必要でない場合、ファイルは削除されないことがあります)。
D, auto
keeps files and folders in the trash bin for D+ days, delete anytime if space needed (note: files may not be deleted if space is not needed)
ファイルやフォルダをゴミ箱にD日以上保管し、容量が必要であればいつでも削除できる(注:容量が必要ない場合は削除されないことがある
auto, D
delete all files in the trash bin that are older than D days automatically, delete other files anytime if space needed
ゴミ箱にあるD日以上前のファイルを自動的に削除する。容量が必要であれば、いつでも他のファイルを削除する。
D1, D2
keep files and folders in the trash bin for at least D1 days and delete when exceeds D2 days (note: files will not be deleted automatically if space is needed)
ファイルやフォルダを少なくともD1日間ゴミ箱に保管し、D2日を超えたら削除する(注:容量が必要な場合、ファイルは自動的に削除されません)
disabled
trash bin auto clean disabled, files and folders will be kept forever
ゴミ箱の自動クリーニングを無効にすると、ファイルやフォルダは永久に保存されます

Background job

ファイルを完全に削除するために、バックグラウンドジョブが30分ごとに実行されます。 バックグラウンドジョブを停止し、(システムの)cronをセットアップして、occ経由でバージョンを期限切れにすることが可能です

Deactivate background job: occ config:app:set --value=no files_trashbin background_job_expire_trash

Activate background job: occ config:app:delete files_trashbin background_job_expire_trash

Expire versions: occ trashbin:expire or occ trashbin:expire --quiet (without the progress bar)