From 6e0db3def18c04689df222c75bd84a4759f1e9e1 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Fri, 14 Aug 2020 18:28:12 +0300 Subject: [PATCH] Note about e2image --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6e177ec..f821ca9 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,8 @@ and seems to handle fsyncs correctly. 9. Reboot. 10. Install dm-era tools (`era_invalidate`) with `apt-get install thin-provisioning-tools` on your target host. 11. Install `era_copy` and `era_apply` (`make install` from this repository) on both hosts (target host and backup host). -12. Do an initial full partition backup with block-level copy. +12. Do an initial full partition backup with block-level copy. For example, to copy an ext4 filesystem + to another host over ssh run: `ssh root@host "e2image -f -p -ra /dev/mapper/root_era - | gzip" | gzip -d | cp --sparse=always /dev/stdin rootfs.bin`. 13. Now you can use `backup.sh` to perform incremental backups of the dm-era device over ssh from the backup host. Just change variables at the top of the script so it matches your device configuration.