Skip to content

Commit

Permalink
Merge pull request #7936 from zDEFz/patch-2
Browse files Browse the repository at this point in the history
make SERIAL backup method compatible to borg2
  • Loading branch information
ThomasWaldmann committed Nov 13, 2023
2 parents 6bbd327 + c4decb4 commit 7c20bb5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/deployment/image-backup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -26,19 +26,19 @@ 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:
# /dev/nvme1n1p1
# /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
Expand Down

0 comments on commit 7c20bb5

Please sign in to comment.