From 08fab50acd7ab8b97ab5fa61586f5a647f62b52f Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 25 Jan 2023 14:39:50 -0500 Subject: [PATCH] copy-data --- misc/copy-data/README.md | 46 +++++++++++++++++++ ...ner-copy-data-home-assistant-container.sh} | 1 - ...ontainer-copy-data-home-assistant-core.sh} | 0 ...tainer-copy-data-podman-home-assistant.sh} | 1 - ...ore-copy-data-home-assistant-container.sh} | 0 ...ant-core-copy-data-home-assistant-core.sh} | 0 misc/copy-data/plex-copy-data-plex.sh | 3 +- ...ant-copy-data-home-assistant-container.sh} | 3 +- misc/copy-data/z2m-copy-data-z2m.sh | 3 +- .../zwavejs2mqtt-copy-data-zwavejsui.sh | 3 +- 10 files changed, 54 insertions(+), 6 deletions(-) create mode 100644 misc/copy-data/README.md rename misc/copy-data/{hacontainer-copy-data-hacontainer.sh => home-assistant-container-copy-data-home-assistant-container.sh} (97%) rename misc/copy-data/{hacontainer-copy-data-hacore.sh => home-assistant-container-copy-data-home-assistant-core.sh} (100%) rename misc/copy-data/{hacontainer-copy-data-podman.sh => home-assistant-container-copy-data-podman-home-assistant.sh} (97%) rename misc/copy-data/{hacore-copy-data-hacontainer.sh => home-assistant-core-copy-data-home-assistant-container.sh} (100%) rename misc/copy-data/{hacore-copy-data-hacore.sh => home-assistant-core-copy-data-home-assistant-core.sh} (100%) rename misc/copy-data/{podman-copy-data-hacontainer.sh => podman-home-assistant-copy-data-home-assistant-container.sh} (97%) diff --git a/misc/copy-data/README.md b/misc/copy-data/README.md new file mode 100644 index 00000000..519540dc --- /dev/null +++ b/misc/copy-data/README.md @@ -0,0 +1,46 @@ +

Copy data to another LXC

+
To copy data from Home Assistant Container to Home Assistant Container
+ +``` +bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/copy-data/home-assistant-container-copy-data-home-assistant-container.sh)" +``` +
To copy data from Home Assistant Container to Home Assistant Core
+ +``` +bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/copy-data/home-assistant-container-copy-data-home-assistant-core.sh)" +``` +
To copy data from Home Assistant Container to Podman Home Assistant
+ +``` +bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/copy-data/home-assistant-container-copy-data-podman-home-assistant.sh)" +``` +
To copy data from Podman Home Assistant to Home Assistant Container
+ +``` +bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/copy-data/podman-home-assistant-copy-data-home-assistant-container.sh)" +``` +
To copy data from Home Assistant Core to Home Assistant Container
+ +``` +bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/copy-data/home-assistant-core-copy-data-home-assistant-container.sh)" +``` +
To copy data from Home Assistant Core to Home Assistant Core
+ +``` +bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/copy-data/home-assistant-core-copy-data-home-assistant-core.sh)" +``` +
To copy data from Plex to Plex
+ +``` +bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/copy-data/plex-copy-data-plex.sh)" +``` +
To copy data from Zigbee2MQTT to Zigbee2MQTT
+ +``` +bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/copy-data/z2m-copy-data-z2m.sh)" +``` +
To copy data from Zwavejs2MQTT to Zwave JS UI
+ +``` +bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/copy-data/zwavejs2mqtt-copy-data-zwavejsui.sh)" +``` diff --git a/misc/copy-data/hacontainer-copy-data-hacontainer.sh b/misc/copy-data/home-assistant-container-copy-data-home-assistant-container.sh similarity index 97% rename from misc/copy-data/hacontainer-copy-data-hacontainer.sh rename to misc/copy-data/home-assistant-container-copy-data-home-assistant-container.sh index 698c1cfb..f9410471 100644 --- a/misc/copy-data/hacontainer-copy-data-hacontainer.sh +++ b/misc/copy-data/home-assistant-container-copy-data-home-assistant-container.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash # Use to copy all data from one Home Assistant LXC to another # run from the Proxmox Shell -# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/ha-copy-data.sh)" clear if ! command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Run from the Proxmox Shell"; exit; fi while true; do diff --git a/misc/copy-data/hacontainer-copy-data-hacore.sh b/misc/copy-data/home-assistant-container-copy-data-home-assistant-core.sh similarity index 100% rename from misc/copy-data/hacontainer-copy-data-hacore.sh rename to misc/copy-data/home-assistant-container-copy-data-home-assistant-core.sh diff --git a/misc/copy-data/hacontainer-copy-data-podman.sh b/misc/copy-data/home-assistant-container-copy-data-podman-home-assistant.sh similarity index 97% rename from misc/copy-data/hacontainer-copy-data-podman.sh rename to misc/copy-data/home-assistant-container-copy-data-podman-home-assistant.sh index 2b8abc13..2442a576 100644 --- a/misc/copy-data/hacontainer-copy-data-podman.sh +++ b/misc/copy-data/home-assistant-container-copy-data-podman-home-assistant.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash # Use to copy all data from a Home Assistant LXC to a Podman Home Assistant LXC. # run from the Proxmox Shell -# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/ha-copy-data-podman.sh)" clear if ! command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Run from the Proxmox Shell"; exit; fi while true; do diff --git a/misc/copy-data/hacore-copy-data-hacontainer.sh b/misc/copy-data/home-assistant-core-copy-data-home-assistant-container.sh similarity index 100% rename from misc/copy-data/hacore-copy-data-hacontainer.sh rename to misc/copy-data/home-assistant-core-copy-data-home-assistant-container.sh diff --git a/misc/copy-data/hacore-copy-data-hacore.sh b/misc/copy-data/home-assistant-core-copy-data-home-assistant-core.sh similarity index 100% rename from misc/copy-data/hacore-copy-data-hacore.sh rename to misc/copy-data/home-assistant-core-copy-data-home-assistant-core.sh diff --git a/misc/copy-data/plex-copy-data-plex.sh b/misc/copy-data/plex-copy-data-plex.sh index 60812f67..399ddcb0 100644 --- a/misc/copy-data/plex-copy-data-plex.sh +++ b/misc/copy-data/plex-copy-data-plex.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash # Use to copy all data from one Plex Media Server LXC to another # run from the Proxmox Shell -# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/pms-copy-data.sh)" +clear +if ! command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Run from the Proxmox Shell"; exit; fi while true; do read -p "Use to copy all data from one Plex Media Server LXC to another. Proceed(y/n)?" yn case $yn in diff --git a/misc/copy-data/podman-copy-data-hacontainer.sh b/misc/copy-data/podman-home-assistant-copy-data-home-assistant-container.sh similarity index 97% rename from misc/copy-data/podman-copy-data-hacontainer.sh rename to misc/copy-data/podman-home-assistant-copy-data-home-assistant-container.sh index 5b5bea9e..d9c1d9dd 100644 --- a/misc/copy-data/podman-copy-data-hacontainer.sh +++ b/misc/copy-data/podman-home-assistant-copy-data-home-assistant-container.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash # Use to copy all data from a Podman Home Assistant LXC to a Docker Home Assistant LXC. # run from the Proxmox Shell -# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/podman-copy-data-docker.sh)" +clear +if ! command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Run from the Proxmox Shell"; exit; fi while true; do read -p "Use to copy all data from a Podman Home Assistant LXC to a Docker Home Assistant LXC. Proceed(y/n)?" yn case $yn in diff --git a/misc/copy-data/z2m-copy-data-z2m.sh b/misc/copy-data/z2m-copy-data-z2m.sh index ad29d1c2..0cdd7651 100644 --- a/misc/copy-data/z2m-copy-data-z2m.sh +++ b/misc/copy-data/z2m-copy-data-z2m.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash # Use to copy all data from one Zigbee2MQTT LXC to another # run from the Proxmox Shell -# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/z2m-copy-data.sh)" +clear +if ! command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Run from the Proxmox Shell"; exit; fi while true; do read -p "Use to copy all data from one Zigbee2MQTT LXC to another. Proceed(y/n)?" yn case $yn in diff --git a/misc/copy-data/zwavejs2mqtt-copy-data-zwavejsui.sh b/misc/copy-data/zwavejs2mqtt-copy-data-zwavejsui.sh index 193a027e..c45ececc 100644 --- a/misc/copy-data/zwavejs2mqtt-copy-data-zwavejsui.sh +++ b/misc/copy-data/zwavejs2mqtt-copy-data-zwavejsui.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash # Use to copy all data from a Zwavejs2MQTT LXC to a Z-wave JS UI LXC # run from the Proxmox Shell -# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/zwave-copy-data.sh)" +clear +if ! command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Run from the Proxmox Shell"; exit; fi while true; do read -p "Use to copy all data from a Zwavejs2MQTT LXC to a Z-wave JS UI LXC. Proceed(y/n)?" yn case $yn in