Skip to content

Instantly share code, notes, and snippets.

View PavelNiedoba's full-sized avatar

Pavel Niedoba PavelNiedoba

View GitHub Profile
@PavelNiedoba
PavelNiedoba / gist:80661caa3d6715b624787c7ab60e6692
Created July 30, 2019 12:26
output from docker inspect test
see https://stackoverflow.com/posts/57269465
docker inspect test
[
{
"Id": "f5d3c274e31cde28e7b61123bef348ed2ca66cc904dbe08265ee337099ac4ee0",
"Created": "2019-07-30T12:22:53.028182998Z",
"Path": "bash",
"Args": [],
"State": {
"Status": "running",
#!/usr/bin/python3
"""
Script for periodical cleaning of log or backup folders.
This script will check for disk space in folderToObserve
and make sure that there's at least minDiskSpaceGB free space
oldest files will be removed first regardless of their folder
empty folders are removed, links are not followed
the params can be provided in command line like:
0x6Dd4E2AD0dE2A23c662C0C910Ab72A19B20c6beD