This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
see https://stackoverflow.com/posts/57269465 | |
docker inspect test | |
[ | |
{ | |
"Id": "f5d3c274e31cde28e7b61123bef348ed2ca66cc904dbe08265ee337099ac4ee0", | |
"Created": "2019-07-30T12:22:53.028182998Z", | |
"Path": "bash", | |
"Args": [], | |
"State": { | |
"Status": "running", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x6Dd4E2AD0dE2A23c662C0C910Ab72A19B20c6beD |