Temporary file systems can be cleaned automatically at scheduled intervals.


Introduction

There are two ways to clean the temporary file systems from possible leftovers: automatically at scheduled times with an Autoexecute Server Module (admin.cleanup.cleanup-temp-filesystem) and manually as a Server Action (admin.cleanup.cleanup-temp-filesystem-action) from the cogwheel menu of the censhare clients. The automatic option is activated by default and set to perform each day at 05:30 am.

The Modules "Cleanup Temporary Filesystem" and "Cleanup Temporary Filesystem (automatic)" clean only the filesystem of type "temporary" (usually that's the asset-temp directory), no other temp file systems. Only the root level of this filesystem is cleaned, and subfolders are ignored.

Set up automatic cleanup

  1. Launch the censhare Admin-Client.

  2. Open "Configuration/Modules/Administration/Cleanup" folder.

  3. Double click "Cleanup Temporary Filesystem (automatic)".

  4. Mark the "Enabled" checkbox.

  5. Enter into "Cron pattern" field the pattern for the desired schedule.

  6. Click the "OK" button to save the changes.

  7. Click "Update Server Configuration" button on the top of the Admin Client.

Enable manual cleanup

  1. Launch the censhare Admin-Client.
  2. Open "Configuration/Modules/Administration/Cleanup" folder.
  3. Double click "Cleanup Temporary Filesystem".
  4. Mark the "Enabled" checkbox.
  5. Restrict the server action to a server, to roles, permission keys and client types as desired, following the standard procedures for Server Action Modules. 
  6. Click the "OK" button to save the changes.
  7. Click "Update Server Configuration" button on the top of the Admin Client.

Perform manual cleanup

  1. Launch the censhare Admin-Client.
  2. Click "Server actions" button.
  3. Choose the "Cleanup Temporary Filesystem" menu item.