MAAS backup and restore documentation omits permission preservation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Graham Morrison |
Bug Description
The MAAS docs for backup and restore at https:/
It might be better to use the "-p" flag on cp and tar commands given to ensure that the permissions are preserved.
This also affects the 2.1 and 2.0 versions of the documentation.
For reference, this is an example that I used to successfully restore a MAAS server:
sudo reboot
# Install MAAS
sudo apt install maas
# Extract backup, preserving permissions
sudo tar xvzpf backup.tgz
# Stop MAAS services prior to restore
sudo systemctl stop maas-dhcpd
sudo systemctl stop maas-rackd
sudo systemctl stop maas-regiond
# Restore MAAS DB
sudo -u postgres psql -f maas_db.sql postgres
# Backup "new" MAAS config, just in case
sudo mv /etc/maas /etc/_maas
sudo mv /var/lib/maas /var/lib/_maas
# Restore previous MAAS configuration
sudo cp -prf var/lib/maas /var/lib/
sudo cp -prf etc/maas /etc
# Verify MAAS services start on boot correctly
sudo reboot
Changed in maas: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
status: | Confirmed → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Thanks for this. I've duplicated the issue on the docs GH repo and we'll update the docs asap:
https:/ /github. com/CanonicalLt d/maas- docs/issues/ 580