Dietmar Maurer
|
f357390c15
|
renamed: src/config/remotes.rs -> src/config/remote.rs
And use 'remote' instead of 'remotes' everywhere.
|
2020-01-16 14:32:06 +01:00 |
|
Dietmar Maurer
|
d2dd827877
|
src/backup/catalog.rs - SenderWriter: use tokio::task::block_in_place
Make sure we do not block the executor.
|
2020-01-16 14:24:15 +01:00 |
|
Dietmar Maurer
|
94609e2380
|
src/api2/pull.rs: use reference to remote configuration
|
2020-01-16 13:55:19 +01:00 |
|
Dietmar Maurer
|
625d19621f
|
src/client/remote_chunk_reader.rs: use tokio::task::block_in_place to avoid blocking
Else we block the current executor.
|
2020-01-16 13:55:19 +01:00 |
|
Dietmar Maurer
|
51697c283d
|
remove the rust-toolchain file
|
2020-01-16 10:45:46 +01:00 |
|
Dietmar Maurer
|
933687d959
|
set toolchain to system
|
2020-01-16 10:34:45 +01:00 |
|
Dietmar Maurer
|
3be839c61c
|
src/bin/proxmox-backup-manager.rs: add completion function for update commands
|
2020-01-15 12:42:13 +01:00 |
|
Dietmar Maurer
|
002a191abf
|
src/api2/config: check digest
|
2020-01-15 12:27:05 +01:00 |
|
Dietmar Maurer
|
347834df25
|
src/api2/config: correctly lock files
|
2020-01-15 11:57:12 +01:00 |
|
Dietmar Maurer
|
f3ec5dae7f
|
src/api2/config: improve api schema by adding return type
|
2020-01-14 14:55:58 +01:00 |
|
Dietmar Maurer
|
ddc526623f
|
src/bin/proxmox-backup-manager.rs: add datastore update cli
|
2020-01-14 14:47:26 +01:00 |
|
Dietmar Maurer
|
c5799e4043
|
src/api2/config/datastore.rs: improve api, implement update and read
|
2020-01-14 14:45:56 +01:00 |
|
Dietmar Maurer
|
08195ac823
|
src/api2/config/remotes.rs: improve api, implement update and read
|
2020-01-14 14:20:16 +01:00 |
|
Dietmar Maurer
|
16f04b9d79
|
src/section_config.rs: add lookup_json() helper
|
2020-01-14 14:19:22 +01:00 |
|
Dietmar Maurer
|
71805bb7ec
|
src/api2/config/remotes.rs: fix variable name -> s/remote/id/
|
2020-01-14 13:20:13 +01:00 |
|
Dietmar Maurer
|
d0187a51a9
|
src/section_config.rs - convert_to_array: optionally add digest
datastore::config() -> also return digest
remotes::config() -> also return digest
|
2020-01-14 12:57:03 +01:00 |
|
Dietmar Maurer
|
4566303b05
|
src/section_config.rs - write: improve error message
|
2020-01-14 12:02:46 +01:00 |
|
Dietmar Maurer
|
f51420ba1f
|
src/section_config.rs: do not allow control characters
|
2020-01-14 11:41:48 +01:00 |
|
Dietmar Maurer
|
7e7b781a18
|
src/api2/types.rs: also define PASSWORD_FORMAT and use it correctly
|
2020-01-14 11:32:02 +01:00 |
|
Dietmar Maurer
|
da4a15a351
|
src/api2/types.rs: define and use PASSWORD_REGEX
|
2020-01-14 11:22:42 +01:00 |
|
Dietmar Maurer
|
ff620a3d1a
|
src/api2/types.rs: add regression test for PROXMOX_USER_ID_SCHEMA
|
2020-01-13 17:26:43 +01:00 |
|
Dietmar Maurer
|
ae62c4fe59
|
src/api2/types.rs: fix regex patterns
|
2020-01-13 14:38:31 +01:00 |
|
Dietmar Maurer
|
163dc16c0b
|
src/api2/types.rs: define PROXMOX_AUTH_REALM_SCHEMA and PROXMOX_USER_ID_SCHEMA
And try to use nbew schemas with config api...
|
2020-01-13 14:18:19 +01:00 |
|
Dietmar Maurer
|
b25f313d66
|
src/api2/types.rs: define HOSTNAME_FORMAT, DNS_NAME_FORMAT and DNS_NAME_OR_IP_FORMAT
|
2020-01-13 13:10:52 +01:00 |
|
Dietmar Maurer
|
8aea35fcff
|
src/config/*: add #[serde(skip_serializing_if="Option::is_none")] to optinal comment
|
2020-01-13 12:14:14 +01:00 |
|
Dietmar Maurer
|
454c13edce
|
src/api2/types.rs: define SINGLE_LINE_COMMENT_SCHEMA
|
2020-01-13 12:02:13 +01:00 |
|
Dietmar Maurer
|
167971ed49
|
src/api2/types.rs: define REMOTE_ID_SCHEMA here
|
2020-01-13 11:47:07 +01:00 |
|
Dietmar Maurer
|
50af953e1b
|
src/section_config.rs: make set_data generic
|
2020-01-11 11:09:27 +01:00 |
|
Dietmar Maurer
|
688fbe07a1
|
cleanup config api, add remotes config cli interface
|
2020-01-11 10:42:09 +01:00 |
|
Dietmar Maurer
|
9e9bc6525e
|
src/config/datastore.rs: define DataStoreConfig using api macro
|
2020-01-11 09:18:42 +01:00 |
|
Dietmar Maurer
|
ca44172404
|
src/api2/config/remotes.rs: cleanup - avoid compiler warnings
|
2020-01-10 19:25:26 +01:00 |
|
Dietmar Maurer
|
141304d64e
|
src/api2/config/remotes.rs: new API to configure remotes
|
2020-01-10 13:28:15 +01:00 |
|
Dietmar Maurer
|
331b869d96
|
src/bin/proxmox-backup-manager.rs: implement shell completion for remote datastore name
|
2020-01-10 11:58:31 +01:00 |
|
Dietmar Maurer
|
eb506c830c
|
rename src/api2/sync.rs -> src/api2/pull.rs
Use "pull" instead of "sync", because this also indicates a
direction (like "sync from").
|
2020-01-10 11:15:16 +01:00 |
|
Dietmar Maurer
|
a81af92f9d
|
src/section_config.rs: implement generic lookup
|
2020-01-09 17:35:44 +01:00 |
|
Dietmar Maurer
|
0eb0e02451
|
src/bin/proxmox-backup-manager.rs: implement cli sync command
|
2020-01-09 14:52:29 +01:00 |
|
Dietmar Maurer
|
a575320657
|
src/config/remotes.rs: implement SectionConfig for remote hosts
|
2020-01-09 14:51:02 +01:00 |
|
Dietmar Maurer
|
71da3d6a1b
|
src/api2/types.rs: fix SnapshotListItem schema definition
|
2020-01-09 10:36:19 +01:00 |
|
Dietmar Maurer
|
de8ec04123
|
src/api2/sync.rs: implement remote sync
|
2020-01-08 14:03:52 +01:00 |
|
Dietmar Maurer
|
90ffc2446c
|
TODO.rst: add another todo
|
2020-01-08 13:28:39 +01:00 |
|
Dietmar Maurer
|
27c9affb23
|
src/bin/proxmox-backup-client.rs: cleanup - factor out api_datastore_latest_snapshot()
|
2020-01-07 15:18:36 +01:00 |
|
Dietmar Maurer
|
42af4b8f06
|
src/bin/proxmox-backup-client.rs: cleanup - factor out api_datastore_list_snapshots()
|
2020-01-07 15:07:57 +01:00 |
|
Dietmar Maurer
|
af9d4afc66
|
src/bin/proxmox-backup-client.rs: use SnapshotListItem
|
2020-01-07 13:25:25 +01:00 |
|
Dietmar Maurer
|
fc189b198c
|
src/api2/types.rs: define and use new api type SnapshotListItem
|
2020-01-07 12:52:52 +01:00 |
|
Dietmar Maurer
|
8f14e8fe4c
|
src/backup/backup_info.rs: implement last_successful_backup()
A backup is considered successful if there is a manifest file.
|
2020-01-06 11:35:22 +01:00 |
|
Dietmar Maurer
|
247a8ca5bb
|
src/backup/manifest.rs: impl TryFrom DataBlob
|
2020-01-05 16:28:18 +01:00 |
|
Dietmar Maurer
|
7759eef552
|
src/backup/datastore.rs: implement cleanup_backup_dir()
|
2020-01-05 15:15:12 +01:00 |
|
Dietmar Maurer
|
5e1d1bead1
|
src/client/backup_reader.rs: make compute_file_csum() public
|
2020-01-05 14:50:54 +01:00 |
|
Dietmar Maurer
|
3743dee6de
|
src/client/http_client.rs: allow access to AuthInfo fields
|
2020-01-05 10:31:19 +01:00 |
|
Dietmar Maurer
|
d6beed07b0
|
Cargo.toml: set proxmox version 0.1.0 (latest packaged version)
|
2020-01-04 16:01:03 +01:00 |
|
Dietmar Maurer
|
3758b398cd
|
src/backup/read_chunk.rs: add read_raw_chunk()
Allow to read chunk data without decoding.
|
2020-01-02 13:29:10 +01:00 |
|
Dietmar Maurer
|
2585a8a4e2
|
src/backup/chunk_store.rs: implement cond_touch_chunk()
This will be used by backup sync to test if a chunk already exists.
|
2020-01-02 13:26:28 +01:00 |
|
Dietmar Maurer
|
1cf5178ac5
|
src/backup/datastore.rs: new helper try_shared_chunk_store_lock()
|
2020-01-02 11:00:33 +01:00 |
|
Dietmar Maurer
|
1e8da0a789
|
src/backup/manifest.rs: new helper archive_type()
|
2019-12-31 15:23:41 +01:00 |
|
Dietmar Maurer
|
94f085fab5
|
src/bin/proxmox-backup-proxy.rs: remove unused use clause
|
2019-12-30 11:50:24 +01:00 |
|
Dietmar Maurer
|
e3a5651fcd
|
TODO.rst: add TODO file
|
2019-12-30 11:50:00 +01:00 |
|
Dietmar Maurer
|
8ec9e311e4
|
bump version to 0.1.2
|
2019-12-30 11:01:21 +01:00 |
|
Dietmar Maurer
|
22be470d90
|
src/bin/proxmox-backup-api.rs: create cert here
|
2019-12-27 13:44:21 +01:00 |
|
Dietmar Maurer
|
ca6119551d
|
src/client/http_client.rs - start_h2_connection: correctly return error during upgrade
|
2019-12-27 13:41:31 +01:00 |
|
Dietmar Maurer
|
3332a91426
|
bump version to 0.1.1
|
2019-12-27 11:51:22 +01:00 |
|
Dietmar Maurer
|
f8fd5095d8
|
src/bin/proxmox-backup-proxy.rs: create self signed cert at startup.
|
2019-12-27 11:21:32 +01:00 |
|
Dietmar Maurer
|
afddffc7ec
|
proxmox-backup-manager.rs: remove wrong fixme
|
2019-12-27 10:17:06 +01:00 |
|
Dietmar Maurer
|
e739a8d8b4
|
src/bin/proxmox-backup-manager.rs: impl. cert info
|
2019-12-23 13:06:43 +01:00 |
|
Dietmar Maurer
|
550e0d8870
|
src/bin/proxmox-backup-manager.rs: add cli to generate proxy certificate
Without calling external openssl binary.
|
2019-12-22 17:35:06 +01:00 |
|
Dietmar Maurer
|
58e1051bc9
|
DataStoreContent.js - render_backup_type: use better default
|
2019-12-22 11:09:30 +01:00 |
|
Dietmar Maurer
|
0771c57b87
|
DataStoreContent.js: use rowexpander plugin to display files
|
2019-12-22 11:06:03 +01:00 |
|
Dietmar Maurer
|
507c39c595
|
DataStoreContent.js: show backup groups (instead of snapshots).
|
2019-12-22 10:43:57 +01:00 |
|
Dietmar Maurer
|
5b32852266
|
revert Cargo.toml changes from commit f1baa7f4fc
|
2019-12-22 10:02:15 +01:00 |
|
Dietmar Maurer
|
bc9c306c13
|
NavigationTree.js: use other iconCls for datastores
|
2019-12-22 09:56:21 +01:00 |
|
Dietmar Maurer
|
ca23a97f0e
|
add datastore content panel
|
2019-12-20 12:47:04 +01:00 |
|
Dietmar Maurer
|
645995634a
|
src/api2/config/datastore.rs - create: pass uid and gid instead of User
|
2019-12-20 09:23:58 +01:00 |
|
Dietmar Maurer
|
e67770d496
|
src/backup/chunk_store.rs - create: pass User instead of CreateOptions
|
2019-12-20 09:11:40 +01:00 |
|
Dietmar Maurer
|
47d4712152
|
src/bin/proxmox-backup-manager.rs: add task management cli
|
2019-12-19 11:27:36 +01:00 |
|
Dietmar Maurer
|
d6c4a1198a
|
src/bin/proxmox-backup-client.rs: use async fn
|
2019-12-19 11:20:59 +01:00 |
|
Dietmar Maurer
|
f74a03da1f
|
remove tools::getpwnam_ugid, impl. crate::backup::backup_user()
And use new nix::unistd::User struct.
|
2019-12-19 10:20:13 +01:00 |
|
Dietmar Maurer
|
8bf4559b4e
|
update to nix 0.16
|
2019-12-19 09:29:44 +01:00 |
|
Dietmar Maurer
|
769f8c9998
|
src/bin/proxmox-backup-manager.rs: connect to daemon to execute GC
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
|
2019-12-19 08:45:27 +01:00 |
|
Dietmar Maurer
|
25de1c8005
|
src/client/backup_repo.rs: impl. new()
|
2019-12-19 08:44:38 +01:00 |
|
Dietmar Maurer
|
94913f35ca
|
src/bin/proxmox-backup-client.rs - start_garbage_collection: add missing output-format parameter
|
2019-12-19 07:57:53 +01:00 |
|
Dietmar Maurer
|
868c585219
|
src/backup/datastore.rs: avoid divide by zero
|
2019-12-19 07:14:23 +01:00 |
|
Dietmar Maurer
|
217170e11e
|
src/server/worker_task.rs: set worker thread name
This gives better logs on thread panic...
|
2019-12-19 07:07:39 +01:00 |
|
Dietmar Maurer
|
7e210bd0b4
|
src/backup/chunk_store.rs: create lock file with correct owner
|
2019-12-19 06:55:53 +01:00 |
|
Dietmar Maurer
|
bce023c57c
|
src/tools.rs: fix typo
|
2019-12-18 14:29:29 +01:00 |
|
Dietmar Maurer
|
7a550fdc76
|
Makefile: remove zstd-sys
|
2019-12-18 13:11:02 +01:00 |
|
Dietmar Maurer
|
3c50a9d82e
|
administration-guide.rst: fix catalog command syntax
|
2019-12-18 12:58:18 +01:00 |
|
Dietmar Maurer
|
0b97bc6158
|
src/backup/chunk_store.rs: use proxmox::tools::fs::create_path
|
2019-12-18 12:26:43 +01:00 |
|
Dietmar Maurer
|
f8ec1473be
|
src/config/datastore.rs: use backup gid instead of uid
|
2019-12-18 12:21:44 +01:00 |
|
Dietmar Maurer
|
a66e7920dc
|
src/api2/config/datastore.rs: set protected flags for create/delete API
|
2019-12-18 10:52:45 +01:00 |
|
Dietmar Maurer
|
f0db500808
|
src/api2/config/datastore.rs: fix api docu
|
2019-12-18 10:48:19 +01:00 |
|
Dietmar Maurer
|
424766bc3b
|
src/config/datastore.rs: change file owner/permissions
owner(root) => read and write
group(backup) => read only
|
2019-12-18 10:41:58 +01:00 |
|
Dietmar Maurer
|
81cc71c0d7
|
use proxmox-mini-journalreader to display syslog
|
2019-12-17 14:06:48 +01:00 |
|
Dietmar Maurer
|
20197f7cf5
|
src/api2/node/syslog.rs: use api macro
|
2019-12-17 13:26:49 +01:00 |
|
Dietmar Maurer
|
7f816d468a
|
install ext6-pbs.css
|
2019-12-17 11:34:29 +01:00 |
|
Dietmar Maurer
|
a47a02ae62
|
src/bin/proxmox-backup-client.rs: use #[api] macro
|
2019-12-16 13:49:18 +01:00 |
|
Dietmar Maurer
|
87c423751a
|
src/bin/proxmox-backup-client.rs: use ApiHandler::Async for prune and status
|
2019-12-16 11:00:43 +01:00 |
|
Dietmar Maurer
|
8a8a470316
|
src/bin/proxmox-backup-client.rs: use new ApiHandler::Async
|
2019-12-16 10:06:26 +01:00 |
|
Dietmar Maurer
|
b9799012cf
|
src/pxar/decoder.rs: require Send
|
2019-12-16 10:01:51 +01:00 |
|
Dietmar Maurer
|
bb084b9c91
|
api2: update for latest proxmox-api changes
- rename ApiFuture into ApiResponseFuture
- impl. ApiHandler::Async
|
2019-12-16 10:01:51 +01:00 |
|
Dietmar Maurer
|
236a396aa1
|
src/api2/admin/datastore.rs - prune: log retention options
|
2019-12-14 16:32:16 +01:00 |
|
Dietmar Maurer
|
503995c767
|
src/api2/admin/datastore.rs: fix prune worker id
|
2019-12-14 16:05:21 +01:00 |
|