X-Git-Url: https://git.proxmox.com/?p=proxmox-backup.git;a=blobdiff_plain;f=docs%2Fmanaging-remotes.rst;h=7d47d8be2472bef02195f5a58b665a022ef9ab67;hp=ccb7313e00db33fabc80339afc9d020e9019ffb7;hb=c10a6755f044e5efa6dbeab59eeff73733d5ee46;hpb=7ccbce03d3f93e02e595e0aba9a4c275dfebfff2 diff --git a/docs/managing-remotes.rst b/docs/managing-remotes.rst index ccb7313e..7d47d8be 100644 --- a/docs/managing-remotes.rst +++ b/docs/managing-remotes.rst @@ -85,12 +85,43 @@ To set up sync jobs, the configuring user needs the following permissions: #. ``Remote.Read`` on the ``/remote/{remote}/{remote-store}`` path #. At least ``Datastore.Backup`` on the local target datastore (``/datastore/{store}``) +.. note:: A sync job can only sync backup groups that the configured remote's + user/API token can read. If a remote is configured with a user/API token that + only has ``Datastore.Backup`` privileges, only the limited set of accessible + snapshots owned by that user/API token can be synced. + If the ``remove-vanished`` option is set, ``Datastore.Prune`` is required on the local datastore as well. If the ``owner`` option is not set (defaulting to ``root@pam``) or is set to something other than the configuring user, ``Datastore.Modify`` is required as well. -.. note:: A sync job can only sync backup groups that the configured remote's - user/API token can read. If a remote is configured with a user/API token that - only has ``Datastore.Backup`` privileges, only the limited set of accessible - snapshots owned by that user/API token can be synced. +If the ``group-filter`` option is set, only backup groups matching at least one +of the specified criteria are synced. The available criteria are: + +* backup type, for example to only sync groups of the `ct` (Container) type: + .. code-block:: console + + # proxmox-backup-manager sync-job update ID --group-filter type:ct +* full group identifier + .. code-block:: console + + # proxmox-backup-manager sync-job update ID --group-filter group:vm/100 +* regular expression matched against the full group identifier +.. todo:: add example for regex + +The same filter is applied to local groups for handling of the +``remove-vanished`` option. + +.. note:: The ``protected`` flag of remote backup snapshots will not be synced. + +Bandwidth Limit +^^^^^^^^^^^^^^^ + +Syncing a datastore to an archive can produce lots of traffic and impact other +users of the network. So, to avoid network or storage congestion you can limit +the bandwidth of the sync job by setting the ``rate-in`` option either in the +web interface or using the ``proxmox-backup-manager`` command-line tool: + +.. code-block:: console + + # proxmox-backup-manager sync-job update ID --rate-in 20MiB