Dietmar Maurer
|
792a70b9e1
|
src/client/http_client.rs: add content type parameter to H2 upload/requets_builder
|
2019-09-20 12:26:21 +02:00 |
|
Dietmar Maurer
|
a55b2975db
|
src/client/http_client.rs: cleanup (rename parameter)
|
2019-09-20 11:57:03 +02:00 |
|
Dietmar Maurer
|
32efac1cce
|
remove trailing whitespace
|
2019-09-20 08:12:31 +02:00 |
|
Dietmar Maurer
|
2aba16bde1
|
src/backup/data_chunk.rs: add into_raw()
|
2019-09-19 14:24:17 +02:00 |
|
Dietmar Maurer
|
15bb1bba89
|
BackupClient: add upload() function
|
2019-09-19 13:59:24 +02:00 |
|
Dietmar Maurer
|
6d4df36c3c
|
make download_chunk_list() public
|
2019-09-19 13:17:23 +02:00 |
|
Dietmar Maurer
|
cc2ce4a92f
|
src/client/http_client.rs: add password parameter to HttpClient::new()
|
2019-09-16 12:35:23 +02:00 |
|
Dietmar Maurer
|
4a7de56e2f
|
avoid injecting ENV vars from Makefile
So that we can run "cargo build" without setting vars manually.
|
2019-09-09 10:51:08 +02:00 |
|
Dietmar Maurer
|
54a5a885a3
|
src/client/http_client.rs: use async for upload_speedtest()
|
2019-09-06 08:55:47 +02:00 |
|
Dietmar Maurer
|
2a05048b93
|
src/client/http_client.rs: simplify send_request
|
2019-09-05 15:07:37 +02:00 |
|
Dietmar Maurer
|
9edd3bf1b8
|
src/client/http_client.rs: use async for h2api_response()
|
2019-09-05 14:56:52 +02:00 |
|
Dietmar Maurer
|
c18fddf80f
|
src/client/http_client.rs - download_chunk_list: simplify async code
|
2019-09-05 14:16:45 +02:00 |
|
Dietmar Maurer
|
44f59dc731
|
src/client/http_client.rs - H2Client: fix error message in download()
|
2019-09-05 13:26:06 +02:00 |
|
Dietmar Maurer
|
c2a5a9f353
|
src/client/http_client.rs: use async for download_chunk_list
|
2019-09-05 13:12:03 +02:00 |
|
Dietmar Maurer
|
2f831baec0
|
src/client/http_client.rs - BackupClient: use async
|
2019-09-05 12:55:22 +02:00 |
|
Dietmar Maurer
|
2a1e6d7dea
|
src/client/http_client.rs - BackupClient: use async
|
2019-09-05 11:42:12 +02:00 |
|
Dietmar Maurer
|
d4a085e564
|
src/client/http_client.rs - BackupReader: use async
|
2019-09-05 11:42:05 +02:00 |
|
Dietmar Maurer
|
9d456cf8ec
|
src/backup/catalog_blob.rs: use write_all() instead of write()
To correctly handle interrupted system calls.
|
2019-09-05 11:40:48 +02:00 |
|
Dietmar Maurer
|
1a7a0e74c0
|
src/client/http_client.rs: use async for more functions
|
2019-09-04 13:48:16 +02:00 |
|
Dietmar Maurer
|
96f5e80abb
|
src/client/http_client.rs: use async for login()
|
2019-09-04 10:01:46 +02:00 |
|
Dietmar Maurer
|
9d35dbbb8f
|
src/client/http_client.rs: use async for credentials
|
2019-09-04 09:57:29 +02:00 |
|
Dietmar Maurer
|
d2267b112d
|
src/bin/proxmox-backup-client.rs: verify blob/catlog checksums
|
2019-09-04 08:47:14 +02:00 |
|
Dietmar Maurer
|
a40220c056
|
src/bin/proxmox-backup-client.rs: code cleanup - factor out some functions
|
2019-09-03 13:31:13 +02:00 |
|
Dietmar Maurer
|
36493d4d7e
|
src/backup.rs: define INDEX_BLOB_NAME here
|
2019-09-03 13:15:44 +02:00 |
|
Dietmar Maurer
|
df65bd3da6
|
src/bin/proxmox-backup-client.rs - restore: verify checksums
|
2019-09-03 13:12:16 +02:00 |
|
Dietmar Maurer
|
0a51fe0011
|
src/backup/fixed_index.rs: new helper to compute checksum and file size
|
2019-09-03 13:11:45 +02:00 |
|
Dietmar Maurer
|
82c85a21a1
|
src/backup/dynamic_index.rs: new helper to compute checksum and file size
|
2019-09-03 13:11:09 +02:00 |
|
Dietmar Maurer
|
a3e032b754
|
src/client/http_client.rs: fix dynamic index checksum
|
2019-09-03 13:10:18 +02:00 |
|
Dietmar Maurer
|
02fcf372e4
|
rc/bin/proxmox-backup-client.rs - restore: always download index.json.blob
|
2019-09-02 14:14:32 +02:00 |
|
Dietmar Maurer
|
0d9862803b
|
src/bin/proxmox-backup-client.rs - reatore: avoid loading (large) blobs into memory
|
2019-09-02 14:13:31 +02:00 |
|
Dietmar Maurer
|
26c945d3a3
|
bump zstd-sys version
|
2019-09-02 11:40:22 +02:00 |
|
Dietmar Maurer
|
9d135fe617
|
src/backup/catalog_blob.rs: moved catalog impl. from pxar
And avoid loading catalog into memory.
|
2019-08-16 12:27:17 +02:00 |
|
Dietmar Maurer
|
71d08e00b7
|
src/backup/data_blob_reader.rs: fix compiler warning
|
2019-08-16 08:10:39 +02:00 |
|
Dietmar Maurer
|
a84ef4c205
|
src/bin/proxmox-backup-client.rs: avoid loading catalog into memory
We can use the new DataBlobReader instead.
|
2019-08-14 15:07:28 +02:00 |
|
Dietmar Maurer
|
b791804f4b
|
src/backup/data_blob_reader.rs: impl for Read instead of BufRead
|
2019-08-14 14:56:01 +02:00 |
|
Dietmar Maurer
|
39a4df61d6
|
improve docs
|
2019-08-14 14:08:27 +02:00 |
|
Dietmar Maurer
|
018d11bb84
|
src/backup/data_blob.rs: move parts into single files
|
2019-08-14 13:24:41 +02:00 |
|
Dietmar Maurer
|
e27c5a559f
|
src/backup/data_blob.rs: avoid excessive stack usage
|
2019-08-14 12:44:08 +02:00 |
|
Dietmar Maurer
|
c638542b4b
|
src/backup/file_formats.rs: moved header_size
|
2019-08-14 12:35:53 +02:00 |
|
Dietmar Maurer
|
50c0cdfd28
|
tests/blob_writer.rs: avoid stack overflow, simplify tests
|
2019-08-13 18:10:38 +02:00 |
|
Dietmar Maurer
|
6082216343
|
src/backup/data_blob.rs - CryptReader/CryptWriter: fix buffer size handling
|
2019-08-13 15:23:15 +02:00 |
|
Dietmar Maurer
|
548c9489d7
|
src/backup/data_blob.rs - DataBlobReader: impl compressed, encrypted blobs
|
2019-08-13 13:17:08 +02:00 |
|
Dietmar Maurer
|
2aa0bfff59
|
src/backup/data_blob.rs - DataBlobReader: implement reader for encrtypted blobs
|
2019-08-13 13:17:08 +02:00 |
|
Dietmar Maurer
|
e9a385a78e
|
src/backup/data_blob.rs - DataBlobReader: impl compressed, signed blobs
|
2019-08-12 17:47:25 +02:00 |
|
Dietmar Maurer
|
4bfa147eaf
|
src/backup/data_blob.rs - DataBlobReader: impl. reader for signed blobs
|
2019-08-12 17:41:25 +02:00 |
|
Dietmar Maurer
|
09785b2795
|
src/backup/data_blob.rs - DataBlobReader: start serious impl.
|
2019-08-12 17:20:41 +02:00 |
|
Dietmar Maurer
|
e7a2b7da08
|
tests/blob_writer.rs: test DataBlobWriter
|
2019-08-12 12:05:11 +02:00 |
|
Dietmar Maurer
|
a32bd8a516
|
src/backup/data_blob.rs - DataBlobWriter: fix decryption
|
2019-08-12 11:57:29 +02:00 |
|
Dietmar Maurer
|
5d15cb49b4
|
src/backup/data_blob.rs - compute_crc: start after blob header
|
2019-08-12 11:32:26 +02:00 |
|
Dietmar Maurer
|
1cbdfd19a2
|
src/backup/file_formats.rs; use const instzead of static
|
2019-08-12 11:20:21 +02:00 |
|
Dietmar Maurer
|
18be4ec24a
|
src/backup/data_blob.rs - DataBlobWriter: fix magic number for uncompressed blobs
|
2019-08-12 10:46:05 +02:00 |
|
Dietmar Maurer
|
5622a3fcdb
|
src/backup/data_blob.rs - DataBlobWriter: impl. compressed encrypted blobs
|
2019-08-12 10:16:42 +02:00 |
|
Dietmar Maurer
|
f4942e9ffd
|
src/backup/data_blob.rs - DataBlobWriter: impl. encrypted blobs
|
2019-08-12 10:08:00 +02:00 |
|
Dietmar Maurer
|
c57ec43a53
|
src/backup/crypt_config.rs: new helper data_crypter to get openssl Crypter
|
2019-08-12 10:06:51 +02:00 |
|
Dietmar Maurer
|
7776becf5d
|
src/backup/data_blob.rs - DataBlobWriter: impl. compressed signed blobs
|
2019-08-12 09:01:08 +02:00 |
|
Dietmar Maurer
|
706638f803
|
src/backup/data_blob.rs: impl. ChecksumWriter
To correctly compute crc,hmac of final data.
|
2019-08-12 08:53:53 +02:00 |
|
Dietmar Maurer
|
f796351c54
|
src/backup/data_blob.rs: impl. DataBlobWriter for authenticated blobs
|
2019-08-12 07:34:41 +02:00 |
|
Dietmar Maurer
|
cb0eea29d9
|
src/backup/crypt_config.rs: new method to get hmac signer
|
2019-08-12 07:33:15 +02:00 |
|
Dietmar Maurer
|
a762ce54fd
|
src/backup/data_blob.rs: make DataBlobWriter more generic
Allow to write compressed and uncompressed blobs.
|
2019-08-11 12:14:04 +02:00 |
|
Dietmar Maurer
|
1f26fdef19
|
src/backup/data_blob.rs: impl. simple reader/writer
To avoid loading blob into memory.
|
2019-08-11 11:32:36 +02:00 |
|
Dietmar Maurer
|
e240d8be0b
|
src/bin/proxmox-backup-client.rs: implement login/logout
|
2019-08-10 09:12:17 +02:00 |
|
Dietmar Maurer
|
02ba8a5d11
|
pxar: add fuse module and expose its pub functionality.
|
2019-08-09 16:45:13 +02:00 |
|
Dietmar Maurer
|
781ac11c6a
|
src/backup/data_blob.rs: define const MAX_BLOB_SIZE
|
2019-08-09 11:49:06 +02:00 |
|
Dietmar Maurer
|
9049a8cfe6
|
src/bin/proxmox-backup-client.rs: implement catalog command
|
2019-08-09 11:36:33 +02:00 |
|
Dietmar Maurer
|
7926a3a1cf
|
src/bin/proxmox-backup-client.rs: add archive filename to catalog
|
2019-08-09 11:05:56 +02:00 |
|
Dietmar Maurer
|
863be2e6e2
|
src/backup/data_blob.rs: allow largert blob sizes (128MB)
Need this for catalog files.
|
2019-08-09 10:22:56 +02:00 |
|
Dietmar Maurer
|
3fb53e07b4
|
src/bin/proxmox-backup-client.rs: avoid compiler warning
|
2019-08-09 10:22:32 +02:00 |
|
Dietmar Maurer
|
543a260ff9
|
src/bin/proxmox-backup-client.rs: new completion helper for snapshots
|
2019-08-09 10:08:45 +02:00 |
|
Dietmar Maurer
|
2761d6a4f3
|
src/pxar/encoder.rs: use BackupCatalogWriter
|
2019-08-09 09:46:49 +02:00 |
|
Dietmar Maurer
|
aea0815d32
|
src/pxar/catalog.rs: new catalog helper
|
2019-08-09 09:41:43 +02:00 |
|
Dietmar Maurer
|
977eeb24f6
|
src/bin/proxmox-backup-client.rs: avoid doubled file extensions (.blob.blob) in index.json
|
2019-08-07 10:23:08 +02:00 |
|
Dietmar Maurer
|
4af0ee055a
|
api: always use complete file names (including add exctensions)
|
2019-08-07 10:10:14 +02:00 |
|
Dietmar Maurer
|
d7c243977d
|
src/api2/admin/datastore.rs - list_snapshot_files: list all files
Add files that are not mentioned in index.json.
|
2019-08-07 09:16:14 +02:00 |
|
Dietmar Maurer
|
34066e2eeb
|
src/api2/backup/environment.rs - add_blob: always verify blob crc
|
2019-08-07 09:15:13 +02:00 |
|
Dietmar Maurer
|
eecb23560b
|
src/backup/data_blob.rs - encode: always compute crc
|
2019-08-07 08:30:27 +02:00 |
|
Dietmar Maurer
|
38a6cddad7
|
src/backup/backup_info.rs: add BackupInfo::new constructor
|
2019-08-07 08:27:52 +02:00 |
|
Dietmar Maurer
|
c4f025ebbf
|
src/bin/proxmox-backup-client.rs: fix remote filename completion
|
2019-08-07 06:48:18 +02:00 |
|
Dietmar Maurer
|
dbed4c8cd7
|
src/client/http_client.rs: compute checksums for chunk streams
|
2019-08-06 12:23:06 +02:00 |
|
Dietmar Maurer
|
bd15e96dd9
|
src/client/http_client.rs: minor code cleanup
|
2019-08-06 11:46:15 +02:00 |
|
Dietmar Maurer
|
f889b15867
|
src/backup/data_blob.rs: always compute crc
|
2019-08-06 11:42:14 +02:00 |
|
Dietmar Maurer
|
c807d231eb
|
src/client/http_client.rs: compute file checksums
|
2019-08-06 11:26:06 +02:00 |
|
Dietmar Maurer
|
a17a0e7a9f
|
src/api2/admin/datastore.rs: extract backup size from index.json
|
2019-08-06 10:56:21 +02:00 |
|
Dietmar Maurer
|
8c70e3eb18
|
src/api2/admin/datastore.rs - files: return data from index.json
|
2019-08-05 13:22:19 +02:00 |
|
Dietmar Maurer
|
17ff2cb0e5
|
tests/worker-task-abort.rs: use proxmox::tools::try_block
|
2019-08-05 10:04:12 +02:00 |
|
Dietmar Maurer
|
f69adc81a6
|
use new proxmox::tools::nodename
|
2019-08-03 17:06:23 +02:00 |
|
Dietmar Maurer
|
7f66c29e5c
|
remove src/tools/common_regex.rs, use proxmox::tools::common_regex instead
|
2019-08-03 16:44:31 +02:00 |
|
Dietmar Maurer
|
fd329bdcd7
|
remove src/tools/procfs.rs, use proxmox::sys::linux::procfs instead
|
2019-08-03 16:26:44 +02:00 |
|
Dietmar Maurer
|
779e4c90b1
|
src/tools/vec.rs: remove unused file
We already moved that to proxmox::tools
|
2019-08-03 16:11:47 +02:00 |
|
Dietmar Maurer
|
e18a6c9ee5
|
update to nix 0.14, use code from proxmox:tools
|
2019-08-03 13:05:38 +02:00 |
|
Dietmar Maurer
|
b86f263ced
|
use new proxmox::sys::linux::magic
|
2019-08-03 09:28:57 +02:00 |
|
Dietmar Maurer
|
b335f5b713
|
src/bin/proxmox-backup-client.rs: sign index.json
|
2019-08-02 10:00:15 +02:00 |
|
Dietmar Maurer
|
69ecd8d5b0
|
src/backup/data_blob.rs: implement signed blobs
|
2019-08-02 09:56:01 +02:00 |
|
Dietmar Maurer
|
93205f942a
|
src/backup/crypt_config.rs: new compute_auth_tag helper
|
2019-08-02 08:55:37 +02:00 |
|
Dietmar Maurer
|
c68d2170d5
|
src/backup/crypt_config.rs: fix typo
|
2019-08-02 08:29:40 +02:00 |
|
Dietmar Maurer
|
27e6e180b6
|
src/pxar/format_definition.rs - PxarAttributes: derive Default
And remove unnecessary impl new().
|
2019-08-02 07:16:10 +02:00 |
|
Dietmar Maurer
|
2c3891d1c3
|
src/bin/proxmox-backup-client.rs: upload backup index.json
The plan is to use this file to verify the backup content.
|
2019-08-01 12:39:02 +02:00 |
|
Dietmar Maurer
|
953d5e1531
|
src/tools.rs - file_set_contents_full: only call fchmod when we pass permissions
So that we can use it to write into /etc/pve/ (which does not support chmod).
|
2019-07-31 12:44:27 +02:00 |
|
Dietmar Maurer
|
cec17a3ec7
|
src/bin/proxmox-backup-client.rs - files: allow --repository parameter
|
2019-07-31 11:45:55 +02:00 |
|
Dietmar Maurer
|
52c171e49d
|
src/bin/proxmox-backup-client.rs: implement files command
|
2019-07-31 11:23:53 +02:00 |
|
Dietmar Maurer
|
43a406fd3f
|
src/bin/proxmox-backup-client.rs: supress useless output from prune command
|
2019-07-31 10:15:16 +02:00 |
|