Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
#source: https://community.home-assistant.io/t/backup-snapshots-no-longer-decryptable/104048/12
import sys
import getopt
import hashlib
import tarfile
import glob
import os
@phdelodder
phdelodder / reset_ikea_light_bulbs_using_shelly.yaml
Created October 31, 2022 14:25
Home assistant script to reset Ikea bulbs using a shelly device
alias: Reset Ikea Light Bulbs using Shelly
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- delay:
hours: 0
minutes: 0
seconds: 1
@phdelodder
phdelodder / docker-volume-transfer.md
Created October 8, 2024 07:02 — forked from etoosamoe/docker-volume-transfer.md
How to transfer Docker Volumes to another host

Goal

You have docker volume on one host and want to move that volume to another host. For example, you want to transfer PostgreSQL container with it's volume to another host.

Solution

Actually, there is no in-a-box solution from Docker, so we need to:

  • attach our volume to another container
  • copy and archive all files
  • copy archive to another host