Dietmar Maurer
ba37f3562d
src/backup/datastore.rs - open_with_path: use Path instead of str
2020-09-19 10:01:57 +02:00
Dietmar Maurer
fce4659388
src/backup/datastore.rs: new method open_with_path
...
To make testing easier.
2020-09-19 09:55:21 +02:00
Dietmar Maurer
0a15870a82
depend on proxmox 0.4.0
2020-09-19 06:40:44 +02:00
Dietmar Maurer
9cebc837d5
depend on pxar 0.6.1
2020-09-18 12:02:17 +02:00
Dietmar Maurer
1bc1d81a00
move compute_file_csum to src/tools.rs
2020-09-17 10:27:04 +02:00
Dietmar Maurer
dda72456d7
depend on proxmox 0.3.9
2020-09-17 08:49:50 +02:00
Dietmar Maurer
4d431383d3
src/backup/data_blob.rs: expose verify_crc again
2020-09-16 10:43:42 +02:00
Dietmar Maurer
d09db6c2e9
rename BackupDir::new_with_group to BackupDir::with_group
2020-09-15 09:40:03 +02:00
Dietmar Maurer
bc871bd19d
src/backup/backup_info.rs: new BackupDir::with_rfc3339
2020-09-15 09:34:46 +02:00
Dietmar Maurer
b11a6a029d
debian/control: update
2020-09-15 09:33:38 +02:00
Dietmar Maurer
6a7be83efe
avoid chrono dependency, depend on proxmox 0.3.8
...
- remove chrono dependency
- depend on proxmox 0.3.8
- remove epoch_now, epoch_now_u64 and epoch_now_f64
- remove tm_editor (moved to proxmox crate)
- use new helpers from proxmox 0.3.8
* epoch_i64 and epoch_f64
* parse_rfc3339
* epoch_to_rfc3339_utc
* strftime_local
- BackupDir changes:
* store epoch and rfc3339 string instead of DateTime
* backup_time_to_string now return a Result
* remove unnecessary TryFrom<(BackupGroup, i64)> for BackupDir
- DynamicIndexHeader: change ctime to i64
- FixedIndexHeader: change ctime to i64
2020-09-15 07:12:57 +02:00
Dietmar Maurer
58169da46a
www/OnlineHelpInfo.js: update for syncjobs
2020-09-12 15:10:08 +02:00
Dietmar Maurer
158f49e246
debian/control: update hyper dependency
2020-09-11 16:03:38 +02:00
Dietmar Maurer
3e4a67f350
bump version to 0.8.16-1
2020-09-11 15:55:37 +02:00
Dietmar Maurer
139bcedc53
benchmark: update TLS reference speed
...
We are now faster with recent patches.
2020-09-10 12:55:43 +02:00
Dietmar Maurer
1a9948a488
examples/upload-speed.rs: pass new benchmark parameter
2020-09-10 09:34:51 +02:00
Dietmar Maurer
04c2731349
bump version to 0.8.15-1
2020-09-10 09:26:16 +02:00
Dietmar Maurer
5656888cc9
verify: fix done count
...
We need to filter out benchmark group earlier
2020-09-10 09:06:33 +02:00
Dietmar Maurer
5fdc5a6f3d
verify: skip benchmark directory
2020-09-10 08:44:18 +02:00
Dietmar Maurer
14db8b52dc
src/backup/chunk_store.rs: use ? insteadf of unwrap
2020-09-10 06:37:37 +02:00
Dietmar Maurer
aadcc2815c
cleanup rename_corrupted_chunk: avoid duplicate format macro
2020-09-08 12:29:53 +02:00
Dietmar Maurer
32afd60336
src/tools/systemd/time.rs: derive Clone
2020-09-07 12:37:08 +02:00
Dietmar Maurer
02e47b8d6e
SYSTEMD_CALENDAR_EVENT_SCHEMA: fix wrong schema description
2020-09-07 09:07:55 +02:00
Dietmar Maurer
56b666458c
server/worker_task: fix 'unknown' status for some big task logs
...
when trying to parse the task status, we seek 8k from the end
which may be into the middle of a line, so the datetime parsing
can fail (when the log message contains ': ')
This patch does a fast search for the last line, and avoid the
'lines' iterator.
2020-09-04 10:41:13 +02:00
Dietmar Maurer
cd6ddb5a69
depend on proxmox 0.3.5
2020-09-04 08:11:53 +02:00
Dietmar Maurer
8317873c06
gc: improve percentage done logs
2020-09-02 10:04:18 +02:00
Dietmar Maurer
deef63699e
verify: also fail on server shutdown
2020-09-02 09:50:17 +02:00
Dietmar Maurer
63d9aca96f
verify: log progress
2020-09-02 07:43:28 +02:00
Dietmar Maurer
4f09d31085
src/backup/verify.rs: use global hashes (instead of per group)
...
This makes verify more predictable.
2020-09-01 13:33:04 +02:00
Dietmar Maurer
58d73ddb1d
src/backup/data_blob.rs: avoid useless &, data is already a reference
2020-09-01 12:56:25 +02:00
Dietmar Maurer
6b809ff59b
src/backup/verify.rs: use separate thread to load data
2020-09-01 12:56:25 +02:00
Dietmar Maurer
afe08d2755
debian/control: fix versions
2020-09-01 10:19:40 +02:00
Dietmar Maurer
a7bc5d4eaf
depend on proxmox 0.3.4
2020-08-28 06:32:33 +02:00
Dietmar Maurer
9624c5eecb
add note about TLS benchmark test.
2020-08-25 09:36:12 +02:00
Dietmar Maurer
36ea5df444
administration-guide.rst: remove debug output from code examples
2020-08-25 09:29:52 +02:00
Dietmar Maurer
88e28e15e4
debian/control: update for new pxar 0.4 dependency
2020-08-25 09:09:37 +02:00
Dietmar Maurer
399e48a1ed
bump version to 0.8.12-1
2020-08-25 08:57:12 +02:00
Dietmar Maurer
7ae571e7cb
verify: speedup - only verify chunks once
...
We need to do the check before we load the chunk.
2020-08-25 08:52:24 +02:00
Dietmar Maurer
4264c5023b
verify: sort backup groups
2020-08-25 08:38:47 +02:00
Dietmar Maurer
98161fddb5
cleanup last patch
2020-08-14 07:30:05 +02:00
Dietmar Maurer
639419b049
worker_task: new_thread() - remove unused tokio channel
2020-08-12 08:43:09 +02:00
Dietmar Maurer
e434258592
src/backup/backup_info.rs: remove BackupGroup lock()
...
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com >
2020-08-11 10:58:35 +02:00
Dietmar Maurer
3dc1a2d5b6
src/tools/fs.rs: new helper lock_dir_noblock
...
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com >
2020-08-11 10:57:48 +02:00
Dietmar Maurer
5d95558bae
Makefile: build target - do not fail if control file does not exist
...
This can happen if a previous build failed ...
2020-08-11 10:47:23 +02:00
Dietmar Maurer
747c3bc087
administration-guide.rst: move Encryption headline up one level
2020-08-07 07:10:12 +02:00
Dietmar Maurer
c23e257c5a
administration-guide.rst: fix headline (avoid compile error)
2020-08-07 06:56:58 +02:00
Dietmar Maurer
5e4b32706c
depend on proxmox 0.3.1
2020-08-02 12:02:21 +02:00
Dietmar Maurer
70030b43d0
list_snapshots: Returns new "comment" property (fisrt line from notes)
2020-07-31 11:34:42 +02:00
Dietmar Maurer
ff86ef00a7
cleanup: manifest is always CryptMode::None
2020-07-31 10:25:30 +02:00
Dietmar Maurer
912b3f5bc9
src/api2/admin/datastore.rs: add API to get/set Notes for backus
2020-07-31 10:17:35 +02:00
Dietmar Maurer
a4acb6ef84
lock_file: return std::io::Error
2020-07-31 08:53:00 +02:00
Dietmar Maurer
d7ee07d838
src/api2/backup/environment.rs: remove debug code
2020-07-31 07:48:53 +02:00
Dietmar Maurer
53705acece
src/api2/backup/environment.rs: remove debug code
2020-07-31 07:47:08 +02:00
Dietmar Maurer
c8fff67d88
finish_backup: add chunk_upload_stats to manifest
2020-07-31 07:45:47 +02:00
Dietmar Maurer
9fa55e09a7
finish_backup: test/verify manifest at server side
...
We want to make sure that the client uploaded a readable manifest.
2020-07-31 07:45:47 +02:00
Dietmar Maurer
e443902583
src/backup/datastore.rs: add helpers to load/store manifest
...
We want this to modify the manifest "unprotected" data, for example
to add upload statistics, notes, ...
2020-07-31 07:45:47 +02:00
Dietmar Maurer
1fc82c41f2
src/api2/backup.rs: aquire backup lock earlier in create_locked_backup_group()
2020-07-30 11:03:05 +02:00
Dietmar Maurer
2aaae9705e
src/backup/verify.rs: try to verify chunks only once
...
We use a HashSet (per BackupGroup) to track already verified chunks.
2020-07-29 13:29:13 +02:00
Dietmar Maurer
39f18b30b6
src/backup/data_blob.rs: new load_from_reader(), which verifies the CRC
...
And make verify_crc private for now. We always call load_from_reader() to
verify the CRC.
Also add load_chunk() to datastore.rs (from chunk_store::read_chunk())
2020-07-28 10:23:16 +02:00
Dietmar Maurer
bccdc5fa04
src/backup/manifest.rs: cleanup - again, avoid recursive call to write_canonical_json
...
And use re-borrow instead of dyn trait casting.
2020-07-27 10:31:34 +02:00
Dietmar Maurer
0bf7ba6c92
src/backup/manifest.rs: cleanup - avoid recursive call to write_canonical_json
2020-07-27 08:48:11 +02:00
Dietmar Maurer
f58233a73a
src/backup/data_blob_reader.rs: avoid unwrap() - return error instead
2020-07-10 11:28:19 +02:00
Dietmar Maurer
d86034afec
src/bin/proxmox_backup_client/catalog.rs: fix keyfile handling
2020-07-10 10:36:45 +02:00
Dietmar Maurer
62593aba1e
src/backup/manifest.rs: fix signature (exclude 'signature' property)
2020-07-10 10:36:45 +02:00
Dietmar Maurer
dde18bbb85
proxmox-backup-client benchmark: improve output format
2020-07-10 09:13:52 +02:00
Dietmar Maurer
a40e1b0e8b
src/server/rest.rs: avoid compiler warning
2020-07-10 09:13:52 +02:00
Dietmar Maurer
4327a8462a
proxmox-backup-client benchamrk: add more speed tests
2020-07-09 17:07:22 +02:00
Dietmar Maurer
e193544b8e
src/server/rest.rs: disable debug logs
2020-07-09 16:18:14 +02:00
Dietmar Maurer
323b2f3dd6
proxmox-backup-client benchmark: add --verbose flag
2020-07-09 16:16:39 +02:00
Dietmar Maurer
7884e7ef4f
bump version to 0.8.5-1
2020-07-09 15:35:07 +02:00
Dietmar Maurer
c8bed1b4d7
bump version to 0.8.4-1
2020-07-09 14:28:44 +02:00
Dietmar Maurer
e284073e4a
bump version to 0.8.3-1
2020-07-09 13:55:15 +02:00
Dietmar Maurer
4459ffe30e
src/backup/manifest.rs: add default toömake it compatible with older backus
2020-07-09 13:25:38 +02:00
Dietmar Maurer
d16ed66c88
bump version toö 0.8.2-1
2020-07-09 11:59:10 +02:00
Dietmar Maurer
dfa517ad6c
src/backup/manifest.rs: rename into_string -> to_string
...
And do not consume self.
2020-07-09 11:28:05 +02:00
Dietmar Maurer
8b2ad84a25
bump version to 0.8.1-1
2020-07-09 10:01:31 +02:00
Dietmar Maurer
3dacedce71
src/backup/manifest.rs: use serde_json::from_value() to deserialize data
...
Also modified from_data compute signature ditectly from json.
2020-07-09 09:50:28 +02:00
Dietmar Maurer
b53f637914
src/backup/manifest.rs: cleanup signature generation
2020-07-09 09:20:49 +02:00
Dietmar Maurer
152a926149
tests/blob_writer.rs: make it work again
2020-07-09 09:15:15 +02:00
Dietmar Maurer
2107a5aebc
src/backup/manifest.rs: include signature inside the manifest
...
This is more flexible, because we can choose what fileds we want to sign.
2020-07-08 16:23:26 +02:00
Dietmar Maurer
3638341aa4
src/backup/file_formats.rs: remove signed chunks
...
We can include signature in the manifest instead (patch will follow).
2020-07-08 16:23:26 +02:00
Dietmar Maurer
c1ff544eff
src/backup/crypt_config.rs - compute_digest: make it more secure
2020-07-08 12:53:04 +02:00
Dietmar Maurer
3bad3e6e52
src/client/backup_writer.rs - upload_stream: add crypt_mode
2020-07-08 10:43:28 +02:00
Dietmar Maurer
4e36f78438
src/backup/manifest.rs: support old encrypted property
...
Just to avoid confusion.
2020-07-08 08:52:27 +02:00
Dietmar Maurer
c950826e46
bump version to 0.8.0-1
2020-07-07 10:15:44 +02:00
Dietmar Maurer
f91d58e157
src/tools/runtime.rs: implement get_runtime_with_builder
2020-07-07 10:11:04 +02:00
Dietmar Maurer
1ff840ffad
bump version to 0.7.0-1
2020-07-07 07:40:22 +02:00
Dietmar Maurer
7443a6e092
src/client/remote_chunk_reader.rs: implement clone for RemoteChunkReader
2020-07-07 07:34:58 +02:00
Dietmar Maurer
9de69cdb1a
src/bin/proxmox_backup_client/catalog.rs: split out catalog code
2020-07-03 16:45:47 +02:00
Dietmar Maurer
4e717240bf
bump version to 0.6.0-1
2020-07-03 09:46:19 +02:00
Dietmar Maurer
e9764238df
make ReadChunk not require mutable self.
...
That way we can reduce lock contentions because we lock for much shorter
times.
2020-07-03 07:37:29 +02:00
Dietmar Maurer
cc7995ac40
src/bin/proxmox_backup_client/task.rs: split out task command
2020-07-02 18:04:29 +02:00
Dietmar Maurer
43abba4b4f
src/bin/proxmox_backup_client/mount.rs: split out mount code
2020-07-02 17:49:59 +02:00
Dietmar Maurer
caea8d611f
proxmox-backup-client: add benchmark command
...
This is just a start, We need to add more useful things here...
2020-07-02 14:01:57 +02:00
Dietmar Maurer
40b63186a6
DataStoreConfig.js: add verify button
2020-06-30 13:28:42 +02:00
Dietmar Maurer
8f6088c130
DataStoreContent.js: add verify button
2020-06-30 13:22:02 +02:00
Dietmar Maurer
2162e2c15d
src/api2/admin/datastore.rs: avoid slash in UPID strings
2020-06-30 13:11:22 +02:00
Dietmar Maurer
0d5ab04a90
bump version to 0.5.0-1
2020-06-29 13:01:11 +02:00
Dietmar Maurer
4059285649
fix typo
2020-06-29 12:59:25 +02:00
Dietmar Maurer
2e079b8bf2
partially revert commit 1f82f9b7b5
...
do it backwards compatible. Also, code was wrong because FixedIndexWriter
still computed old style csums...
2020-06-29 12:44:45 +02:00