From c4decb4fffa5ce42d8ec695c5ee5a7626b2a0c2a Mon Sep 17 00:00:00 2001 From: zDEFz Date: Mon, 13 Nov 2023 20:23:52 +0100 Subject: [PATCH] make SERIAL backup method compatible to borg2 --- docs/deployment/image-backup.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/deployment/image-backup.rst b/docs/deployment/image-backup.rst index 5e09fdf5f..cee40faaa 100644 --- a/docs/deployment/image-backup.rst +++ b/docs/deployment/image-backup.rst @@ -16,7 +16,7 @@ Use: # You can find the short disk serial by: # udevadm info --query=property --name=nvme1n1 | grep ID_SERIAL_SHORT | cut -d '=' -f 2 - + export BORG_REPO=/path/to/repo DISK_SERIAL="7VS0224F" DISK_ID=$(readlink -f /dev/disk/by-id/*"${DISK_SERIAL}") # Returns /dev/nvme1n1 @@ -26,10 +26,10 @@ Use: echo "Disk Identifier: $DISK_ID" # Use the following line to perform a borg backup for the full disk: - # borg create --read-special /path/to/repo::{now} "$DISK_ID" + # borg create --read-special {now} "$DISK_ID" # Use the following to perform a borg backup for all partitions of the disk - # borg create --read-special /path/to/repo::{now} "${PARTITIONS[@]}" + # borg create --read-special {now} "${PARTITIONS[@]}" # Example output: # Partitions of /dev/nvme1n1: @@ -37,8 +37,8 @@ Use: # /dev/nvme1n1p2 # /dev/nvme1n1p3 # Disk Identifier: /dev/nvme1n1 - # borg create --read-special /path/to/repo::{now} /dev/nvme1n1 - # borg create --read-special /path/to/repo::{now} /dev/nvme1n1p1 /dev/nvme1n1p2 /dev/nvme1n1p3 + # borg create --read-special {now} /dev/nvme1n1 + # borg create --read-special {now} /dev/nvme1n1p1 /dev/nvme1n1p2 /dev/nvme1n1p3