Delete old files and e-mail warnings to users.
In a shared filesystem, it's often necessary to delete old files, but one must warn users sufficiently in advance. Directories are intentionally ignored to preserve ownership, groups, permissions, file access controls, etc.
Production deployment is handled by an Ansible playbook: namely, cloning this git repository, creating the virtalenv, installing the python package, installing the cron job, and configuring log rotation.
To make it easy to run from a cron job, all inputs are stored in a configuration file conf/gpfsclean.conf, including email intervals, delete time, grace time and mailing details. Any changes to conf/gpfsclean.conf, gpfsclean/templates/email.j2, etc should therefore be made in this git repository, and re-run the above ansible playbook to update.
See the full documentation on GitHub.