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 |
|
Dietmar Maurer
|
46d5aa0a09
|
src/bin/proxmox-backup-client.rs: add restore flag --allow-existing-dirs
Not jet implemented ...
|
2019-07-29 12:49:15 +02:00 |
|
Dietmar Maurer
|
ea7a7ef299
|
src/bin/proxmox-backup-client.rs: fixup - correctly pass prune parameters
|
2019-07-27 09:24:23 +02:00 |
|
Dietmar Maurer
|
9fdc3ef46f
|
src/api2/admin/datastore.rs: pass backup type/id (group) to prune
IMHO, prune over all backup groups is a bit dangerous, considering
that more than one user might use a datastore.
|
2019-07-27 08:49:14 +02:00 |
|
Dietmar Maurer
|
7a6cfbd98d
|
src/bin/proxmox-backup-client.rs: correctly compute duration
And format time with SecondsFormat::Secs
|
2019-07-26 11:13:49 +02:00 |
|
Dietmar Maurer
|
bbf9e7e951
|
src/api2/backup.rs: cleanup schema definitions
|
2019-07-26 09:07:29 +02:00 |
|
Dietmar Maurer
|
ca5d0b61ca
|
src/api2/backup.rs: new required backup-time parameter
The client should pass the time as parameter.
|
2019-07-25 13:44:01 +02:00 |
|
Dietmar Maurer
|
e128d4e84f
|
src/api2/admin/datastore.rs: backup logs may not be written twice
|
2019-07-25 12:29:04 +02:00 |
|
Dietmar Maurer
|
ef3254c086
|
src/api2/admin/datastore.rs: use correct .blob extension for log
|
2019-07-25 12:22:50 +02:00 |
|
Dietmar Maurer
|
ec34f7eba0
|
src/bin/proxmox-backup-client.rs: implement upload-log
|
2019-07-25 12:18:15 +02:00 |
|
Dietmar Maurer
|
04512d3068
|
src/client/http_client.rs: allow upload with parameters
|
2019-07-25 12:17:35 +02:00 |
|
Dietmar Maurer
|
07ee223590
|
src/api2/admin/datastore.rs: add api to upload backup client log file
|
2019-07-25 12:15:30 +02:00 |
|
Dietmar Maurer
|
79679c2d6e
|
src/bin/proxmox-backup-client.rs: allow to uploag .log files (as binary blobs)
|
2019-07-24 13:07:02 +02:00 |
|
Dietmar Maurer
|
5b72c9b4f7
|
src/pxar/encoder.rs: add new skip_lost_and_found parameter
|
2019-07-24 12:21:25 +02:00 |
|
Dietmar Maurer
|
6c3c9bceb5
|
pxar_backup_stream.rs: limit lock scope to avoid blocking forever
|
2019-07-24 11:30:43 +02:00 |
|
Dietmar Maurer
|
684233aa3b
|
remove debug output
|
2019-07-24 09:33:52 +02:00 |
|
Dietmar Maurer
|
5be106eeae
|
src/client/pxar_backup_stream.rs: correctly pass errors to stream
|
2019-07-24 09:24:35 +02:00 |
|
Dietmar Maurer
|
2eeaacb974
|
src/pxar/encoder.rs: allow to pass list of devices
For better mount point include control...
|
2019-07-24 08:11:59 +02:00 |
|
Dietmar Maurer
|
fa5d6977dd
|
Revert previous, commit, use UTC RFC3339 without timezone (Z)
We now have human readable data/time, and names are still sortable.
|
2019-07-22 11:49:30 +02:00 |
|
Dietmar Maurer
|
10c2a21cfe
|
src/backup/backup_info.rs: use unix epoch timestamps instead of RFC3339
RFC3339 contains additional timezone information, but IMHO this just adds
more confusion. The API also uses timestamps.
|
2019-07-22 07:57:03 +02:00 |
|
Dietmar Maurer
|
40a13369a3
|
src/bin/pxar.rs - extract: print archive name with --verbose flag
|
2019-07-19 07:01:57 +02:00 |
|
Dietmar Maurer
|
bbd4365c61
|
src/bin/pxar.rs: remove wrong debug message
|
2019-07-19 07:00:17 +02:00 |
|
Dietmar Maurer
|
9aa3f68278
|
src/bin/proxmox-backup-client.rs: code cleanup
|
2019-07-18 13:16:32 +02:00 |
|
Dietmar Maurer
|
f6ede796ca
|
src/bin/proxmox-backup-client.rs - status: only print result[data]
|
2019-07-18 09:52:11 +02:00 |
|
Dietmar Maurer
|
15c847f136
|
src/api2/admin/datastore.rs: allow to list all snapshots
|
2019-07-18 09:11:43 +02:00 |
|
Dietmar Maurer
|
0f73ee73bb
|
src/cli/command.rs: set exit status on error
|
2019-07-17 13:40:10 +02:00 |
|
Dietmar Maurer
|
34a816cc7b
|
src/bin/proxmox-backup-client.rs: add output-fromat options, implement status api
|
2019-07-16 13:35:25 +02:00 |
|
Dietmar Maurer
|
0eecf38fbf
|
src/api2/admin/datastore.rs: add status api call
|
2019-07-16 13:34:38 +02:00 |
|
Dietmar Maurer
|
25500cfa26
|
src/cli/command.rs: add helpers/schema to format output
|
2019-07-16 11:46:58 +02:00 |
|
Dietmar Maurer
|
aad2ee4947
|
src/bin/pxar.rs: only print archive name in verbose mode
|
2019-07-16 08:38:02 +02:00 |
|
Dietmar Maurer
|
6b9a071028
|
src/bin/pxar.rs: add --verbose parameter to list (replace dump)
|
2019-07-16 08:31:40 +02:00 |
|
Dietmar Maurer
|
2665cef703
|
src/bin/proxmox-backup-client.rs: make repository parameter optional
And allow to read it from $ENV{PBS_REPOSITORY}
|
2019-07-16 07:30:04 +02:00 |
|
Dietmar Maurer
|
c8fc4fec8d
|
Cargo.toml: update to latest hyper version
Which already includes our path.
|
2019-07-15 13:37:27 +02:00 |
|
Dietmar Maurer
|
9eae781ab8
|
src/bin/pxar.rs - extract: allow to read from stdin
|
2019-07-05 12:39:25 +02:00 |
|
Dietmar Maurer
|
c6c9e093d0
|
src/bin/pxar.rs - dump: allow to read from stdin
|
2019-07-05 12:32:15 +02:00 |
|
Dietmar Maurer
|
bf1252619a
|
src/bin/proxmox-backup-client.rs - restore: allow to pipe output to stdout
|
2019-07-05 12:14:50 +02:00 |
|
Dietmar Maurer
|
f8100e9623
|
src/bin/proxmox-backup-client.rs: remove download cli, do everything in restore
|
2019-07-05 11:36:45 +02:00 |
|
Dietmar Maurer
|
f4bf7dfcc7
|
src/client/remote_chunk_reader.rs: implement simple caching
|
2019-07-05 10:42:46 +02:00 |
|
Dietmar Maurer
|
afb4cd28be
|
src/backup/fixed_index.rs: implement BufferedFixedReader
|
2019-07-05 09:19:56 +02:00 |
|
Dietmar Maurer
|
b46c3fad03
|
src/backup/fixed_index.rs: use correct size
We need to consider that the last chunk may have smaller size.
|
2019-07-04 15:13:22 +02:00 |
|
Dietmar Maurer
|
9cc88a7c00
|
src/client/http_client.rs - finish: hold reference to avoid early connection close
|
2019-07-04 15:11:23 +02:00 |
|
Dietmar Maurer
|
5e04ec707d
|
src/api2/backup/environment.rs: improve chunk alignment/size checks
|
2019-07-04 13:40:43 +02:00 |
|
Dietmar Maurer
|
a24e3993e0
|
src/backup/chunk_store.rs: coding style fixes
|
2019-07-04 11:39:10 +02:00 |
|
Dietmar Maurer
|
e4c2fbf170
|
src/backup/chunk_store.rs: additionally log chunk count
|
2019-07-04 11:27:11 +02:00 |
|
Dietmar Maurer
|
9850bcdf19
|
src/backup/chunk_store.rs: improve error reporting
|
2019-07-04 11:21:54 +02:00 |
|
Dietmar Maurer
|
99168f43e6
|
src/client/http_client.rs: s/set_recv_buf_size/set_recv_buffer_size/
|
2019-07-04 10:51:18 +02:00 |
|
Dietmar Maurer
|
c698636a5d
|
src/tools/fs.rs - read_dir: return nix::Result
|
2019-07-04 10:47:16 +02:00 |
|
Dietmar Maurer
|
a57360983b
|
src/backup/chunk_store.rs - get_chunk_iterator: return percentage inside iterator item
|
2019-07-04 09:26:44 +02:00 |
|
Dietmar Maurer
|
0f0a35b390
|
src/backup/dynamic_index.rs: lock file inside new, code cleanup
|
2019-07-04 08:17:30 +02:00 |
|
Dietmar Maurer
|
a7c72ad9eb
|
src/backup/fixed_index.rs - FixedIndexReader: remove reference to chunk store
|
2019-07-04 08:13:16 +02:00 |
|
Dietmar Maurer
|
a660978c9a
|
src/backup/datastore.rs: generic index_mark_used_chunks implementation, improve GC stats
|
2019-07-04 07:57:43 +02:00 |
|
Dietmar Maurer
|
86eda3eb0d
|
src/bin/proxmox-backup-client.rs: implement restore using BackupReader
|
2019-07-03 15:45:12 +02:00 |
|
Dietmar Maurer
|
b2a6897982
|
src/client/remote_chunk_reader.rs: remove dead code
|
2019-07-03 14:56:24 +02:00 |
|
Dietmar Maurer
|
7f99bf691a
|
src/client/remote_chunk_reader.rs: implement remote chunk reader
|
2019-07-03 14:39:13 +02:00 |
|
Dietmar Maurer
|
4f6aaf542c
|
src/client/http_client.rs: avoid compiler warning
|
2019-07-03 14:36:02 +02:00 |
|
Dietmar Maurer
|
3467cd91e9
|
src/client/http_client.rs: return Arc<Self>
Avoid to call canceller for each clone on drop ...
|
2019-07-03 14:26:07 +02:00 |
|
Dietmar Maurer
|
1e0784841c
|
src/backup/read_chunk.rs: use &mut self
|
2019-07-03 14:25:18 +02:00 |
|
Dietmar Maurer
|
80af046794
|
src/server/rest.rs: avoid unwrap
|
2019-07-03 12:00:43 +02:00 |
|
Dietmar Maurer
|
7fb4f5642a
|
src/server/rest.rs: log peer address, use hyper MakeService
|
2019-07-03 11:54:35 +02:00 |
|
Dietmar Maurer
|
6d1f61b208
|
use hyper/tokio-openssl instead of hyper/tokio-tls
This exposes the complete SSL setup. And download is much faster
now (600MB/s instead of 130MB/s)!
|
2019-07-02 13:36:28 +02:00 |
|
Dietmar Maurer
|
74d0a6bc23
|
src/bin/proxmox-backup-proxy.rs: set socket options for max. performance
|
2019-07-02 10:48:58 +02:00 |
|