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
#!/bin/bash | |
set -ex | |
# usage: CONTAINER_NAME=xxx ./collect_env.sh | |
CONTAINER_NAME=${CONTAINER_NAME:-xxxx} | |
cat << 'EOF' > ./collect_env.py | |
# mypy: allow-untyped-defs |
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
{ | |
"[python]": { | |
"editor.formatOnType": true | |
}, | |
"python.defaultInterpreterPath": "C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python310\\python.exe", | |
"editor.unicodeHighlight.nonBasicASCII": false, | |
"workbench.editor.enablePreview": false, | |
"tabnine.experimentalAutoImports": true, | |
"[html]": { |
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
time="2021-08-19T16:14:15+08:00" level=info msg="Backed up 16 items out of an estimated total of 17 (estimate will change throughout the backup)" backup=velero/b1 logSource="pkg/backup/backup.go:394" name=sdfsfsdfd namespace=restic progress= resource=deployments.apps | |
time="2021-08-19T16:14:15+08:00" level=info msg="Processing item" backup=velero/b1 logSource="pkg/backup/backup.go:354" name=sync-timezone namespace=restic progress= resource=podpresets.settings.k8s.io | |
time="2021-08-19T16:14:15+08:00" level=info msg="Backing up item" backup=velero/b1 logSource="pkg/backup/item_backupper.go:121" name=sync-timezone namespace=restic resource=podpresets.settings.k8s.io | |
time="2021-08-19T16:14:15+08:00" level=info msg="Backed up 17 items out of an estimated total of 17 (estimate will change throughout the backup)" backup=velero/b1 logSource="pkg/backup/backup.go:394" name=sync-timezone namespace=restic progress= resource=podpresets.settings.k8s.io | |
time="2021-08-19T16:14:16+08:00" level=info msg="Backed up a total of 17 |
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
#!/bin/bash | |
readonly DB_FILE="$(pwd)/images.db" | |
readonly IMG_DIR="$(pwd)/images" | |
save-images() { | |
echo "Create ${DB_FILE}" | |
echo "$(docker images|grep -v 'IMAGE ID'|awk '{printf("%s %s %s\n", $1, $2, $3)}'|column -t)" > "${DB_FILE}" | |
echo "Read ${DB_FILE}" |