Disk backup: Difference between revisions
Jump to navigation
Jump to search
(Created page with " Dump the entire disk and compress iwth highest possible compression rate (-z9e) and highest possible thread number (T0). # dd if=/dev/nvme0n1 status=progress | xz -z9eT0 > /mnt/target/20250321_nvme0n1.xz xz: Reduced the number of threads from 8 to 3 to not exceed the memory usage limit of 3831 MiB 3733861376 bytes (3.7 GB, 3.5 GiB) copied, 524 s, 7.1 MB/s") |
mNo edit summary |
||
Line 1: | Line 1: | ||
Dump the entire disk and compress | =Dump the entire disk and compress= | ||
# dd if=/dev/nvme0n1 status=progress | xz - | Compress with highest possible compression rate (-z9e) and highest possible thread number (T4). If not sure how many threads are available use T0 | ||
# dd if=/dev/nvme0n1 status=progress | xz -z9eT4 > /mnt/target/20250321_nvme0n1.xz | |||
xz: Reduced the number of threads from 8 to 3 to not exceed the memory usage limit of 3831 MiB | xz: Reduced the number of threads from 8 to 3 to not exceed the memory usage limit of 3831 MiB | ||
3733861376 bytes (3.7 GB, 3.5 GiB) copied, 524 s, 7.1 MB/s | 3733861376 bytes (3.7 GB, 3.5 GiB) copied, 524 s, 7.1 MB/s | ||
=Restore the entire disk= | |||
# xz -dc /mnt/source/20250321_nvme0n1_hp_840G6.xz | dd of=/dev/nvme0n1 status=progress |
Latest revision as of 00:55, 23 March 2025
Dump the entire disk and compress
Compress with highest possible compression rate (-z9e) and highest possible thread number (T4). If not sure how many threads are available use T0
# dd if=/dev/nvme0n1 status=progress | xz -z9eT4 > /mnt/target/20250321_nvme0n1.xz xz: Reduced the number of threads from 8 to 3 to not exceed the memory usage limit of 3831 MiB 3733861376 bytes (3.7 GB, 3.5 GiB) copied, 524 s, 7.1 MB/s
Restore the entire disk
# xz -dc /mnt/source/20250321_nvme0n1_hp_840G6.xz | dd of=/dev/nvme0n1 status=progress