From c849036d0b7511e8a736e5064a4c404340705fbe Mon Sep 17 00:00:00 2001 From: holger krekel Date: Thu, 18 Dec 2025 23:40:20 +0100 Subject: [PATCH] fix tar commands --- doc/source/migrate.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/migrate.rst b/doc/source/migrate.rst index 189353b8..768c9c37 100644 --- a/doc/source/migrate.rst +++ b/doc/source/migrate.rst @@ -26,7 +26,7 @@ this case, just run ``ssh-keygen -R "mail.example.org"`` as recommended. :: ssh -A root@$OLD_IP4 - tar c - /home/vmail/mail | ssh root@$NEW_IP4 "tar x -C /" + tar c /home/vmail/mail | ssh root@$NEW_IP4 "tar x -C /" This saves us time during the downtime, at least the mailboxes are there already. @@ -62,10 +62,10 @@ this case, just run ``ssh-keygen -R "mail.example.org"`` as recommended. :: ssh -A root@$OLD_IP4 - tar c - /var/lib/acme /etc/dkimkeys /var/spool/postfix | ssh root@$NEW_IP4 "tar x -C /" + tar c /var/lib/acme /etc/dkimkeys /var/spool/postfix | ssh root@$NEW_IP4 "tar x -C /" rsync -azH /home/vmail/mail root@$NEW_IP4:/home/vmail/ - This transfers all addresses, messages which have not been fetched yet, the TLS certificate, + This transfers all messages which have not been fetched yet, the TLS certificate, and DKIM keys (so DKIM DNS record remains valid). It also preserves the Postfix mail spool so any messages pending delivery will still be delivered.