Dietmar Maurer
|
6a1cb69171
|
docs: improve introduction.rst
|
2019-11-16 11:43:14 +01:00 |
|
Dietmar Maurer
|
210cb53654
|
docs: enable sphinx todo items
|
2019-11-16 11:16:04 +01:00 |
|
Dietmar Maurer
|
c4f1b69f4e
|
docs: add sysadmin.rst, cleanups
|
2019-11-15 13:24:45 +01:00 |
|
Dietmar Maurer
|
cb01363cfa
|
docs: rename deployment-guide.rst -> administration-guide.rst
and join with admin-guide.rst
|
2019-11-15 12:35:31 +01:00 |
|
Dietmar Maurer
|
861f8b8f44
|
docs/conf.py: add exclude_pattern package-repositories.rst
The file is inlcuded with 'include' directive. Exclude it to avoid
avoid warning about duplicate label definition.
|
2019-11-15 11:55:31 +01:00 |
|
Dietmar Maurer
|
58ea88c8ab
|
docs: add more ...
|
2019-11-13 13:10:56 +01:00 |
|
Dietmar Maurer
|
780dd2b0a1
|
src/backup/catalog.rs: add some docs
|
2019-11-12 13:23:40 +01:00 |
|
Dietmar Maurer
|
6aa906b547
|
src/backup/catalog.rs - CatalogReader: verify magic number
|
2019-11-12 12:54:06 +01:00 |
|
Dietmar Maurer
|
2ec208aef5
|
src/backup/catalog.rs - CatalogReader::dump(): use root()
|
2019-11-12 12:47:21 +01:00 |
|
Dietmar Maurer
|
8f24a9ea18
|
src/backup/catalog.rs - Direntry::parse: abort if callback return false
|
2019-11-12 11:41:44 +01:00 |
|
Dietmar Maurer
|
7d017123fd
|
src/backup/catalog.rs: impl read_dir() and lookup(), refactor common code
|
2019-11-12 11:41:44 +01:00 |
|
Dietmar Maurer
|
dc9596de45
|
src/backup/catalog.rs: move CatalogEntryType from src/pxar/catalog.rs
|
2019-11-12 11:41:44 +01:00 |
|
Dietmar Maurer
|
55c0b3cc7c
|
src/backup/catalog.rs - DirEntry: factor out name attribute
And avoid allocations inside parse().
|
2019-11-12 11:41:44 +01:00 |
|
Dietmar Maurer
|
cd88ccae99
|
debian/control: build-depend on latexmk
|
2019-11-11 19:54:15 +01:00 |
|
Dietmar Maurer
|
022b8350d9
|
add license for docs (GFDL)
|
2019-11-11 19:45:44 +01:00 |
|
Dietmar Maurer
|
fdd471d590
|
docs/introduction.rst: Add License Section (AGPL3)
|
2019-11-11 19:21:27 +01:00 |
|
Dietmar Maurer
|
2501c57c2b
|
docs/introduction.rst: add feature Encryption, replace LZ4 with Zstandard
|
2019-11-11 19:07:35 +01:00 |
|
Dietmar Maurer
|
d2a8d597e4
|
introduction.rst: Add short Architecture section
|
2019-11-11 13:26:08 +01:00 |
|
Dietmar Maurer
|
7391b4cf71
|
package-repositories.rst: new file
|
2019-11-11 12:28:04 +01:00 |
|
Dietmar Maurer
|
028bd254ac
|
add manual page for proxmox-backup-manager
|
2019-11-11 09:17:55 +01:00 |
|
Dietmar Maurer
|
36d74cd633
|
debian packages: split package into client/server
|
2019-11-11 08:35:33 +01:00 |
|
Dietmar Maurer
|
f89359c2f3
|
src/backup/catalog.rs: clenup - use single impl block
|
2019-11-10 11:38:31 +01:00 |
|
Dietmar Maurer
|
e8d8fdc61d
|
src/backup/catalog.rs: remove unused code
|
2019-11-10 11:37:06 +01:00 |
|
Dietmar Maurer
|
c74c074bfd
|
src/backup/catalog.rs: write MAGIC at start of file
|
2019-11-10 11:36:45 +01:00 |
|
Dietmar Maurer
|
265664517a
|
src/backup/catalog.rs: new parse() helper
|
2019-11-09 14:37:33 +01:00 |
|
Dietmar Maurer
|
5d92935e03
|
src/backup/catalog.rs - dump_dir: make sure we parsed the whole data block
|
2019-11-09 13:21:20 +01:00 |
|
Dietmar Maurer
|
12a1975af9
|
src/backup/catalog.rs: store u64 compressed
This way catalogs get about 1/3 smaller.
|
2019-11-09 13:07:47 +01:00 |
|
Dietmar Maurer
|
bb19af7302
|
src/client/backup_reader.rs: factor out download_blob() helper
|
2019-11-08 13:16:41 +01:00 |
|
Dietmar Maurer
|
7205050059
|
src/client/backup_reader.rs: factor out download_fixed_index() helper
|
2019-11-08 12:51:52 +01:00 |
|
Dietmar Maurer
|
c3d84a2281
|
src/client/backup_reader.rs: factor out download_dynamic_index() helper
|
2019-11-08 12:51:52 +01:00 |
|
Dietmar Maurer
|
84677c7e8a
|
update toolchain to stable
|
2019-11-08 11:50:13 +01:00 |
|
Dietmar Maurer
|
89245fb530
|
renamed: src/backup/catalog_blob.rs -> src/backup/catalog.rs
|
2019-11-08 10:41:00 +01:00 |
|
Dietmar Maurer
|
bf6e321744
|
change catalog format, use dynamic index to store catalog.
In order to remove size restriction of a single blob.
|
2019-11-08 10:35:48 +01:00 |
|
Dietmar Maurer
|
e016f9ff2f
|
src/client/backup_writer.rs: rename force_close to cancel
And do not consume self.
|
2019-11-08 10:34:16 +01:00 |
|
Dietmar Maurer
|
0997967d65
|
do no restrict index names too much
|
2019-11-08 10:28:14 +01:00 |
|
Dietmar Maurer
|
62ee2eb405
|
avoid some clippy warnings
|
2019-10-26 11:42:05 +02:00 |
|
Dietmar Maurer
|
834a2f95a0
|
avoid some clippy warnings
|
2019-10-25 18:44:51 +02:00 |
|
Dietmar Maurer
|
f58f426e86
|
src/pxar/binary_search_tree.rs: allow(clippy::many_single_char_names)
|
2019-10-25 18:22:19 +02:00 |
|
Dietmar Maurer
|
11377a47bb
|
avoid some clippy warnings
|
2019-10-25 18:04:37 +02:00 |
|
Dietmar Maurer
|
9fe2f639b8
|
allow(clippy::cast_ptr_alignment)
|
2019-10-25 18:03:55 +02:00 |
|
Dietmar Maurer
|
cd69d36b45
|
src/backup/dynamic_index.rs: use write_all()
|
2019-10-25 17:22:41 +02:00 |
|
Dietmar Maurer
|
ffe171c5db
|
src/pxar/encoder.rs: avoid duplicate check for MAX_DIRECTORY_ENTRIES
Simply by reordering code.
|
2019-10-23 07:55:56 +02:00 |
|
Dietmar Maurer
|
920243b12d
|
pxar: simplify MatchPattern::to_bytes
|
2019-10-23 07:29:02 +02:00 |
|
Dietmar Maurer
|
a8f10f849e
|
src/bin/proxmox-backup-client.rs: fix parameters for get_encryption_key_password
|
2019-10-17 10:28:21 +02:00 |
|
Dietmar Maurer
|
649c5ee7b1
|
load_and_decrtypt_key: allow function closures to readf passphrase
|
2019-10-16 13:23:52 +02:00 |
|
Dietmar Maurer
|
60ffa9649c
|
src/backup/manifest.rs: fix property names (use '-' instead of '_')
|
2019-10-14 12:28:27 +02:00 |
|
Dietmar Maurer
|
4c9f753c56
|
src/backup/data_blob.rs: define create_zero_chunk as member function
and rename it to build_zero_chunk()
|
2019-10-14 10:58:26 +02:00 |
|
Dietmar Maurer
|
2745151d93
|
src/backup/data_blob.rs: add create_zero_chunk() helper
|
2019-10-14 10:44:46 +02:00 |
|
Dietmar Maurer
|
f06b820ac0
|
src/backup/manifest.rs: add verify_file
|
2019-10-13 10:09:12 +02:00 |
|
Dietmar Maurer
|
511a47bd73
|
cleanup
|
2019-10-13 09:39:21 +02:00 |
|
Dietmar Maurer
|
e17d5d864d
|
src/backup/manifest.rs: improve parser (try_from)
|
2019-10-13 08:39:49 +02:00 |
|
Dietmar Maurer
|
59e9ba01c6
|
src/backup/manifest.rs: new class to generate/parse index.json
|
2019-10-12 17:58:08 +02:00 |
|
Dietmar Maurer
|
ad6e5a6f51
|
rename INDEX_BLOB_NAME to MANIFEST_BLOB_NAME
|
2019-10-12 15:53:27 +02:00 |
|
Dietmar Maurer
|
296c50ba3d
|
src/client/backup_reader.rs: add download_manifest
Also add crypt_config as member variable.
|
2019-10-12 15:50:26 +02:00 |
|
Dietmar Maurer
|
0203fd1b72
|
set toolchain to beta
|
2019-10-12 14:08:33 +02:00 |
|
Dietmar Maurer
|
cf9271e27c
|
src/client/backup_writer.rs: move BackupClient code into extra file
And rename it to BackupWriter.
|
2019-10-12 13:53:11 +02:00 |
|
Dietmar Maurer
|
913acb41fd
|
src/client/backup_reader.rs: add documentation
|
2019-10-12 13:26:47 +02:00 |
|
Dietmar Maurer
|
9e490a7479
|
src/client/backup_reader.rs: split BackupReader code into separate file
|
2019-10-12 12:57:08 +02:00 |
|
Dietmar Maurer
|
fd04ca7a5a
|
src/bin/proxmox-backup-client.rs: pass verbose flag to dump_image
And print some useful status to stderr.
|
2019-10-09 12:04:02 +02:00 |
|
Dietmar Maurer
|
2c2097ee75
|
fix typo in error message
|
2019-10-07 12:48:56 +02:00 |
|
Dietmar Maurer
|
f7aa6f15d3
|
src/api2/reader.rs: use tokio::fs::read() to read file async
|
2019-10-07 12:24:06 +02:00 |
|
Dietmar Maurer
|
7123ff7d43
|
src/backup/data_blob.rs: avoid Arc<CryptConfig>
use simple reference instead.
|
2019-10-07 11:41:35 +02:00 |
|
Dietmar Maurer
|
4ee8f53d07
|
remove DataChunk file format - use DataBlob instead
|
2019-10-06 10:31:06 +02:00 |
|
Dietmar Maurer
|
c26d4b4573
|
cleanup: remove dead code
|
2019-10-05 16:10:41 +02:00 |
|
Dietmar Maurer
|
88892ea801
|
src/bin/proxmox-backup-client.rs: cleanup restore
- write directly to /dev/stdout (instead of using stdout line writer)
- avoid BufferedFixedReader
|
2019-10-05 11:52:12 +02:00 |
|
Dietmar Maurer
|
62e05bb3b3
|
src/client/remote_chunk_reader.rs: pass reference to download_chunk
Make sure we do not move data around.
|
2019-10-05 11:45:20 +02:00 |
|
Dietmar Maurer
|
c0b1b14c05
|
src/api2/reader.rs - download_chunk: use blocking io
Turns out to be twice as fast as tokio async io...
|
2019-10-05 11:41:19 +02:00 |
|
Dietmar Maurer
|
ff01c1e393
|
src/client/http_client.rs: store raw data/blob size in index.json
|
2019-10-02 10:54:06 +02:00 |
|
Dietmar Maurer
|
f16aea687a
|
src/client/http_client.rs: new helper send_upload_request()
|
2019-09-28 18:22:48 +02:00 |
|
Dietmar Maurer
|
9e603e254c
|
src/backup/fixed_index.rs: do not use offset for checksum
|
2019-09-23 11:30:20 +02:00 |
|
Dietmar Maurer
|
fb6026b66b
|
backup writer api: verify checksum inside close
|
2019-09-23 10:56:53 +02:00 |
|
Dietmar Maurer
|
c8c4051aa7
|
src/client/http_client.rs - H2Client::upload: fix parameter order
|
2019-09-20 13:19:55 +02:00 |
|
Dietmar Maurer
|
f011dba0f7
|
src/client/http_client.rs: add method parameter to H2 upload
|
2019-09-20 12:40:23 +02:00 |
|
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 |
|