From e8e56adc2d2a0eed018883144060ce181b20749a Mon Sep 17 00:00:00 2001 From: scallyob <40340852+scallyob@users.noreply.github.com> Date: Wed, 10 Mar 2021 23:16:44 +0000 Subject: [PATCH] Clarify Dom0 backup and restore process Make clear that Dom0 backup only applies to /home/ and give an example of how you might try to backup system files. Also point out that any packages can/must be reinstalled on a fresh system. --- user/common-tasks/backup-restore.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/user/common-tasks/backup-restore.md b/user/common-tasks/backup-restore.md index a9b91238..6720649a 100644 --- a/user/common-tasks/backup-restore.md +++ b/user/common-tasks/backup-restore.md @@ -21,6 +21,23 @@ This is true of all computing, not just the use of Qubes. Data loss can and does occur in myriad and unexpected ways. A standard recommendation is to make backups at least weekly: three copies in two different formats, one off-site. +Backing up changes to Dom0 +-------------------------- +NOTE: If you use the Backup Qubes tool to backup Dom0, it only backs up files in the home directory. +If you have files in Dom0 that you want to save, you should put copies of them in your home directory before running Backup Qubes per the instructions below. +An example of how to back up files from /etc/ if you created qrexec policies (named *local.mysql*, *local.ssh*) and altered *guid.conf* would look like the following: + + yourname@dom0 ~]$mkdir ~/systemfiles + yourname@dom0 ~]$mkdir ~/systemfiles/etc + yourname@dom0 ~]$mkdir ~/systemfiles/etc/qubes-rpc + yourname@dom0 ~]$mkdir ~/systemfiles/etc/qubes-rpc/policy + yourname@dom0 ~]$cp /etc/qubes-rpc/policy/local.* ~/systemfiles/etc/qubes-rpc/policy/ + yourname@dom0 ~]$mkdir systemfiles/etc/qubes + yourname@dom0 ~]$cp /etc/qubes/guid.conf ~/systemfiles/etc/qubes/guid.conf + +To restore these files you would have to move them from the restored directory in your home back to their appropriate locations in /etc/ after the restore as described below. + +If you are rebuilding your system from a fresh install and you had installed additional packages in your dom0 you will need to reinstall the packages into your new dom0. Creating a Backup -----------------