]> git.proxmox.com Git - proxmox-backup-qemu.git/log
proxmox-backup-qemu.git
4 years agoMakefile: add upload target
Dietmar Maurer [Tue, 3 Mar 2020 06:55:59 +0000 (07:55 +0100)]
Makefile: add upload target

4 years agodepend on specific proxmox-backup git version
Dietmar Maurer [Tue, 3 Mar 2020 06:47:07 +0000 (07:47 +0100)]
depend on specific proxmox-backup git version

4 years agofix compile errors
Dietmar Maurer [Wed, 19 Feb 2020 12:13:14 +0000 (13:13 +0100)]
fix compile errors

4 years agoset fingerprint and password on HttpClientOptions
Dietmar Maurer [Wed, 19 Feb 2020 12:07:26 +0000 (13:07 +0100)]
set fingerprint and password on HttpClientOptions

4 years agoproxmox_restore_connect: use snapshot string (instead of backup_id and backup_time).
Dietmar Maurer [Wed, 19 Feb 2020 11:47:01 +0000 (12:47 +0100)]
proxmox_restore_connect: use snapshot string (instead of backup_id and backup_time).

4 years agouse BackupSetup for ProxmoxRestore::new()
Dietmar Maurer [Wed, 19 Feb 2020 11:31:27 +0000 (12:31 +0100)]
use BackupSetup for ProxmoxRestore::new()

4 years agosimpletest.c: correctly handle write errors
Dietmar Maurer [Thu, 13 Feb 2020 11:18:54 +0000 (12:18 +0100)]
simpletest.c: correctly handle write errors

4 years agoremove stale comment
Dietmar Maurer [Thu, 13 Feb 2020 11:10:04 +0000 (12:10 +0100)]
remove stale comment

4 years agoallow to set chunk_size, and define PROXMOX_BACKUP_DEFAULT_CHUNK_SIZE
Dietmar Maurer [Thu, 13 Feb 2020 11:06:53 +0000 (12:06 +0100)]
allow to set chunk_size, and define PROXMOX_BACKUP_DEFAULT_CHUNK_SIZE

4 years agoalso implement synchrounous c-api and fix simpletest.c
Dietmar Maurer [Thu, 13 Feb 2020 10:41:14 +0000 (11:41 +0100)]
also implement synchrounous c-api and fix simpletest.c

4 years agosrc/worker_task.rs: fix tokio runtime parameters
Dietmar Maurer [Thu, 13 Feb 2020 08:03:48 +0000 (09:03 +0100)]
src/worker_task.rs: fix tokio runtime parameters

4 years agosrc/worker_task.rs: set thread name
Dietmar Maurer [Thu, 13 Feb 2020 07:24:58 +0000 (08:24 +0100)]
src/worker_task.rs: set thread name

4 years agosrc/worker_task.rs: use runtime.block_on() inside backup_worker_task
Dietmar Maurer [Thu, 13 Feb 2020 07:15:05 +0000 (08:15 +0100)]
src/worker_task.rs: use runtime.block_on() inside backup_worker_task

4 years agoupdate all dependencies
Dietmar Maurer [Wed, 12 Feb 2020 12:01:20 +0000 (13:01 +0100)]
update all dependencies

4 years agoupdate rust toolchain to stable
Dietmar Maurer [Fri, 8 Nov 2019 10:55:25 +0000 (11:55 +0100)]
update rust toolchain to stable

4 years agoavoid clippy warnings
Dietmar Maurer [Sat, 26 Oct 2019 12:46:01 +0000 (14:46 +0200)]
avoid clippy warnings

4 years agosimplify rust code
Dietmar Maurer [Fri, 25 Oct 2019 10:25:46 +0000 (12:25 +0200)]
simplify rust code

4 years agorun all commands async with tokio::spawn()
Dietmar Maurer [Fri, 25 Oct 2019 09:57:33 +0000 (11:57 +0200)]
run all commands async with tokio::spawn()

4 years agoproxmox_backup_free_error: test if ptr == NULL
Dietmar Maurer [Fri, 25 Oct 2019 06:50:38 +0000 (08:50 +0200)]
proxmox_backup_free_error: test if ptr == NULL

4 years agoheader-preamble.c: add result parameter
Dietmar Maurer [Fri, 25 Oct 2019 05:00:18 +0000 (07:00 +0200)]
header-preamble.c: add result parameter

4 years agomake proxmox_backup_register_image async
Dietmar Maurer [Fri, 25 Oct 2019 04:53:37 +0000 (06:53 +0200)]
make proxmox_backup_register_image async

4 years agomake proxmox_backup_add_config async
Dietmar Maurer [Fri, 25 Oct 2019 04:45:59 +0000 (06:45 +0200)]
make proxmox_backup_add_config async

4 years agoAdd pointer to integer return value for all async functions
Dietmar Maurer [Fri, 25 Oct 2019 04:36:59 +0000 (06:36 +0200)]
Add pointer to integer return value for all async functions

4 years agocleanup: avoid unwrap
Dietmar Maurer [Fri, 25 Oct 2019 03:59:12 +0000 (05:59 +0200)]
cleanup: avoid unwrap

4 years agoimplement async connect command
Dietmar Maurer [Thu, 24 Oct 2019 11:52:16 +0000 (13:52 +0200)]
implement async connect command

4 years agocleanup: implement CallbackPointers send_result()
Dietmar Maurer [Thu, 24 Oct 2019 10:44:33 +0000 (12:44 +0200)]
cleanup: implement CallbackPointers send_result()

4 years agouse relative path in symbolic link to libproxmox_backup_qemu.so.0
Dietmar Maurer [Thu, 24 Oct 2019 08:10:46 +0000 (10:10 +0200)]
use relative path in symbolic link to libproxmox_backup_qemu.so.0

4 years agosimpletest.c: pass new keyfile parameters (NULL for now)
Dietmar Maurer [Wed, 16 Oct 2019 11:48:48 +0000 (13:48 +0200)]
simpletest.c: pass new keyfile parameters (NULL for now)

4 years agoproxmox_backup_connect: add keyfile and key_password parameter
Dietmar Maurer [Wed, 16 Oct 2019 11:46:17 +0000 (13:46 +0200)]
proxmox_backup_connect: add keyfile and key_password parameter

4 years agofix typo
Dietmar Maurer [Wed, 16 Oct 2019 10:12:18 +0000 (12:12 +0200)]
fix typo

4 years agoproxmox_backup_connect: make password optional
Dietmar Maurer [Wed, 16 Oct 2019 09:47:45 +0000 (11:47 +0200)]
proxmox_backup_connect: make password optional

4 years agosimpletest.c: make it work again, pass repo as command line parameter
Dietmar Maurer [Wed, 16 Oct 2019 09:46:42 +0000 (11:46 +0200)]
simpletest.c: make it work again, pass repo as command line parameter

4 years agoMakefile: fix simpletest target
Dietmar Maurer [Wed, 16 Oct 2019 09:45:32 +0000 (11:45 +0200)]
Makefile: fix simpletest target

4 years agoimprove docs
Dietmar Maurer [Tue, 15 Oct 2019 13:16:07 +0000 (15:16 +0200)]
improve docs

4 years agocleanup restore api, allow to restore multiple images
Dietmar Maurer [Tue, 15 Oct 2019 10:11:22 +0000 (12:11 +0200)]
cleanup restore api, allow to restore multiple images

4 years agosrc/restore.rs: implement restore
Dietmar Maurer [Mon, 14 Oct 2019 11:50:20 +0000 (13:50 +0200)]
src/restore.rs: implement restore

4 years agosrc/commands.rs: use new DataChunkBuilder::build_zero_chunk()
Dietmar Maurer [Mon, 14 Oct 2019 09:03:50 +0000 (11:03 +0200)]
src/commands.rs: use new DataChunkBuilder::build_zero_chunk()

4 years agocleanups, rename BackupClient to BackupWriter
Dietmar Maurer [Sat, 12 Oct 2019 12:19:59 +0000 (14:19 +0200)]
cleanups, rename BackupClient to BackupWriter

4 years agoset toolchain to beta
Dietmar Maurer [Sat, 12 Oct 2019 12:13:29 +0000 (14:13 +0200)]
set toolchain to beta

4 years agoadd dummy code for simple restore tasks.
Dietmar Maurer [Sat, 12 Oct 2019 10:12:31 +0000 (12:12 +0200)]
add dummy code for simple restore tasks.

4 years agosrc/worker_task.rs: fix typo
Dietmar Maurer [Sat, 12 Oct 2019 10:11:48 +0000 (12:11 +0200)]
src/worker_task.rs: fix typo

4 years agosrc/commands.rs: adopt to changes in proxmox-backup
Dietmar Maurer [Sat, 12 Oct 2019 07:38:55 +0000 (09:38 +0200)]
src/commands.rs: adopt to changes in proxmox-backup

4 years agoadopt to latest changes in proxmox-backup
Dietmar Maurer [Sun, 6 Oct 2019 08:51:47 +0000 (10:51 +0200)]
adopt to latest changes in proxmox-backup

4 years agouse correct file name in index.json
Dietmar Maurer [Wed, 2 Oct 2019 11:34:19 +0000 (13:34 +0200)]
use correct file name in index.json

4 years agoadd_config: use correct size
Dietmar Maurer [Wed, 2 Oct 2019 09:34:57 +0000 (11:34 +0200)]
add_config: use correct size

We want to store the size of the encoded blob in the index.

4 years agoremove stale comment
Dietmar Maurer [Mon, 30 Sep 2019 10:38:03 +0000 (12:38 +0200)]
remove stale comment

4 years agoChunkUploadInfo: add chunk_is_known flag
Dietmar Maurer [Mon, 30 Sep 2019 09:26:21 +0000 (11:26 +0200)]
ChunkUploadInfo: add chunk_is_known flag

To avoid unnecessary locking...

4 years agocleanup: use tokio::sync::{mpsc, oneshot};
Dietmar Maurer [Sun, 29 Sep 2019 09:30:57 +0000 (11:30 +0200)]
cleanup: use tokio::sync::{mpsc, oneshot};

4 years agosrc/upload_queue.rs: new helper create_upload_queue()
Dietmar Maurer [Sun, 29 Sep 2019 09:21:50 +0000 (11:21 +0200)]
src/upload_queue.rs: new helper create_upload_queue()

4 years agosrc/upload_queue.rs: split upload_handler into extra file
Dietmar Maurer [Sun, 29 Sep 2019 09:08:02 +0000 (11:08 +0200)]
src/upload_queue.rs: split upload_handler into extra file

4 years agocleanup: use TryFutureExt (for .map_err())
Dietmar Maurer [Sun, 29 Sep 2019 08:57:23 +0000 (10:57 +0200)]
cleanup: use TryFutureExt (for .map_err())

4 years agoimprove upload queue error handling
Dietmar Maurer [Sun, 29 Sep 2019 08:40:19 +0000 (10:40 +0200)]
improve upload queue error handling

4 years agospeedup chunk upload
Dietmar Maurer [Sat, 28 Sep 2019 16:27:03 +0000 (18:27 +0200)]
speedup chunk upload

4 years agoadd resonable connect parameters
Dietmar Maurer [Fri, 27 Sep 2019 09:49:12 +0000 (11:49 +0200)]
add resonable connect parameters

4 years agomove async command implementation to commands.rs
Dietmar Maurer [Tue, 24 Sep 2019 10:15:57 +0000 (12:15 +0200)]
move async command implementation to commands.rs

4 years agomove BackupMessage into capi_types.rs
Dietmar Maurer [Tue, 24 Sep 2019 09:27:54 +0000 (11:27 +0200)]
move BackupMessage into capi_types.rs

4 years agospli C-API from rest of the code
Dietmar Maurer [Tue, 24 Sep 2019 09:22:12 +0000 (11:22 +0200)]
spli C-API from rest of the code

4 years agosrc/capi_types.rs: slip types for C api into separate file
Dietmar Maurer [Tue, 24 Sep 2019 09:08:19 +0000 (11:08 +0200)]
src/capi_types.rs: slip types for C api into separate file

4 years agorename BackupRepository into BackupSetup
Dietmar Maurer [Tue, 24 Sep 2019 09:01:40 +0000 (11:01 +0200)]
rename BackupRepository into BackupSetup

4 years agopass known_chunks as argument (no need to store inside ImageUploadInfo)
Dietmar Maurer [Tue, 24 Sep 2019 08:31:14 +0000 (10:31 +0200)]
pass known_chunks as argument (no need to store inside ImageUploadInfo)

4 years agoupload index.json
Dietmar Maurer [Tue, 24 Sep 2019 08:25:14 +0000 (10:25 +0200)]
upload index.json

4 years agocompute index checksum, simplify code
Dietmar Maurer [Mon, 23 Sep 2019 11:13:17 +0000 (13:13 +0200)]
compute index checksum, simplify code

5 years agoimplement add_config
Dietmar Maurer [Sun, 22 Sep 2019 08:53:03 +0000 (10:53 +0200)]
implement add_config

5 years agoimplement proxmox_backup_finish_async()
Dietmar Maurer [Sat, 21 Sep 2019 14:15:28 +0000 (16:15 +0200)]
implement proxmox_backup_finish_async()

5 years agoproxmox_backup_abort: use *const char
Dietmar Maurer [Sat, 21 Sep 2019 13:56:26 +0000 (15:56 +0200)]
proxmox_backup_abort: use *const char

5 years agohandle known chunks
Dietmar Maurer [Sat, 21 Sep 2019 13:45:21 +0000 (15:45 +0200)]
handle known chunks

5 years agocleanup
Dietmar Maurer [Sat, 21 Sep 2019 13:32:55 +0000 (15:32 +0200)]
cleanup

5 years agofactor out register_zero_chunk
Dietmar Maurer [Sat, 21 Sep 2019 13:28:25 +0000 (15:28 +0200)]
factor out register_zero_chunk

5 years agominor cleanup
Dietmar Maurer [Sat, 21 Sep 2019 13:20:00 +0000 (15:20 +0200)]
minor cleanup

5 years agoupload and use zero sized chunk
Dietmar Maurer [Sat, 21 Sep 2019 09:12:33 +0000 (11:12 +0200)]
upload and use zero sized chunk

5 years agocomputer zero chunk digest at register_image
Dietmar Maurer [Sat, 21 Sep 2019 08:47:34 +0000 (10:47 +0200)]
computer zero chunk digest at register_image

5 years agoadd chunk_size configuration
Dietmar Maurer [Sat, 21 Sep 2019 08:34:39 +0000 (10:34 +0200)]
add chunk_size configuration

5 years agoimplement image registry, implement close image
Dietmar Maurer [Sat, 21 Sep 2019 08:24:24 +0000 (10:24 +0200)]
implement image registry, implement close image

5 years agopass client to command implementation
Dietmar Maurer [Thu, 19 Sep 2019 08:07:53 +0000 (10:07 +0200)]
pass client to command implementation

5 years agocleanup
Dietmar Maurer [Wed, 18 Sep 2019 11:56:29 +0000 (13:56 +0200)]
cleanup

5 years agohandle abort in proxmox_backup_register_image()
Dietmar Maurer [Wed, 18 Sep 2019 11:52:27 +0000 (13:52 +0200)]
handle abort in proxmox_backup_register_image()

5 years agoadd register_image prototype
Dietmar Maurer [Wed, 18 Sep 2019 11:50:02 +0000 (13:50 +0200)]
add register_image prototype

5 years agorecord abort reason, handle abort in write_data
Dietmar Maurer [Wed, 18 Sep 2019 09:37:17 +0000 (11:37 +0200)]
record abort reason, handle abort in write_data

5 years agolimit number of threads
Dietmar Maurer [Tue, 17 Sep 2019 15:20:49 +0000 (17:20 +0200)]
limit number of threads

5 years agocleanup
Dietmar Maurer [Tue, 17 Sep 2019 15:13:59 +0000 (17:13 +0200)]
cleanup

5 years agouse threadpool runtime
Dietmar Maurer [Tue, 17 Sep 2019 15:02:58 +0000 (17:02 +0200)]
use threadpool runtime

5 years agoimplement abort
Dietmar Maurer [Tue, 17 Sep 2019 11:46:38 +0000 (13:46 +0200)]
implement abort

5 years agostart error handling
Dietmar Maurer [Mon, 16 Sep 2019 11:44:47 +0000 (13:44 +0200)]
start error handling

5 years agogather/return some statistics
Dietmar Maurer [Sun, 15 Sep 2019 07:18:35 +0000 (09:18 +0200)]
gather/return some statistics

5 years agoadd dev_id to write callback
Dietmar Maurer [Sun, 15 Sep 2019 07:05:24 +0000 (09:05 +0200)]
add dev_id to write callback

5 years agocreate -dev package, fix .install file names
Dietmar Maurer [Fri, 13 Sep 2019 10:37:27 +0000 (12:37 +0200)]
create -dev package, fix .install file names

5 years agoconnectly install .so file, set soname
Dietmar Maurer [Fri, 13 Sep 2019 09:59:41 +0000 (11:59 +0200)]
connectly install .so file, set soname

5 years agoinstall dynamic lib (instead of static)
Dietmar Maurer [Fri, 13 Sep 2019 08:11:22 +0000 (10:11 +0200)]
install dynamic lib (instead of static)

Which is much smaller.

5 years agouse std::sync::mpsc::channel
Dietmar Maurer [Fri, 13 Sep 2019 07:57:34 +0000 (09:57 +0200)]
use std::sync::mpsc::channel

We cannoit use tokio here, because there is no runtime in the calling thread.

5 years agoadd a simple test program
Dietmar Maurer [Fri, 13 Sep 2019 07:57:01 +0000 (09:57 +0200)]
add a simple test program

5 years agoadd more debug messages
Dietmar Maurer [Thu, 12 Sep 2019 12:26:31 +0000 (14:26 +0200)]
add more debug messages

5 years agouse opaque type for handle, use reasonable names
Dietmar Maurer [Wed, 11 Sep 2019 12:49:43 +0000 (14:49 +0200)]
use opaque type for handle, use reasonable names

5 years agocreate debian package
Dietmar Maurer [Wed, 11 Sep 2019 10:41:56 +0000 (12:41 +0200)]
create debian package

5 years agoalso create staticlib
Dietmar Maurer [Wed, 11 Sep 2019 09:03:23 +0000 (11:03 +0200)]
also create staticlib

5 years agoremove catch_unwind for now, add async code for testing
Dietmar Maurer [Wed, 11 Sep 2019 09:02:41 +0000 (11:02 +0200)]
remove catch_unwind for now, add async code for testing

5 years agoinitial commit
Dietmar Maurer [Wed, 11 Sep 2019 08:35:05 +0000 (10:35 +0200)]
initial commit