]>
git.proxmox.com Git - proxmox-backup.git/log
Dietmar Maurer [Wed, 15 Apr 2020 09:30:47 +0000 (11:30 +0200)]
src/config/acl.rs: implement cached_config
Dietmar Maurer [Wed, 15 Apr 2020 08:09:18 +0000 (10:09 +0200)]
src/api2/node/dns.rs: use api macro (cleanup)
Dietmar Maurer [Wed, 15 Apr 2020 06:11:43 +0000 (08:11 +0200)]
acl: improve NoAccess handling
Aaron Lauterer [Tue, 14 Apr 2020 15:12:47 +0000 (17:12 +0200)]
Docu: first proof reading
This is a first proof reading of the currently existing documentation.
fixes (hopefully all):
* spelling
* grammar
Tries to increase readabilty and ease of understanding by simplifying
and restructing some sentences and paragraphs. Filler words which add
to the cognitive load but don't add anything are removed
(most notably `also`).
Dietmar Maurer [Wed, 15 Apr 2020 04:41:37 +0000 (06:41 +0200)]
pxar extract: remove pattern from arg_param, add target instead
Dietmar Maurer [Wed, 15 Apr 2020 04:31:46 +0000 (06:31 +0200)]
pxar create: remove exclude from arg_param
Dietmar Maurer [Tue, 14 Apr 2020 15:35:44 +0000 (17:35 +0200)]
fix previous commit - use result.
Dietmar Maurer [Tue, 14 Apr 2020 15:23:48 +0000 (17:23 +0200)]
acl update: check path
Dietmar Maurer [Tue, 14 Apr 2020 11:46:27 +0000 (13:46 +0200)]
acl update: check if user exist.
Dietmar Maurer [Tue, 14 Apr 2020 11:45:45 +0000 (13:45 +0200)]
src/config/user.rs: implement user config cache
Dietmar Maurer [Tue, 14 Apr 2020 06:40:53 +0000 (08:40 +0200)]
acl api: implement update
Dietmar Maurer [Mon, 13 Apr 2020 09:09:44 +0000 (11:09 +0200)]
start ACL api
Dietmar Maurer [Sun, 12 Apr 2020 15:13:53 +0000 (17:13 +0200)]
acl: use BTreeMap and BTreeSet to avoid sort()
Dietmar Maurer [Sun, 12 Apr 2020 11:06:50 +0000 (13:06 +0200)]
acl: implement roles(), add regression tests.
Dietmar Maurer [Sat, 11 Apr 2020 10:24:26 +0000 (12:24 +0200)]
add acl config
Dietmar Maurer [Thu, 9 Apr 2020 11:37:14 +0000 (13:37 +0200)]
gui: improve login view (use realms)
Dietmar Maurer [Thu, 9 Apr 2020 11:35:58 +0000 (13:35 +0200)]
PASSWORD_SCHEMA: set max_length to 1024 (for tickets)
Dietmar Maurer [Thu, 9 Apr 2020 11:35:08 +0000 (13:35 +0200)]
api: add default property to domain list
Dietmar Maurer [Thu, 9 Apr 2020 11:34:07 +0000 (13:34 +0200)]
api: correctly sort access subdirmap
Dietmar Maurer [Thu, 9 Apr 2020 09:36:45 +0000 (11:36 +0200)]
api: add list_domains
Dietmar Maurer [Thu, 9 Apr 2020 08:19:38 +0000 (10:19 +0200)]
api: move config/user to access/users, implement change_password
To make it similar to the pve api
Dietmar Maurer [Wed, 8 Apr 2020 09:57:14 +0000 (11:57 +0200)]
implement auth framework
Dietmar Maurer [Mon, 6 Apr 2020 10:09:27 +0000 (12:09 +0200)]
add user configiguration
Dietmar Maurer [Mon, 6 Apr 2020 07:50:40 +0000 (09:50 +0200)]
gc: log pending removals
Dietmar Maurer [Wed, 1 Apr 2020 12:14:44 +0000 (14:14 +0200)]
gui: preview prune selection
Dietmar Maurer [Wed, 1 Apr 2020 10:24:28 +0000 (12:24 +0200)]
prune api: return a usable result (we run synchronous anyways)
Dominik Csapak [Tue, 31 Mar 2020 06:42:05 +0000 (08:42 +0200)]
fix 'keep-monthly' field name
else the backend complains about a non-existant parameter
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Thu, 26 Mar 2020 17:01:04 +0000 (18:01 +0100)]
gui - DataStoreContent: avoid useless icons, display file path
Dietmar Maurer [Thu, 26 Mar 2020 16:23:51 +0000 (17:23 +0100)]
gui - DataStoreContent: move control code into controller (cleanup)
Dietmar Maurer [Thu, 26 Mar 2020 12:23:28 +0000 (13:23 +0100)]
gui: add prune dialog
Dietmar Maurer [Thu, 26 Mar 2020 11:54:20 +0000 (12:54 +0100)]
src/server/rest.rs: use correct formatter
Dietmar Maurer [Thu, 26 Mar 2020 10:17:15 +0000 (11:17 +0100)]
gui: cleanup DataStoreContent.js
Dietmar Maurer [Thu, 26 Mar 2020 07:38:35 +0000 (08:38 +0100)]
gui: display DataStoreConfig above DataStoreContent
Dietmar Maurer [Wed, 25 Mar 2020 14:17:28 +0000 (15:17 +0100)]
gui: use a tree panel for DataStoreContent
Dietmar Maurer [Wed, 25 Mar 2020 14:17:16 +0000 (15:17 +0100)]
depend on proxmox 0.1.20
Wolfgang Bumiller [Thu, 19 Mar 2020 09:05:08 +0000 (10:05 +0100)]
bump proxmox dependency to 0.1.19
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dominik Csapak [Wed, 18 Mar 2020 15:23:12 +0000 (16:23 +0100)]
add 'rsync' to build_depends
a 'make deb' fails without rsync installed (a pxar test needs it)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Wed, 18 Mar 2020 10:32:51 +0000 (11:32 +0100)]
rewrite future select in upgrade_to_backup_protocol using select macro
and handle all ok/err cases with at least logging
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Tue, 17 Mar 2020 14:54:02 +0000 (15:54 +0100)]
fix typo
s/Nuber/Number/
s/backups/Backups/
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Wolfgang Bumiller [Mon, 16 Mar 2020 13:54:23 +0000 (14:54 +0100)]
buildsys: add missing dependency
required for the docs built when building the deb packages
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dietmar Maurer [Tue, 3 Mar 2020 09:56:07 +0000 (10:56 +0100)]
Makefile - upload: upload to correct product repos
Dietmar Maurer [Tue, 3 Mar 2020 06:25:57 +0000 (07:25 +0100)]
bump version to 0.1.3-1
Dietmar Maurer [Mon, 2 Mar 2020 12:40:18 +0000 (13:40 +0100)]
TODO.rst: add Chores section
Dietmar Maurer [Mon, 2 Mar 2020 12:31:38 +0000 (13:31 +0100)]
delete unused src/storage/config.rs
Dietmar Maurer [Mon, 2 Mar 2020 11:52:11 +0000 (12:52 +0100)]
use SectionConfig from proxmox 0.1.18-1
Dietmar Maurer [Fri, 28 Feb 2020 11:25:09 +0000 (12:25 +0100)]
docs/administration-guide.rst: add small section to explain output-format
Dietmar Maurer [Fri, 28 Feb 2020 10:55:25 +0000 (11:55 +0100)]
docs/epilig.rst: remove fuse to avoid RST warnings
Dietmar Maurer [Fri, 28 Feb 2020 10:35:27 +0000 (11:35 +0100)]
TODO.rst: update
Dietmar Maurer [Fri, 28 Feb 2020 10:30:56 +0000 (11:30 +0100)]
remove unused qemu-io code
Dietmar Maurer [Fri, 28 Feb 2020 09:16:19 +0000 (10:16 +0100)]
depend on proxmox 0.1.17
Dietmar Maurer [Fri, 28 Feb 2020 08:09:22 +0000 (09:09 +0100)]
src/bin/proxmox-backup-client.rs - list_groups: render full snapshot path for last-backup column
Dietmar Maurer [Fri, 28 Feb 2020 07:52:12 +0000 (08:52 +0100)]
src/bin/proxmox-backup-manager.rs: avoid compiler warning
Christian Ebner [Thu, 27 Feb 2020 16:12:59 +0000 (17:12 +0100)]
catalog: shell: Use the new logic including resolving symlinks for catalog
and remove the old unused code.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 27 Feb 2020 16:12:58 +0000 (17:12 +0100)]
catalog: shell: introduce new CatalogPathStack to navigate in catalog shell.
This is basically a rewrite of the current logic for navigating the catalog,
but in addition allows to follow symlinks.
Following symlinks introduces the issue that generation of canonical paths
(needed in the actual pxar archive) is more complex, as symlinks have to be
resolved and loops avoided.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 27 Feb 2020 16:12:57 +0000 (17:12 +0100)]
catalog: add missing function documentation.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 27 Feb 2020 16:12:56 +0000 (17:12 +0100)]
catalog: introduce is_symlink() to check if DirEntry is a symlink.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 27 Feb 2020 16:12:55 +0000 (17:12 +0100)]
catalog: derive PartEq for equality checks of two DirEntry's.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 27 Feb 2020 14:56:28 +0000 (15:56 +0100)]
src/backup/dynamic_index.rs: Add LruCache for chunks.
In order to improve non-sequential reads of chunks as e.g. in FUSE.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 27 Feb 2020 13:33:33 +0000 (14:33 +0100)]
catalog: shell: Introduce clear-selected command.
'clear-selected' allows to clear all the match patterns from the list of
patterns for a subsequent restore.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 27 Feb 2020 13:22:04 +0000 (14:22 +0100)]
catalog: shell: Improve list-selected command.
'list-selected' now shows the filenames matching the patterns for a restore
instead of the patterns themselfs.
The patterns can be displayed by passing the '--pattern' flag.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 27 Feb 2020 13:09:56 +0000 (14:09 +0100)]
pxar::decoder: Return the correct symlink target size.
This eliminates also repeated calls to readlink in fuse, which occur when the
preallocated buffer to store the symlink target path is to small.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 27 Feb 2020 12:13:12 +0000 (13:13 +0100)]
proxmox-backup-client: expose exclude match patterns to cli.
Allows to pass exclude match patterns to the 'backup' command.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Dietmar Maurer [Fri, 28 Feb 2020 06:42:36 +0000 (07:42 +0100)]
src/bin/proxmox-backup-manager.rs: cleanup output handling
Dietmar Maurer [Fri, 28 Feb 2020 06:30:35 +0000 (07:30 +0100)]
src/tools/format.rs: move output rendering code to this new file
Dietmar Maurer [Thu, 27 Feb 2020 12:31:23 +0000 (13:31 +0100)]
src/bin/proxmox-backup-client.rs - list_groups: use format_and_print_result_full()
Depend on proxmox 0.1.16-1
Dietmar Maurer [Thu, 27 Feb 2020 11:41:15 +0000 (12:41 +0100)]
src/bin/proxmox-backup-client.rs: use new output formath helpers from proxmox 0.15.1-1
Dietmar Maurer [Thu, 27 Feb 2020 10:38:09 +0000 (11:38 +0100)]
src/bin/proxmox-backup-client.rs - status: improve alignment
Dietmar Maurer [Thu, 27 Feb 2020 10:31:05 +0000 (11:31 +0100)]
src/bin/proxmox-backup-client.rs - status: do not print header
Dietmar Maurer [Thu, 27 Feb 2020 10:27:44 +0000 (11:27 +0100)]
src/bin/proxmox-backup-client.rs - list_snapshots: use format_and_print_result_full()
Depend on proxmox v0.1.14.
Christian Ebner [Tue, 25 Feb 2020 17:45:28 +0000 (18:45 +0100)]
tools::lru_cache: Improve access() and insert() by using HashMap::entry().
entry() allows to lookup the position where and entry belongs and update/insert
it in the HashMap more efficiently than get_mut() and insert().
Details: https://gankra.github.io/blah/hashbrown-insert/
In addition, use the struct LinkedList and remove the outdated code.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Tue, 25 Feb 2020 17:45:27 +0000 (18:45 +0100)]
tools::lru_cache: Separate LinkedList part of LruCache into own struct.
In order to keep the separation more aparent and avoid mut borrow conflics.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Tue, 25 Feb 2020 17:45:26 +0000 (18:45 +0100)]
tools::lru_cache: Make key generic.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Wed, 26 Feb 2020 16:14:19 +0000 (17:14 +0100)]
catalog: shell: Improve output of stat command.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Tue, 25 Feb 2020 12:56:39 +0000 (13:56 +0100)]
Add zsh completion scripts
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Dietmar Maurer [Wed, 26 Feb 2020 12:49:47 +0000 (13:49 +0100)]
src/bin/proxmox-backup-client.rs - list_snapshot_files: use format_and_print_result_full()
Dietmar Maurer [Wed, 26 Feb 2020 12:29:00 +0000 (13:29 +0100)]
src/bin/proxmox-backup-client.rs - status: use format_and_print_result_full
Dietmar Maurer [Wed, 26 Feb 2020 10:37:38 +0000 (11:37 +0100)]
src/bin/proxmox-backup-manager.rs: use crate::tools::runtime::block_on()
Dietmar Maurer [Wed, 26 Feb 2020 09:38:55 +0000 (10:38 +0100)]
src/tools/runtime.rs: call OPENSSL_thread_stop to avoid race with openssl cleanup handlers
Dietmar Maurer [Tue, 25 Feb 2020 13:11:36 +0000 (14:11 +0100)]
src/client/backup_writer.rs: also print archive size
Wolfgang Bumiller [Tue, 25 Feb 2020 10:35:35 +0000 (11:35 +0100)]
cleanup unused module
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Christian Ebner [Thu, 20 Feb 2020 17:55:29 +0000 (18:55 +0100)]
docs: add documentation for pxar
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 20 Feb 2020 13:29:13 +0000 (14:29 +0100)]
pxar: Change text of warning for files matched by exclude patterns.
In addition to the .pxarexclude files, glob match patterns can be passed to pxar
also via cli parameters.
Therefore the warning is rephrased to be more ambiguous.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Dietmar Maurer [Mon, 24 Feb 2020 12:24:46 +0000 (13:24 +0100)]
src/client/backup_writer.rs: prefix upload stats with archive name
Dietmar Maurer [Mon, 24 Feb 2020 11:48:40 +0000 (12:48 +0100)]
src/client/backup_writer.rs: implement verbose options
Dietmar Maurer [Mon, 24 Feb 2020 10:33:00 +0000 (11:33 +0100)]
src/client/backup_writer.rs: reduce verbosity
Christian Ebner [Wed, 19 Feb 2020 15:36:59 +0000 (16:36 +0100)]
docs: fix typo
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Wed, 19 Feb 2020 15:32:39 +0000 (16:32 +0100)]
docs: Add documentation for .pxarexclude files
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Dietmar Maurer [Tue, 18 Feb 2020 12:16:35 +0000 (13:16 +0100)]
src/backup/backup_info.rs: fix SNAPSHOT_PATH_REGEX and GROUP_PATH_REGEX
Wolfgang Bumiller [Mon, 17 Feb 2020 08:48:22 +0000 (09:48 +0100)]
runtime: fix blocking strategy:
- do not "double"-block_in_place() (it may not be nested)
- do not call block_in_place() in non-worker threads
is_in_tokio() isn't sufficient, we need to actually know
that we're in a worker-thread, so we do this by remembering
that we're blocking.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Thu, 13 Feb 2020 07:56:37 +0000 (08:56 +0100)]
runtime: remove IN_TOKIO thread local variable
tokio now has Handle::try_current() allowing us to
generally check for a tokio runtime even if spawned by
someone else
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dietmar Maurer [Tue, 11 Feb 2020 11:06:02 +0000 (12:06 +0100)]
administration-guide.rst: documnet new PBS_FINGERPRINT env var
Dietmar Maurer [Tue, 11 Feb 2020 10:54:43 +0000 (11:54 +0100)]
src/client/http_client.rs: do not store fingerprints passed via options in cache
Dietmar Maurer [Tue, 11 Feb 2020 10:37:24 +0000 (11:37 +0100)]
src/client/http_client.rs: always convert fingerprint to lowercase
Dietmar Maurer [Tue, 11 Feb 2020 10:10:13 +0000 (11:10 +0100)]
src/client/http_client.rs: remove useless password_env
Dietmar Maurer [Tue, 11 Feb 2020 10:01:57 +0000 (11:01 +0100)]
src/bin/proxmox-backup-client.rs: allows to pass fingerprint via env vars
Thomas Lamprecht [Mon, 10 Feb 2020 13:43:26 +0000 (14:43 +0100)]
s/pbsbanner/proxmox-backup-banner/ + move to /usr/lib
We want to avoid pbs if possible and also avoid placing internal
binaries, not intended for human direct use, in /bin or /sbin paths.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 7 Feb 2020 17:30:41 +0000 (18:30 +0100)]
pbsbanner: use match and also return error
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 6 Feb 2020 21:08:07 +0000 (22:08 +0100)]
add login banner service
Modeled after the one from PVE, but using rust instead of perl for
resolving the nodename and writing to /etc/issue
Behavior differs a bit. We write all non-loopback addresses to this
file, as the gui accepts connections from them all, so limiting it to
the first one is not really sensible.
Further an error to resolve, or only getting loopback addresses won't
write out an empty /etc/issue file, but a note about the error at the
place where the address would be displayed.
Named it "pbsbanner", not "proxmox-backup-banner" as it's rather an
internal tool anyway and mirrors pvebanner, pmgbanner
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Christian Ebner [Tue, 4 Feb 2020 12:37:03 +0000 (13:37 +0100)]
catalog: shell: Allow two or more successive slashes in path.
Two or more successive slashes should be allowed and treated as a single slash.
We also do not treat two successive slashes at the beginning of a path any
different.
Details are found here:
https://pubs.opengroup.org/onlinepubs/
000095399 /basedefs/xbd_chap04.html#tag_04_11
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Christian Ebner [Mon, 3 Feb 2020 12:34:50 +0000 (13:34 +0100)]
pxar::fuse: cleanup: Remove unused code.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>