Take a snapshot of the zpool you wish to backup
zfs snapshot tank@backup-jan-2020| #! /usr/bin/env bash | |
| # Create the container with a long running process. If PID1 exists before | |
| # we send the exec commands, they will fail because the container is not running | |
| # | |
| CONTAINER_NAME="TEST-`uuidgen`" | |
| curl --silent --unix-socket /var/run/docker.sock "http:/containers/create?name=${CONTAINER_NAME}" -XPOST \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "Image": "ruby:latest", |
| #! /usr/bin/env bash | |
| JENKINS_URL="localhost:8080" | |
| JOB_NAME="YourJobName | |
| USER_NAME="api" | |
| USER_TOKEN="f6706YOURUSERTOKENd2c51" | |
| QUEUE_URL=$(curl --silent "http://${JENKINS_URL}/job/${JOB_NAME}/build" \ | |
| --user "${USER_NAME}:${USER_TOKEN}" \ | |
| --data "token=${JOB_TOKEN}" -XPOST \ |
| #!/bin/bash | |
| set -e | |
| set -o pipefail | |
| # Add user to k8s using service account, no RBAC (must create RBAC after this script) | |
| if [[ -z "$1" ]] || [[ -z "$2" ]]; then | |
| echo "usage: $0 <service_account_name> <namespace>" | |
| exit 1 | |
| fi |
| import gimpfu | |
| import os | |
| import re | |
| import traceback | |
| heic_ext_re = re.compile(r'\.heic$', re.IGNORECASE) | |
| def convert(filename): | |
| new_name = heic_ext_re.sub('.jpg', filename) | |