]>
git.proxmox.com Git - proxmox-backup.git/log
Dietmar Maurer [Tue, 3 Dec 2019 07:18:52 +0000 (08:18 +0100)]
docs/introduction.rst: improve "Why Backup" section.
Dietmar Maurer [Mon, 2 Dec 2019 10:56:29 +0000 (11:56 +0100)]
use cli from proxmox::api
Dietmar Maurer [Mon, 2 Dec 2019 10:11:31 +0000 (11:11 +0100)]
src/cli/completion.rs - get_help_completion: fix for "help -" expansion
Dietmar Maurer [Mon, 2 Dec 2019 10:04:40 +0000 (11:04 +0100)]
src/bin/completion.rs: add echo command
Dietmar Maurer [Mon, 2 Dec 2019 09:57:19 +0000 (10:57 +0100)]
src/bin/completion.rs: use api macros
Dietmar Maurer [Mon, 2 Dec 2019 07:52:08 +0000 (08:52 +0100)]
src/cli/command.rs: use insert_help()
Dietmar Maurer [Mon, 2 Dec 2019 07:47:03 +0000 (08:47 +0100)]
src/cli/command.rs: cleanup, remove unused top_def parameter
Dietmar Maurer [Mon, 2 Dec 2019 07:31:03 +0000 (08:31 +0100)]
src/cli/completion.rs - get_simple_completion: remove all_arg_param parameters
Seems useless.
Dietmar Maurer [Sun, 1 Dec 2019 15:41:49 +0000 (16:41 +0100)]
src/cli: improve docs
Dietmar Maurer [Sun, 1 Dec 2019 11:54:41 +0000 (12:54 +0100)]
src/cli/command.rs: make set_help_context private - no need to expose
Dietmar Maurer [Sun, 1 Dec 2019 11:40:37 +0000 (12:40 +0100)]
src/cli/command.rs: improve help command description
Dietmar Maurer [Sun, 1 Dec 2019 10:42:17 +0000 (11:42 +0100)]
src/cli/completion.rs: moved all completion related code here
Dietmar Maurer [Sun, 1 Dec 2019 10:31:35 +0000 (11:31 +0100)]
src/cli/readline.rs: moved readline related code here
Dietmar Maurer [Sun, 1 Dec 2019 10:17:57 +0000 (11:17 +0100)]
src/cli/shellword.rs: moved shellword related code into this file
Dietmar Maurer [Sun, 1 Dec 2019 10:06:54 +0000 (11:06 +0100)]
src/cli/command.rs - get_nested_completion: allow fuzzy match
Dietmar Maurer [Sun, 1 Dec 2019 09:24:07 +0000 (10:24 +0100)]
src/cli/command.rs - get_nested_completion: return nothing if first argument does not match
Dietmar Maurer [Sun, 1 Dec 2019 09:18:47 +0000 (10:18 +0100)]
src/cli/command.rs: improve get_help_completion
Dietmar Maurer [Sun, 1 Dec 2019 08:51:05 +0000 (09:51 +0100)]
tests/verify-api.rs: remove unused use clause
Dietmar Maurer [Sun, 1 Dec 2019 08:42:51 +0000 (09:42 +0100)]
src/cli/command.rs: handle multilevel sub commands in help
Dietmar Maurer [Sat, 30 Nov 2019 14:43:44 +0000 (15:43 +0100)]
src/cli/command.rs: fix help completions
Dietmar Maurer [Sat, 30 Nov 2019 14:08:37 +0000 (15:08 +0100)]
src/bin/completion.rs: add history support
Dietmar Maurer [Sat, 30 Nov 2019 14:08:00 +0000 (15:08 +0100)]
src/cli/command.rs - handle_command: return Result instead of exit()
Dietmar Maurer [Sat, 30 Nov 2019 13:56:31 +0000 (14:56 +0100)]
src/cli.rs: add insert_help() method
Dietmar Maurer [Sat, 30 Nov 2019 11:57:02 +0000 (12:57 +0100)]
src/cli/command.rs: implement help
Wolfgang Bumiller [Fri, 29 Nov 2019 12:37:34 +0000 (13:37 +0100)]
cli/completion: use match statements and .contains()
`match` is a bit more readable than the if-else chains,
also replace
space_chars.iter().any(|s| c == *s)
with
space_chars.contains(&c)
which is also more readable.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dietmar Maurer [Fri, 29 Nov 2019 11:43:29 +0000 (12:43 +0100)]
remove shellwords crate
Dietmar Maurer [Fri, 29 Nov 2019 10:58:01 +0000 (11:58 +0100)]
use rustyline to replace readline
Wolfgang Bumiller [Fri, 29 Nov 2019 08:52:15 +0000 (09:52 +0100)]
whitespace fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 29 Nov 2019 08:51:27 +0000 (09:51 +0100)]
update api macro example usage
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dietmar Maurer [Wed, 27 Nov 2019 13:43:10 +0000 (14:43 +0100)]
src/cli/command.rs: cleanup, make handlers more generic
Wolfgang Bumiller [Wed, 27 Nov 2019 13:19:36 +0000 (14:19 +0100)]
update api macro invocation to new style
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Christian Ebner [Tue, 26 Nov 2019 13:32:48 +0000 (14:32 +0100)]
catalog_shell: fix several clippy warnings
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Wolfgang Bumiller [Wed, 27 Nov 2019 09:05:37 +0000 (10:05 +0100)]
first api macro usage test/example
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Christian Ebner [Tue, 26 Nov 2019 11:41:58 +0000 (12:41 +0100)]
catalog_shell: major refactoring of cli command definition and parsing
By changing the way shell commands are defined and parsed, this makes it more
straight forward to extend the current functionality.
The readline input is parsed based on the provided command definition and the
given parameters and options are passed to a command specific callback function.
In addition, the provided command definition including its description is used
to generate a help string to display.
The help command shows a list of all supported commands or the help string for
the provided command.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Tue, 26 Nov 2019 10:33:28 +0000 (11:33 +0100)]
catalog_shell: check and return on empty list in order to avoid division by zero
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Tue, 26 Nov 2019 10:33:27 +0000 (11:33 +0100)]
catalog_shell: do not restore full archive if no entries are selected for restore-selected
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Dietmar Maurer [Tue, 26 Nov 2019 11:11:21 +0000 (12:11 +0100)]
src/cli/format.rs: move doc generation code into extra file
Dietmar Maurer [Tue, 26 Nov 2019 10:16:46 +0000 (11:16 +0100)]
src/pxar/fuse.rs: add impl Context
Dietmar Maurer [Tue, 26 Nov 2019 10:08:55 +0000 (11:08 +0100)]
src/pxar/fuse.rs: move init and destroy into Session
Dietmar Maurer [Tue, 26 Nov 2019 10:04:46 +0000 (11:04 +0100)]
src/pxar/fuse.rs: cleanup - remove setup_session (moved into new)
Dietmar Maurer [Tue, 26 Nov 2019 09:56:41 +0000 (10:56 +0100)]
src/pxar/fuse.rs: rename from_decoder into new, new into from_path
Dietmar Maurer [Tue, 26 Nov 2019 09:45:11 +0000 (10:45 +0100)]
src/pxar/decoder.rs: use trait object as reader
So that the Decoder is no longer genertic.
Dietmar Maurer [Tue, 26 Nov 2019 08:56:48 +0000 (09:56 +0100)]
src/pxar/sequential_decoder.rs: remove callback from new()
And use an extra functzion set_callback() to configure that.
Also rewrite pxar/fuse.rs and implement a generic Session (will get
further cleanups with next patches).
Dietmar Maurer [Sun, 24 Nov 2019 10:00:53 +0000 (11:00 +0100)]
src/cli/command.rs: use static array for arg_param
Dietmar Maurer [Sat, 23 Nov 2019 08:03:21 +0000 (09:03 +0100)]
rename ApiHandler::Async into ApiHandler::AsyncHttp
Dietmar Maurer [Fri, 22 Nov 2019 17:44:14 +0000 (18:44 +0100)]
src/server/rest.rs: simplify code
Dietmar Maurer [Fri, 22 Nov 2019 16:24:16 +0000 (17:24 +0100)]
src/server/rest.rs: rename get_request_parameters_async to get_request_parameters
Dietmar Maurer [Fri, 22 Nov 2019 16:22:07 +0000 (17:22 +0100)]
src/server/rest.rs - only pass ObjectSchema to get_request_parameters_async()
Dietmar Maurer [Fri, 22 Nov 2019 12:02:05 +0000 (13:02 +0100)]
src/server/rest.rs: cleanup async code
Wolfgang Bumiller [Fri, 22 Nov 2019 08:29:16 +0000 (09:29 +0100)]
remove api_schema submodule
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dietmar Maurer [Fri, 22 Nov 2019 08:23:03 +0000 (09:23 +0100)]
move src/api_schema/config.rs -> src/server/config.rs
Dietmar Maurer [Fri, 22 Nov 2019 08:04:52 +0000 (09:04 +0100)]
src/api_schema/registry.rs: remove dead code
Dietmar Maurer [Fri, 22 Nov 2019 07:29:41 +0000 (08:29 +0100)]
add build depend for libreadline-dev
Christian Ebner [Thu, 21 Nov 2019 14:00:01 +0000 (15:00 +0100)]
src/bin/proxmox-backup-client.rs: impl shell subcommand for client
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 21 Nov 2019 11:47:51 +0000 (12:47 +0100)]
src/backup/catalog_shell.rs: impl shell to inspect and restore a snapshot via the catalog
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 21 Nov 2019 11:47:50 +0000 (12:47 +0100)]
src/backup/readline.rs: impl wrapper for GNU readline
In order to provide the context needed for tab completion via the readline
callback, the needed mut ref is passed via a thread local storage key.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 14 Nov 2019 16:42:18 +0000 (17:42 +0100)]
src/backup/catalog.rs: derive Clone for DirEntry and DirEntryAttribute
This is needed in order to explicitly clone the values when needed in the
catalog shell implementation.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 14 Nov 2019 16:42:17 +0000 (17:42 +0100)]
src/backup/catalog.rs: impl DirEntry::is_directory()
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 14 Nov 2019 16:42:16 +0000 (17:42 +0100)]
src/pxar/sequential_decoder.rs: create all directories in target path
Create the full target path and not fail if an intermediate directory does not
exist.
This is needed in order to restore multiple archives via the catalog, where the
target should further contain each archive name as subdir.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 14 Nov 2019 16:42:15 +0000 (17:42 +0100)]
src/pxar/decoder.rs: return also payload size in lookup
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Dietmar Maurer [Fri, 22 Nov 2019 05:59:37 +0000 (06:59 +0100)]
docs: add backup reader protocol
Dietmar Maurer [Fri, 22 Nov 2019 05:43:13 +0000 (06:43 +0100)]
tests/verify-api.rs: test lookup table sort order
Wolfgang Bumiller [Thu, 21 Nov 2019 13:53:15 +0000 (14:53 +0100)]
api/compat: remove remaining api_schema references
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 21 Nov 2019 13:36:28 +0000 (14:36 +0100)]
api/compat: drop more compat imports from api_schema.rs
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 21 Nov 2019 13:18:41 +0000 (14:18 +0100)]
api/compat: drop api_handler submodule
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 21 Nov 2019 13:17:36 +0000 (14:17 +0100)]
api/comapt: drop schema submodule
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 21 Nov 2019 13:16:37 +0000 (14:16 +0100)]
api: BoxFut -> ApiFuture
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 21 Nov 2019 13:14:54 +0000 (14:14 +0100)]
move api schema into proxmox::api crate
And leave some compat imports in api_schema.rs to get it to
build with minimal changes.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dietmar Maurer [Thu, 21 Nov 2019 12:10:49 +0000 (13:10 +0100)]
sort all property lookup tables
Required, because we use binary sreach to find items.
Dietmar Maurer [Thu, 21 Nov 2019 08:36:41 +0000 (09:36 +0100)]
use const api definitions
Dietmar Maurer [Sun, 17 Nov 2019 16:12:41 +0000 (17:12 +0100)]
add pxar.1 manual page
Dietmar Maurer [Sun, 17 Nov 2019 11:53:08 +0000 (12:53 +0100)]
docs/administration-guide.rs: add 'Backup Content' section.
Dietmar Maurer [Sun, 17 Nov 2019 08:28:38 +0000 (09:28 +0100)]
docs/administration-guide.rst: add section termonology
Dietmar Maurer [Sun, 17 Nov 2019 08:09:51 +0000 (09:09 +0100)]
docs/administration-guide.rs: move sysadmin.rst to the end
Dietmar Maurer [Sun, 17 Nov 2019 07:47:22 +0000 (08:47 +0100)]
docs/introduction.rst: improve section Architecture
Dietmar Maurer [Sat, 16 Nov 2019 10:50:56 +0000 (11:50 +0100)]
docs/introduction.rst: add todo items
Dietmar Maurer [Sat, 16 Nov 2019 10:43:14 +0000 (11:43 +0100)]
docs: improve introduction.rst
Dietmar Maurer [Sat, 16 Nov 2019 10:16:04 +0000 (11:16 +0100)]
docs: enable sphinx todo items
Dietmar Maurer [Fri, 15 Nov 2019 12:24:45 +0000 (13:24 +0100)]
docs: add sysadmin.rst, cleanups
Dietmar Maurer [Fri, 15 Nov 2019 11:34:50 +0000 (12:34 +0100)]
docs: rename deployment-guide.rst -> administration-guide.rst
and join with admin-guide.rst
Dietmar Maurer [Thu, 14 Nov 2019 10:14:09 +0000 (11:14 +0100)]
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.
Wolfgang Bumiller [Thu, 14 Nov 2019 10:20:05 +0000 (11:20 +0100)]
drop unused mio crate
we still depend on it through other crates, but we don't use
it directly
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 14 Nov 2019 10:19:43 +0000 (11:19 +0100)]
drop md5 crate dependency
we already depend on openssl which also provides md5
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 14 Nov 2019 09:18:31 +0000 (10:18 +0100)]
drop uuid crate dependency
proxmox::tools now has a Uuid module using the native
libuuid.
Adds build dependency: libuuid1 (which is a Pre-Depends of
util-linux, so always installed anyway).
Drops uuid + 16 more crate dependencies.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dietmar Maurer [Wed, 13 Nov 2019 12:10:56 +0000 (13:10 +0100)]
docs: add more ...
Christian Ebner [Tue, 12 Nov 2019 15:34:33 +0000 (16:34 +0100)]
catalog: fix issue with DirEntry start
start has to be the parent start - offset
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Dietmar Maurer [Tue, 12 Nov 2019 12:23:40 +0000 (13:23 +0100)]
src/backup/catalog.rs: add some docs
Dietmar Maurer [Tue, 12 Nov 2019 11:54:06 +0000 (12:54 +0100)]
src/backup/catalog.rs - CatalogReader: verify magic number
Dietmar Maurer [Tue, 12 Nov 2019 11:47:21 +0000 (12:47 +0100)]
src/backup/catalog.rs - CatalogReader::dump(): use root()
Dietmar Maurer [Tue, 12 Nov 2019 10:21:19 +0000 (11:21 +0100)]
src/backup/catalog.rs - Direntry::parse: abort if callback return false
Dietmar Maurer [Tue, 12 Nov 2019 10:15:05 +0000 (11:15 +0100)]
src/backup/catalog.rs: impl read_dir() and lookup(), refactor common code
Dietmar Maurer [Tue, 12 Nov 2019 09:14:33 +0000 (10:14 +0100)]
src/backup/catalog.rs: move CatalogEntryType from src/pxar/catalog.rs
Dietmar Maurer [Tue, 12 Nov 2019 08:25:39 +0000 (09:25 +0100)]
src/backup/catalog.rs - DirEntry: factor out name attribute
And avoid allocations inside parse().
Christian Ebner [Mon, 11 Nov 2019 13:19:54 +0000 (14:19 +0100)]
catalog: impl std::fmt::Display trait for CatalogEntryType
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Dietmar Maurer [Mon, 11 Nov 2019 18:54:15 +0000 (19:54 +0100)]
debian/control: build-depend on latexmk
Dietmar Maurer [Mon, 11 Nov 2019 18:45:44 +0000 (19:45 +0100)]
add license for docs (GFDL)
Dietmar Maurer [Mon, 11 Nov 2019 18:21:27 +0000 (19:21 +0100)]
docs/introduction.rst: Add License Section (AGPL3)
Dietmar Maurer [Mon, 11 Nov 2019 18:07:03 +0000 (19:07 +0100)]
docs/introduction.rst: add feature Encryption, replace LZ4 with Zstandard
Dietmar Maurer [Mon, 11 Nov 2019 12:26:08 +0000 (13:26 +0100)]
introduction.rst: Add short Architecture section
Dietmar Maurer [Mon, 11 Nov 2019 11:28:04 +0000 (12:28 +0100)]
package-repositories.rst: new file