Using file management rules, you can automatically remove or archive files from the file server. You can configure automated file management rules at the server and domain level. If they are specified at the server level, the file management rules are accessible to all users of the file server. If they are specified at the domain level, they are only accessible to users belonging to that domain.
Depending on the file system, Serv-U uses the creation or change date of files to determine the expiration date. On Windows, the creation date of the file is used to determine when a file expires. On Linux, the change date is used to determine the expiration date. The change date is updated whenever the metadata or index node (inode) of the file is modified. If the contents or attributes (such as the permissions) of the file are modified, the change date is also updated.
The change date is not modified if the file is read from.
The file management rules apply recursively to all files within the folder for which they are configured, and not only to those that have been uploaded through Serv-U. This way you can manage files that are transferred by clients, or that are copied to the folder outside of Serv-U.
The folder structure is not affected by the file management rules. When expired files are deleted or moved, the folders themselves remain intact.
The file management rules run hourly in the background. For this reason, there can be an hour delay before Serv-U deletes or moves an expired file.
To monitor the status of the file management rules, you can configure a File Management Rule Success and a File Management Rule Error event under Server/Domain Details > Events. The file management rules continue to run even if deleting or moving a single file fails. For more information, see Domain events.
Serv-U regularly checks each file in the directory for its age, and performs the specified action on the files that meet the age criteria you specify.