]> git.proxmox.com Git - vma-to-pbs.git/log
vma-to-pbs.git
13 days agocorrectly handle optional string parameters master
Fabian Grünbichler [Thu, 16 May 2024 08:59:27 +0000 (10:59 +0200)]
correctly handle optional string parameters

one of the downsides of going via the C API here - on has to be careful to no
accidentally drop CStrings while also wanting to use them via pointers..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
13 days agoencrypt: improve checks
Fabian Grünbichler [Thu, 16 May 2024 08:57:04 +0000 (10:57 +0200)]
encrypt: improve checks

reject invalid combinations (encryption requested, but no keyfile) and warn
about pitfalls (keyfile given, but encryption not requested).

also allow keyfiles without passwords, but add a hint in case prompting is not
possible but not password file was given.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
13 days agoclippy fix
Fabian Grünbichler [Thu, 16 May 2024 08:56:40 +0000 (10:56 +0200)]
clippy fix

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
13 days agofix unused compress and encrypt options
Filip Schauer [Wed, 15 May 2024 13:24:21 +0000 (15:24 +0200)]
fix unused compress and encrypt options

Pass compress and encrypt to proxmox_backup_new_ns instead of using
default values. This was an oversight in the initial commit 4446414b.

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
5 weeks agobuild: upload for PVE and PBS
Fabian Grünbichler [Tue, 23 Apr 2024 08:18:04 +0000 (10:18 +0200)]
build: upload for PVE and PBS

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 weeks agobump version to 0.0.1
Fabian Grünbichler [Tue, 23 Apr 2024 08:12:27 +0000 (10:12 +0200)]
bump version to 0.0.1

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 weeks agoadd --backup-time to allow import of archival data
Fabian Grünbichler [Tue, 23 Apr 2024 08:03:42 +0000 (10:03 +0200)]
add --backup-time to allow import of archival data

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
5 weeks agoadd namespace support
Fabian Grünbichler [Tue, 23 Apr 2024 07:54:47 +0000 (09:54 +0200)]
add namespace support

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 weeks agoadd debian packaging
Wolfgang Bumiller [Tue, 9 Apr 2024 13:09:18 +0000 (15:09 +0200)]
add debian packaging

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 weeks agoreformat command line arguments to kebab-case
Filip Schauer [Tue, 9 Apr 2024 12:14:23 +0000 (14:14 +0200)]
reformat command line arguments to kebab-case

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
7 weeks agoswitch argument handling from clap to pico-args
Filip Schauer [Tue, 9 Apr 2024 12:14:22 +0000 (14:14 +0200)]
switch argument handling from clap to pico-args

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
7 weeks agomakefile: remove reference to unused submodule
Filip Schauer [Tue, 9 Apr 2024 12:14:21 +0000 (14:14 +0200)]
makefile: remove reference to unused submodule

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
7 weeks agorefactor error handling
Filip Schauer [Tue, 9 Apr 2024 12:14:20 +0000 (14:14 +0200)]
refactor error handling

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
7 weeks agoadd a fallback for the --fingerprint argument
Filip Schauer [Tue, 9 Apr 2024 12:14:19 +0000 (14:14 +0200)]
add a fallback for the --fingerprint argument

Fallback to the PBS_FINGERPRINT environment variable if the
--fingerprint argument is not specified.

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
7 weeks agoadd support for streaming the VMA file via stdin
Filip Schauer [Tue, 9 Apr 2024 12:14:18 +0000 (14:14 +0200)]
add support for streaming the VMA file via stdin

This allows the user to stream a compressed VMA file directly to a PBS
without the need to extract it to an intermediate .vma file.

Example usage:

zstd -d --stdout vzdump.vma.zst | vma-to-pbs \
    --repository <auth_id@host:port:datastore> \
    --vmid 123 \
    --password-file pbs_password

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
7 weeks agoremove unnecessary "extern crate" declarations
Filip Schauer [Tue, 9 Apr 2024 12:14:17 +0000 (14:14 +0200)]
remove unnecessary "extern crate" declarations

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
7 weeks agobump proxmox-backup-qemu
Filip Schauer [Tue, 9 Apr 2024 12:14:16 +0000 (14:14 +0200)]
bump proxmox-backup-qemu

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
7 weeks agoadd the ability to provide credentials via files
Filip Schauer [Tue, 9 Apr 2024 12:14:15 +0000 (14:14 +0200)]
add the ability to provide credentials via files

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
4 months agobump proxmox-backup-qemu
Wolfgang Bumiller [Fri, 5 Jan 2024 10:49:49 +0000 (11:49 +0100)]
bump proxmox-backup-qemu

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 months agocargo fmt
Wolfgang Bumiller [Thu, 7 Dec 2023 13:36:51 +0000 (14:36 +0100)]
cargo fmt

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 months agoInitial commit
Filip Schauer [Wed, 4 Oct 2023 08:29:18 +0000 (10:29 +0200)]
Initial commit

Implement a tool to import VMA files into a Proxmox Backup Server

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>