Skip to main content

Delete files based on predefined dates

Project description

file-retention

CLI para retenção de arquivos com base em qualquer data

Como instalar:

python3 -m pip install --upgrade pip
python3 -m pip install file_retention

Como utilizar:

Primeiro é necessário executar com o comando install para criar os diretórios e arquivos de configuração necessários

python3 -m file_retention install

Tirar um snapshot dos arquivos recursivamente:

python3 -m file_retention snapshot /tmp/create_files/ -e ini

Deletar os arquivos:

python3 -m file_retention delete -r 15 -y

Enviar e-mail:

python3 -m file_retention mail ~/.file_retention/mail.yml -r 15

Para mais informaões:

python3 -m file_retention --help
python3 -m file_retention snapshot --help
python3 -m file_retention mail --help
python3 -m file_retention delete --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file_retention-0.3.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

file_retention-0.3.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file file_retention-0.3.0.tar.gz.

File metadata

  • Download URL: file_retention-0.3.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.9 Linux/5.14.18-100.fc33.x86_64

File hashes

Hashes for file_retention-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8e366b7946b03d242bb39cafb62a820074cd7a0ad661086495cc7b14bbf4c8b0
MD5 69b5a338d158cdf36b86374f8b28ca73
BLAKE2b-256 56c395bc5cb6495bfe6c5caebf5394cf5c8e130f8c34ba32b3898cdedba852b2

See more details on using hashes here.

File details

Details for the file file_retention-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: file_retention-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.9 Linux/5.14.18-100.fc33.x86_64

File hashes

Hashes for file_retention-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d17b7b8ce38a98b8b2edbb1748473eb185eda402b8924aacd7556f7ee4edc72a
MD5 f250c2629f1b30dd1eff709bfe26be6e
BLAKE2b-256 3c6f960c02189db844d89f2f408ea79d416b91f5187be2868d17761e0d4f404a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page