]> git.proxmox.com Git - pmg-api.git/commit
Backup: split backup creation and creating tar
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 28 Oct 2020 18:54:20 +0000 (19:54 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 30 Oct 2020 06:09:40 +0000 (07:09 +0100)
commit29e2ff48ae0a01c96ace15560859e689655ff6f5
treefc8fff822c2f4657bfcd5c01ec9623d97526a3a3
parentf0c871bd0876e27786f44ba3acd8fe5bd0dcc768
Backup: split backup creation and creating tar

In preparation for integrating PMG with PBS split the current creation of
a PMG backup into 2 methods:
* create all files in a backup in a target directory
* create a tarball from a backup in a temporary directory

use the changed method in the backup API call.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/API2/Backup.pm
src/PMG/Backup.pm