4 The administration guide.
13 When doing deduplication, there are different strategies to get
14 optimal results in terms of performance and/or deduplication rates.
15 Depending on the type of data, one can split it into fixed or variable
18 Fixed sized chunking needs almost no CPU performance, and is used to
19 backup virtual machine images.
21 Variable sized chunking needs more CPU power, but is essential to get
22 good deduplication rates for file archives.
24 Therefore, the backup server supports both strategies.
30 .. see https://moinakg.wordpress.com/2013/06/22/high-performance-content-defined-chunking/
32 A file archive stores a whole directory tree. Content is stored using
33 the :ref:`pxar-format`, split into variable sized chunks. The format
34 is specially optimized to achieve good deduplication rates.
40 This is used for virtual machine images and other large binary
41 data. Content is split into fixed sized chunks.
47 This type is used to store smaller (< 16MB) binaries like
48 configuration data. Larger files should be stored as image archive.
50 .. caution:: Please do not store all files as BLOBs. Instead, use the
51 file archive to store whole directory trees.
57 The backup server groups backups by *type*, where *type* is one of:
60 This type is use for :term:`virtual machine`\ s. Typically
61 contains the virtual machine configuration and an image archive
65 This type is use for :term:`container`\ s. Contains the container
66 configuration and a single file archive for the container content.
69 This type is used for physical host, or if you want to run backup
70 manually from inside virtual machines or containers. Such backup
71 may contains file and image archives (no restrictions here).
77 An unique ID. Usually the virtual machine or container ID. ``host``
78 type backups normally use the hostname.
84 The time when the backup was made.
90 We call the triplet ``<type>/<ID>/<time>`` a backup snapshot. It
91 uniquely identifies a specific backup within a datastore.
93 .. code-block:: console
94 :caption: Backup Snapshot Examples
96 vm/104/2019-10-09T08:01:06Z
97 host/elsa/2019-11-08T09:48:14Z
99 As you can see, the time is formatted as RFC3399_ using Coordinated
100 Universal Time (UTC_, identified by the trailing *Z*).
106 A datastore is a place to store backups. The current implementation
107 uses a directory inside a standard unix file system (``ext4``, ``xfs``
108 or ``zfs``) to store backup data.
110 Datastores are identified by a simple *ID*. You can configure that
111 when setting up the backup server.
114 Backup Server Management
115 ------------------------
117 The command line tool to configure and manage the server is called
118 :command:`proxmox-backup-manager`.
121 Datastore Configuration
122 ~~~~~~~~~~~~~~~~~~~~~~~
124 A :term:`datastore` is a place to store backups. You can configure
125 several datastores, but you need at least one of them. The datastore is identified by a simple `name` and point to a directory.
127 The following command creates a new datastore called ``store1`` on :file:`/backup/disk1/store1`
129 .. code-block:: console
131 # proxmox-backup-manager datastore create store1 /backup/disk1/store1
133 To list existing datastores use:
135 .. code-block:: console
137 # proxmox-backup-manager datastore list
138 store1 /backup/disk1/store1
140 Finally, it is also possible to remove the datastore configuration:
142 .. code-block:: console
144 # proxmox-backup-manager datastore remove store1
146 .. note:: Above command removes the datastore configuration. It does
147 not delete any data from the underlying directory.
153 .. todo:: Add datastore file layout example
159 The command line client is called :command:`proxmox-backup-client`.
161 Respository Locations
162 ~~~~~~~~~~~~~~~~~~~~~
164 The client uses a special repository notation to specify a datastore
165 on the backup server.
167 [[username@]server:]datastore
169 If you do not specify a ``username`` the default is ``root@pam``. The
170 default for server is to use the local host (``localhost``).
172 You can pass the repository by setting the ``--repository`` command
173 line options, or by setting the ``PBS_REPOSITORY`` environment
177 Environment Variables
178 ~~~~~~~~~~~~~~~~~~~~~~
181 The default backup repository.
184 When set, this value is used for the password required for the
187 ``PBS_ENCRYPTION_PASSWORD``
189 When set, this value is used to access the secret encryption key (if
190 protected by password).
205 `Proxmox VE`_ integration
206 -------------------------
209 .. include:: command-line-tools.rst
211 .. include:: services.rst
213 .. include host system admin at the end
215 .. include:: sysadmin.rst