

Backing up and restoring Puppet Enterprise
source link: https://puppet.com/docs/pe/2018.1/backing_up_and_restoring_pe.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Backing up and restoring Puppet Enterprise
Keep regular backups of your PE infrastructure. Backups allow you to more easily migrate to a new master, troubleshoot, and quickly recover in the case of system failures.
puppet-backup
command to back up and
restore your primary master or master of masters in monolithic installations only. You
can't use this command to back up split installations or compile masters. By default,
the backup command creates a backup of:-
Your PE configuration, including license, classification, and RBAC settings. However, configuration backup does not include Puppet gems or Puppet Server gems.
-
PE CA certificates and the full SSL directory.
-
The Puppet code deployed to your code directory at backup time.
-
PuppetDB data, including facts, catalogs and historical reports.
Each time you create a new backup, PE creates a single, timestamped backup file, named in
the format pe_backup-<TIMESTAMP>.tgz
. This file includes everything you're
backing up. By default, PE writes
backup files to /var/puppetlabs/backups
, but you can change this location when you run the
backup command. When you restore, specify the backup file you want to restore from.
If you are restoring to a previously existing master, uninstall and reinstall PE before restoring your infrastructure. If you are restoring or migrating your infrastructure to a master with a different hostname than the previous master, you'll redirect your agents to the new master during the restore process. In both cases, the freshly installed PE must be the same PE version that was in use when you backed up the files.
By default, backup and restore functions include your Puppet configuration, certificates, code, and PuppetDB. However, you can limit the scope of backup and restore with command line options. This allows you to back up to or restore from multiple files. This is useful if you want to back up some parts of your infrastructure more often than others.
For example, if you have frequent code changes, you might back up the code more often than you back up the rest of your infrastructure. When you limit backup scope, the backup file contains only the specified parts of your infrastructure. Be sure to give your backup file a name that identifies the scope so that you always know what a given file contains.
During restore, you must restore all scopes: code, configuration, certificates, and PuppetDB. However, you can restore each scope from different files, either by restoring from backup files with limited scope or by limiting the scope of the restore. For example, by specifying scope when you run the restore command, you could restore code, configuration, and certificates from one backup file and PuppetDB from a different one.
Recommend
-
44
At PuppetConf 2017, Puppet Tasks were introduced as part of the new project Bolt . A task allows you to run a program on an arbitrary number of nodes. The program can be j...
-
12
Upgrade your PE installation as new versions become available. Upgrade paths These are the valid upgrade paths for PE.Note: Beginning with PE 2015.2, Puppet supports upgrade from any version, and
-
9
Articles in this section Download the latest primary server packages for Puppet Enterprise ...
-
15
Puppet Enterprise Update docs are missing a stepDetailsDescription
-
8
Upgrading Puppet Enterprise from 2016.4 to 2017.3 Over the past year, there have been some pretty big improvements to Puppet. I am still running PE 2016.4.2 and the current version is 2017.3.2, so there’s lot of changes in there....
-
7
Standard Creating your first Puppet Task for Puppet Enterprise At PuppetConf 2017, Puppet Tasks were introduced as part of the new project
-
14
Using Puppet Enterprise 2018’s new backup/restore features I was pretty excited when I read the new features in Puppet Enterprise 2018.1. There are a lot of coo...
-
12
Puppet Enterprise 2021 release includes support for SAML 2.0by Margaret Lee|3 March 2021See more posts about:
-
16
Business Trends
-
4
by Thomas Krieger|14 February 2022Puppet Enterprise installation and self-signed Intermediate CA (Certificate Authority) This article is about how to install Puppet E...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK