2020-10-02 14:12:57 +00:00
|
|
|
Managing Remotes
|
|
|
|
================
|
|
|
|
|
2020-10-05 15:08:16 +00:00
|
|
|
.. _backup_remote:
|
|
|
|
|
2020-10-02 14:12:57 +00:00
|
|
|
:term:`Remote`
|
|
|
|
--------------
|
|
|
|
|
|
|
|
A remote refers to a separate Proxmox Backup Server installation and a user on that
|
|
|
|
installation, from which you can `sync` datastores to a local datastore with a
|
|
|
|
`Sync Job`. You can configure remotes in the web interface, under **Configuration
|
|
|
|
-> Remotes**. Alternatively, you can use the ``remote`` subcommand. The
|
|
|
|
configuration information for remotes is stored in the file
|
|
|
|
``/etc/proxmox-backup/remote.cfg``.
|
|
|
|
|
|
|
|
.. image:: images/screenshots/pbs-gui-remote-add.png
|
|
|
|
:align: right
|
|
|
|
:alt: Add a remote
|
|
|
|
|
|
|
|
To add a remote, you need its hostname or ip, a userid and password on the
|
|
|
|
remote, and its certificate fingerprint. To get the fingerprint, use the
|
|
|
|
``proxmox-backup-manager cert info`` command on the remote, or navigate to
|
|
|
|
**Dashboard** in the remote's web interface and select **Show Fingerprint**.
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
# proxmox-backup-manager cert info |grep Fingerprint
|
|
|
|
Fingerprint (sha256): 64:d3:ff:3a:50:38:53:5a:9b:f7:50:...:ab:fe
|
|
|
|
|
|
|
|
Using the information specified above, you can add a remote from the **Remotes**
|
|
|
|
configuration panel, or by using the command:
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
# proxmox-backup-manager remote create pbs2 --host pbs2.mydomain.example --userid sync@pam --password 'SECRET' --fingerprint 64:d3:ff:3a:50:38:53:5a:9b:f7:50:...:ab:fe
|
|
|
|
|
|
|
|
Use the ``list``, ``show``, ``update``, ``remove`` subcommands of
|
|
|
|
``proxmox-backup-manager remote`` to manage your remotes:
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
# proxmox-backup-manager remote update pbs2 --host pbs2.example
|
|
|
|
# proxmox-backup-manager remote list
|
|
|
|
┌──────┬──────────────┬──────────┬───────────────────────────────────────────┬─────────┐
|
|
|
|
│ name │ host │ userid │ fingerprint │ comment │
|
|
|
|
╞══════╪══════════════╪══════════╪═══════════════════════════════════════════╪═════════╡
|
|
|
|
│ pbs2 │ pbs2.example │ sync@pam │64:d3:ff:3a:50:38:53:5a:9b:f7:50:...:ab:fe │ │
|
|
|
|
└──────┴──────────────┴──────────┴───────────────────────────────────────────┴─────────┘
|
|
|
|
# proxmox-backup-manager remote remove pbs2
|
|
|
|
|
|
|
|
|
|
|
|
.. _syncjobs:
|
|
|
|
|
|
|
|
Sync Jobs
|
|
|
|
---------
|
|
|
|
|
|
|
|
.. image:: images/screenshots/pbs-gui-syncjob-add.png
|
|
|
|
:align: right
|
|
|
|
:alt: Add a Sync Job
|
|
|
|
|
|
|
|
Sync jobs are configured to pull the contents of a datastore on a **Remote** to
|
|
|
|
a local datastore. You can manage sync jobs under **Configuration -> Sync Jobs**
|
|
|
|
in the web interface, or using the ``proxmox-backup-manager sync-job`` command.
|
|
|
|
The configuration information for sync jobs is stored at
|
|
|
|
``/etc/proxmox-backup/sync.cfg``. To create a new sync job, click the add button
|
|
|
|
in the GUI, or use the ``create`` subcommand. After creating a sync job, you can
|
|
|
|
either start it manually on the GUI or provide it with a schedule (see
|
|
|
|
:ref:`calendar-events`) to run regularly.
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
# proxmox-backup-manager sync-job create pbs2-local --remote pbs2 --remote-store local --store local --schedule 'Wed 02:30'
|
|
|
|
# proxmox-backup-manager sync-job update pbs2-local --comment 'offsite'
|
|
|
|
# proxmox-backup-manager sync-job list
|
|
|
|
┌────────────┬───────┬────────┬──────────────┬───────────┬─────────┐
|
|
|
|
│ id │ store │ remote │ remote-store │ schedule │ comment │
|
|
|
|
╞════════════╪═══════╪════════╪══════════════╪═══════════╪═════════╡
|
|
|
|
│ pbs2-local │ local │ pbs2 │ local │ Wed 02:30 │ offsite │
|
|
|
|
└────────────┴───────┴────────┴──────────────┴───────────┴─────────┘
|
|
|
|
# proxmox-backup-manager sync-job remove pbs2-local
|
|
|
|
|
|
|
|
|