Archive FTP files / folders that are too old
The idea is simple, this script will find all your files and apply rules to know if a file should be selected.
For example, all files that are older than 2020-01-01 which are bigger than 0.01 MB would be selected by default.
From that point there's two behaviors:
- The first one is to put all those files in a yearly folder (files from 2019 will be grouped in one folder).
- The second one would be to delete all those selected files.
- Rename
config.yaml.dist
toconfig.yaml
- Edit and add as many FTP you want.
- Define your archiving rules within the archivatix.py
- Run the script within the venv:
python archivatix.py
- 0.1.0
- The first proper release
David Bonachera – @CarreTriangle
Distributed under the MIT license. See LICENSE
for more information.
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request