Commit Graph

315 Commits

Author SHA1 Message Date
Thomas Lamprecht
7516d705b9 bump version to 0.1.6-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-04 10:48:50 +02:00
Thomas Lamprecht
67cac4a365 update proxmox-backup crate to 0.2.3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-04 10:48:07 +02:00
Dominik Csapak
391ec76798 fix backing up images that are not multiples of 'chunk_size'
by removing the client side checks

since the backup server has to check those things anyway, there is
little benefit of checking it here, but poses a risk that there
are two diverging checks for the client and server

especially the next to last check (end_offset > device_size) was
wrong, since we do not actually check the size of the actual chunk
(which would be 'size'), but the generic set chunk size (defaults to 4M)
which is obviously wrong (the last chunk is probably smaller)

since it is not needed anymore, we can omit to get the 'device_size'

fixes an issue where we could not backup an image which was not
4M aligned (or smaller than 4M altogether)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-06-04 07:00:06 +02:00
Thomas Lamprecht
5e800b33e7 update proxmox-backup crate to 0.2.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-03 17:22:41 +02:00
Dietmar Maurer
eb03d47afd bump version to 0.1.5-1 2020-06-02 12:18:59 +02:00
Dietmar Maurer
d4db809a8a src/restore.rs: hold reference to the runtime 2020-06-02 12:16:47 +02:00
Dietmar Maurer
234bd5a47c avoid compiler warning 2020-06-02 07:42:38 +02:00
Thomas Lamprecht
18e663ce6f bump version to 0.1.4-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-30 18:42:42 +02:00
Thomas Lamprecht
564910b080 restore: reuse the clients download_fixed_index
it's the same code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-30 18:42:42 +02:00
Thomas Lamprecht
20f1402e6b Cargo.toml: update versions
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-30 17:02:37 +02:00
Thomas Lamprecht
3e77a02983 switch from failure to anyhow
Similarly to how we did in proxmox-backup in mid april

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-30 17:01:38 +02:00
Dietmar Maurer
569a861e68 bump version to 0.1.3-1 2020-03-11 12:07:02 +01:00
Dietmar Maurer
fc9bf0e863 call C-callback if send command fail
And fix previous commit.
2020-03-11 11:11:14 +01:00
Dietmar Maurer
ad78a1a100 cleanup: use macro raise_error_int 2020-03-11 10:36:31 +01:00
Dietmar Maurer
eff15f5748 correctly convert error messages to CString 2020-03-11 10:24:23 +01:00
Dietmar Maurer
091e70b0c8 remove debug statements
And print unrecoverable errors to stderr.
2020-03-11 09:35:26 +01:00
Dietmar Maurer
9d60e3ffd3 bump version to 0.1.2-1 2020-03-10 11:22:58 +01:00
Dietmar Maurer
d648f6dcee build.rs: .with_include_guard("PROXMOX_BACKUP_QEMU_H") 2020-03-10 11:21:16 +01:00
Dietmar Maurer
8128b10d85 Makefile: upload to pve instead of pbs product 2020-03-03 08:04:07 +01:00
Dietmar Maurer
a13913f786 Makefile: add upload target 2020-03-03 07:55:59 +01:00
Dietmar Maurer
61f9fc51b1 depend on specific proxmox-backup git version 2020-03-03 07:49:53 +01:00
Dietmar Maurer
85a695a304 fix compile errors 2020-02-19 13:13:14 +01:00
Dietmar Maurer
36d22ed6a4 set fingerprint and password on HttpClientOptions 2020-02-19 13:07:26 +01:00
Dietmar Maurer
28e0be9f0d proxmox_restore_connect: use snapshot string (instead of backup_id and backup_time). 2020-02-19 12:47:01 +01:00
Dietmar Maurer
aca3c6a306 use BackupSetup for ProxmoxRestore::new() 2020-02-19 12:31:27 +01:00
Dietmar Maurer
76381310d3 simpletest.c: correctly handle write errors 2020-02-13 12:18:54 +01:00
Dietmar Maurer
9f41dd20bd remove stale comment 2020-02-13 12:10:04 +01:00
Dietmar Maurer
056dd8fc80 allow to set chunk_size, and define PROXMOX_BACKUP_DEFAULT_CHUNK_SIZE 2020-02-13 12:09:32 +01:00
Dietmar Maurer
070e55bc37 also implement synchrounous c-api and fix simpletest.c 2020-02-13 11:41:14 +01:00
Dietmar Maurer
d96988fbe6 src/worker_task.rs: fix tokio runtime parameters 2020-02-13 09:03:48 +01:00
Dietmar Maurer
7e108c81f7 src/worker_task.rs: set thread name 2020-02-13 08:24:58 +01:00
Dietmar Maurer
a79ce5d618 src/worker_task.rs: use runtime.block_on() inside backup_worker_task 2020-02-13 08:15:05 +01:00
Dietmar Maurer
74363b4cdd update all dependencies 2020-02-12 13:01:20 +01:00
Dietmar Maurer
5803f47b29 update rust toolchain to stable 2019-11-08 11:55:25 +01:00
Dietmar Maurer
7977ef8507 avoid clippy warnings 2019-10-26 14:46:01 +02:00
Dietmar Maurer
aa47e26411 simplify rust code 2019-10-25 12:25:46 +02:00
Dietmar Maurer
ca246b4590 run all commands async with tokio::spawn() 2019-10-25 11:57:33 +02:00
Dietmar Maurer
6abb11b405 proxmox_backup_free_error: test if ptr == NULL 2019-10-25 08:50:38 +02:00
Dietmar Maurer
ce96ec7bd7 header-preamble.c: add result parameter 2019-10-25 07:00:18 +02:00
Dietmar Maurer
82c4d21165 make proxmox_backup_register_image async 2019-10-25 06:53:37 +02:00
Dietmar Maurer
602a863955 make proxmox_backup_add_config async 2019-10-25 06:45:59 +02:00
Dietmar Maurer
e44ea5eaad Add pointer to integer return value for all async functions 2019-10-25 06:36:59 +02:00
Dietmar Maurer
599499beaa cleanup: avoid unwrap 2019-10-25 05:59:12 +02:00
Dietmar Maurer
2f3642766d implement async connect command 2019-10-24 13:52:16 +02:00
Dietmar Maurer
91ee12a2ea cleanup: implement CallbackPointers send_result() 2019-10-24 12:44:33 +02:00
Dietmar Maurer
8bce735530 use relative path in symbolic link to libproxmox_backup_qemu.so.0 2019-10-24 10:10:46 +02:00
Dietmar Maurer
ca22d6e09c simpletest.c: pass new keyfile parameters (NULL for now) 2019-10-16 13:48:48 +02:00
Dietmar Maurer
6dd823ebff proxmox_backup_connect: add keyfile and key_password parameter 2019-10-16 13:46:17 +02:00
Dietmar Maurer
62fd16974e fix typo 2019-10-16 12:12:18 +02:00
Dietmar Maurer
7dfc23db39 proxmox_backup_connect: make password optional 2019-10-16 11:47:45 +02:00