Powershell script that cleans files from your disk with a cutoff date & filters.
459
Powershell script that cleans files from your disk with a cutoff date & filters.
| Variable name | Required | Example value | Description |
|---|---|---|---|
| CLEAN_CRON_EXPRESSION | */2 * * * * | The CRON expression in which frequency to run the script. | |
| GRACE_PERIOD_IN_SECONDS | 3600 | Files newer than this grace period will be skipped (both for uploading & deleting). This is usefull for when files are still in use when the upload starts. | |
| INCLUDE_FILTERS | somefolder;somewildcard* | A list (; separated) which should be included. If left empty, it will auto include everything. | |
| EXCLUDE_FILTERS | somefolder;somewildcard* | A list (; separated) which should be included. If left empty, nothing will be excluded. |
docker run --name=mycleaner -e CLEAN_CRON_EXPRESSION='0 * * * *' -e GRACE_PERIOD_IN_SECONDS=3600 -e INCLUDE_FILTERS="somefolder;somewildcard*" -e EXCLUDE_FILTERS="somefolder;somewildcard*" -d robhofmann/powershellcrondiskautopurger
Content type
Image
Digest
Size
166.2 MB
Last updated
over 5 years ago
docker pull robhofmann/powershellcrondiskautopurger