Backup Source Installation
Add your devices to the backup network
Requirements
- Confirmation that your account has been set up
- The administrator password for your logged in user (needed for running the playbook)
- Your generated passphrase you’ve prepared
Installation
Determine how you’d like to install the necessary software on your devices. All of the software you need to install has publicly available code (open source) so it can be audited if necessary. For details, see Installation Software.
We provide an Ansible role and default playbook for automatic configuration of devices, with this repository actually structured as an Ansible collection containing both. If your organization uses another automated provisioning tool enabling infrastructure as code (IaC) such as Salt, Chef or Puppet, feel free to write an equivalent script (and then provide it to us so that we can share it with others). If you prefer to configure your backup sources manually (not recommended, but necessary if you have different set-up requirements, such as running the Backrest console in a Docker container instead of locally), you can review the included role to follow and possibly modify those steps.
Using our Ansible role
For more information on what our Ansible role actually does on your device, please review the role overview.
For a single backup source, run locally on the backup source or remotely targetting it
- Install Ansible by running the following command:
sudo apt install ansible
- Add a directory for Ansible collections:
mkdir --parents ~/.ansible/collections
- Clone this repository into your collections directory:
git clone https://gitlab.com/backupscale/customer-tools.git ~/.ansible/collections/customer-tools
- Run the Ansible playbook.
- Locally:
ansible-playbook --inventory localhost, --ask-become-pass --connection=local ~/.ansible/collections/customer-tools/playbooks/configure-backup-sources.yml - Remotely:
ansible-playbook --inventory REMOTE_HOSTNAME, --ask-become-pass ~/.ansible/collections/customer-tools/playbooks/configure-backup-sources.yml
- Locally:
- When it prompts you for a BECOME password, enter your own password to get
sudoaccess so that some tasks can run with administrator permissions (only the ones that need them).
Multiple remote targets, non-local
For multiple targets that aren’t local, you’d instead run something like this, or provide an inventory file:
ansible-playbook --inventory server1,server2,server3 /path/to/this/repository/playbooks/configure-backup-sources.yml- When it prompts you for a BECOME password, enter your own password to get
sudoaccess so that some tasks can run with administrator permissions (only the ones that need them).
Next Steps
We’re now ready to move onto configuration.