]> git.proxmox.com Git - proxmox-backup.git/log
proxmox-backup.git
3 years agoui: add help tool to datastore panel
Dietmar Maurer [Tue, 10 Nov 2020 08:15:12 +0000 (09:15 +0100)]
ui: add help tool to datastore panel

3 years agoui: acl editor: disallow path editing for datastore permission views
Thomas Lamprecht [Tue, 10 Nov 2020 07:19:17 +0000 (08:19 +0100)]
ui: acl editor: disallow path editing for datastore permission views

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: fix widget height in dashboard
Dietmar Maurer [Tue, 10 Nov 2020 07:12:35 +0000 (08:12 +0100)]
ui: fix widget height in dashboard

3 years agoui: add link to www.proxmox.com for subscription plans
Dietmar Maurer [Tue, 10 Nov 2020 07:07:49 +0000 (08:07 +0100)]
ui: add link to www.proxmox.com for subscription plans

3 years agoui: ACL view: fix path filtering
Thomas Lamprecht [Tue, 10 Nov 2020 06:33:14 +0000 (07:33 +0100)]
ui: ACL view: fix path filtering

and add some comments about actual behavior of those config
properties..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: datastore dashboard: use gauge for usage, rework layout a bit
Thomas Lamprecht [Mon, 9 Nov 2020 18:26:13 +0000 (19:26 +0100)]
ui: datastore dashboard: use gauge for usage, rework layout a bit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: task summary: enable grid mouse track over
Thomas Lamprecht [Mon, 9 Nov 2020 18:25:43 +0000 (19:25 +0100)]
ui: task summary: enable grid mouse track over

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: tasl summary: add pointer cursor if clickable
Thomas Lamprecht [Mon, 9 Nov 2020 17:09:05 +0000 (18:09 +0100)]
ui: tasl summary: add pointer cursor if clickable

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: datastore summary: increase usage graph height
Thomas Lamprecht [Mon, 9 Nov 2020 16:50:46 +0000 (17:50 +0100)]
ui: datastore summary: increase usage graph height

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: datastore summary: add line chart icon to full-estimation
Thomas Lamprecht [Mon, 9 Nov 2020 16:48:53 +0000 (17:48 +0100)]
ui: datastore summary: add line chart icon to full-estimation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: datastore/content: improve action button layout
Thomas Lamprecht [Mon, 9 Nov 2020 16:45:03 +0000 (17:45 +0100)]
ui: datastore/content: improve action button layout

Fix font-size to 14px to improve font-awesome rendering, add some
slight margin between the buttons so that they are not glued
together, add a slight text-shadow on mouse over.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapt: allow changelog retrieval from enterprise repo
Stefan Reiter [Mon, 9 Nov 2020 09:35:28 +0000 (10:35 +0100)]
apt: allow changelog retrieval from enterprise repo

If a package is or will be installed from the enterprise repo, retrieve
the changelog from there as well (securely via HTTPS and authenticated
with the subcription key).

Extends the get_string method to take additional headers, in this case
used for 'Authorization'. Hyper does not have built-in basic auth
support AFAICT but it's simple enough to just build the header manually.

Take the opportunity and also set the User-Agent sensibly for GET
requests, just like for POST.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agoui: make Datastore clickable again
Dominik Csapak [Mon, 9 Nov 2020 15:01:30 +0000 (16:01 +0100)]
ui: make Datastore clickable again

by showing the previously added pbsDataStores panel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: add Panels necessary for Datastores Overview
Dominik Csapak [Mon, 9 Nov 2020 15:01:29 +0000 (16:01 +0100)]
ui: add Panels necessary for Datastores Overview

a panel for a single datastore that gets updated from an external caller
shows the usage, estimated full date, history and task summary grid

a panel that dynamically generates the panel above for each datastore

and a tabpanel that includes the panel above, as well as a global
syncview, verifiyview and aclview

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: TaskSummary: handle less defined parameters of tasks
Dominik Csapak [Mon, 9 Nov 2020 15:01:28 +0000 (16:01 +0100)]
ui: TaskSummary: handle less defined parameters of tasks

this makes it a little easier to provide good data, without
hardcoding all types in the source object

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: TaskSummary: add subPanelModal and datastore parameters
Dominik Csapak [Mon, 9 Nov 2020 15:01:27 +0000 (16:01 +0100)]
ui: TaskSummary: add subPanelModal and datastore parameters

in preparation for the per-datastore grid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: TaskSummary: move state/types/titles out of the controller
Dominik Csapak [Mon, 9 Nov 2020 15:01:26 +0000 (16:01 +0100)]
ui: TaskSummary: move state/types/titles out of the controller

it seems that under certain circumstances, extjs does not initialize
or remove the content from objects in controllers

move it to the view, were they always exist

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: make Sync/VerifyView and Edit usable without datastore
Dominik Csapak [Mon, 9 Nov 2020 15:01:25 +0000 (16:01 +0100)]
ui: make Sync/VerifyView and Edit usable without datastore

we want to use this panel again for a 'global' overview, without
any datastore preselected, so we have to handle that, and
adding a datastore selector in the editwindow

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: Utils: add parse_datastore_worker_id
Dominik Csapak [Mon, 9 Nov 2020 15:01:24 +0000 (16:01 +0100)]
ui: Utils: add parse_datastore_worker_id

to parse the datastore out of a worker_id
for this we need some regexes that are the same as in the backend

for now we only parse out the datastore, but we can extend this
in the future to parse relevant info (e.g. remote for syncs,
id/type for backups)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: refactor render_size_usage to Utils
Dominik Csapak [Mon, 9 Nov 2020 15:01:23 +0000 (16:01 +0100)]
ui: refactor render_size_usage to Utils

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: refactor render_estimate
Dominik Csapak [Mon, 9 Nov 2020 15:01:22 +0000 (16:01 +0100)]
ui: refactor render_estimate

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoapi2/node/tasks: add check_job_store and use it
Dominik Csapak [Mon, 9 Nov 2020 15:01:21 +0000 (16:01 +0100)]
api2/node/tasks: add check_job_store and use it

to easily check the store of a worker_id
this fixes the issue that one could not filter by type 'syncjob' and
datastore simultaneously

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: recommit onlinehelp
Thomas Lamprecht [Mon, 9 Nov 2020 15:35:57 +0000 (16:35 +0100)]
ui: recommit onlinehelp

now that the last commit fixed the title generation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoscanrefs: remove term prefix from title
Aaron Lauterer [Mon, 9 Nov 2020 14:59:37 +0000 (15:59 +0100)]
scanrefs: remove term prefix from title

It can happen, that a title is defined as term in the following way:
:term:`My title`

This patch checks for it and strips the leading part and the last `.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
3 years agoproxy: fix log message for auth log rotation
Thomas Lamprecht [Mon, 9 Nov 2020 15:34:03 +0000 (16:34 +0100)]
proxy: fix log message for auth log rotation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: admin/summary: add versions button/window
Thomas Lamprecht [Mon, 9 Nov 2020 15:33:22 +0000 (16:33 +0100)]
ui: admin/summary: add versions button/window

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi: node/apt: add versions call
Thomas Lamprecht [Mon, 9 Nov 2020 15:31:51 +0000 (16:31 +0100)]
api: node/apt: add versions call

very basic, based on API/concepts of PVE one.

Still missing, addint an extra_info string option to APTUpdateInfo
and pass along running kernel/PBS version there.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agowww: show more ACLs in datastore panel
Fabian Grünbichler [Mon, 9 Nov 2020 13:47:38 +0000 (14:47 +0100)]
www: show more ACLs in datastore panel

since just the ACLs defined on the exact datastore path don't give
anywhere near a complete picture of who has access to it.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoinstallation: minor wording fix
Dylan Whyte [Mon, 9 Nov 2020 12:51:37 +0000 (13:51 +0100)]
installation: minor wording fix

very minor but worthwhile edits

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agobackup-client: encryption: discuss paperkey command
Dylan Whyte [Mon, 9 Nov 2020 12:39:58 +0000 (13:39 +0100)]
backup-client: encryption: discuss paperkey command

adds a paragraph to the encryption section about
encoding the master key into a qr code for printing

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agofix bug #3121: forbid removing used reemotes
Dietmar Maurer [Mon, 9 Nov 2020 11:48:29 +0000 (12:48 +0100)]
fix bug #3121: forbid removing used reemotes

3 years agopxar: log when skipping mount points
Wolfgang Bumiller [Mon, 9 Nov 2020 11:41:31 +0000 (12:41 +0100)]
pxar: log when skipping mount points

Clippy complains about the number of paramters we have for
create_archive and it really does need to be made somewhat
less awkward and more usable. For now we just log to stderr
as we previously did. Added todo-comments for this.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoui: datastore content: ensure action column is wide enough
Thomas Lamprecht [Mon, 9 Nov 2020 11:31:12 +0000 (12:31 +0100)]
ui: datastore content: ensure action column is wide enough

with the "change owner" action added we now need more than the
default of 100 px, so increase to 120 px for now.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: token selector: use same layout as auth id selector
Thomas Lamprecht [Mon, 9 Nov 2020 11:24:54 +0000 (12:24 +0100)]
ui: token selector: use same layout as auth id selector

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: auth/token selector: tell ExtJS we injected data into the store
Thomas Lamprecht [Mon, 9 Nov 2020 11:21:02 +0000 (12:21 +0100)]
ui: auth/token selector: tell ExtJS we injected data into the store

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agotools apt: include package name in filter data
Thomas Lamprecht [Mon, 9 Nov 2020 07:55:08 +0000 (08:55 +0100)]
tools apt: include package name in filter data

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 0.9.7-1 v0.9.7
Thomas Lamprecht [Mon, 9 Nov 2020 06:37:05 +0000 (07:37 +0100)]
bump version to 0.9.7-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: align documentation style with sphinx/alabaster ones
Thomas Lamprecht [Sun, 8 Nov 2020 13:02:27 +0000 (14:02 +0100)]
prune sim: align documentation style with sphinx/alabaster ones

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: scroll navigation to current active section
Thomas Lamprecht [Sun, 8 Nov 2020 12:28:57 +0000 (13:28 +0100)]
docs: scroll navigation to current active section

Add a custom JavaScript file to all HTML rendered docs output.

For now it only hosts a small code snipped which gets the current
active section link and bring it into view.
Needs to be triggered after DOM is initially loaded (which is still
before *all* resources like images, iframes, ... are necessarily
loaded), else the query cannot work.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: slight layout adaptions
Thomas Lamprecht [Sun, 8 Nov 2020 12:14:55 +0000 (13:14 +0100)]
prune sim: slight layout adaptions

add some margin to the calendar table, to not make it seem glued to
the left and top, this follow what ExtJS does in general.

Further, adapt layout flex so that docs has 2/5 and calendar has 3/5
of space on small screens (e.g., 720p), makes it look much better
there.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: add some onlineHelp reference uses for pruning
Thomas Lamprecht [Sat, 7 Nov 2020 15:03:07 +0000 (16:03 +0100)]
ui: add some onlineHelp reference uses for pruning

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: expand prune section, mention simulator, add onlineHelp refs
Thomas Lamprecht [Sat, 7 Nov 2020 14:51:09 +0000 (15:51 +0100)]
docs: expand prune section, mention simulator, add onlineHelp refs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: make prune options panel scrollable
Thomas Lamprecht [Sat, 7 Nov 2020 13:33:12 +0000 (14:33 +0100)]
prune sim: make prune options panel scrollable

Else it's cutoff on 720p resolution

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: add daily 00:00 as predefined schedule in selector
Thomas Lamprecht [Sat, 7 Nov 2020 13:08:34 +0000 (14:08 +0100)]
prune sim: add daily 00:00 as predefined schedule in selector

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: allow simulating up to 5 years
Thomas Lamprecht [Sat, 7 Nov 2020 13:08:06 +0000 (14:08 +0100)]
prune sim: allow simulating up to 5 years

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: spell out PBS, add some flex to layout
Thomas Lamprecht [Sat, 7 Nov 2020 12:41:06 +0000 (13:41 +0100)]
prune sim: spell out PBS, add some flex to layout

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: fine tune calendar layout/style
Thomas Lamprecht [Sat, 7 Nov 2020 12:37:54 +0000 (13:37 +0100)]
prune sim: fine tune calendar layout/style

Avoid black on white, to much contrast hurts the eye, use a dark grey
instead.

Highlight Sundays, and show month boundaries explicitly with strong
dashed border.

Factor out some manual set styles to classes and use them instead,
decoupling logic and styling a bit more.

Use span elements for plain text stuff, which should not be a block
(e.g., div) element.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: enable calendar by default
Thomas Lamprecht [Sat, 7 Nov 2020 12:36:56 +0000 (13:36 +0100)]
prune sim: enable calendar by default

it has a really good non-intrusive layout now, so show it's glory by
default.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: do not continue with reload if we caught an exception
Thomas Lamprecht [Sat, 7 Nov 2020 12:35:56 +0000 (13:35 +0100)]
prune sim: do not continue with reload if we caught an exception

as we then try to dereference hours which is null, for example.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: set update button handler directly
Thomas Lamprecht [Sat, 7 Nov 2020 12:35:26 +0000 (13:35 +0100)]
prune sim: set update button handler directly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: factor out toggling color, and default to true
Thomas Lamprecht [Sat, 7 Nov 2020 12:34:20 +0000 (13:34 +0100)]
prune sim: factor out toggling color, and default to true

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: avoid unnecessary viewmodel formula
Thomas Lamprecht [Sat, 7 Nov 2020 12:33:07 +0000 (13:33 +0100)]
prune sim: avoid unnecessary viewmodel formula

we set a reference on the checkbox, so we get this for free

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: fix numberfield spinner scroll with firefox
Thomas Lamprecht [Sat, 7 Nov 2020 12:32:00 +0000 (13:32 +0100)]
prune sim: fix numberfield spinner scroll with firefox

copied over from widget toolkit

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: eslint fixes, do not define console
Thomas Lamprecht [Sat, 7 Nov 2020 12:31:09 +0000 (13:31 +0100)]
prune sim: eslint fixes, do not define console

really not required nowadays, and we do not use it anyway here..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoprune sim: improve documentation layout
Thomas Lamprecht [Sat, 7 Nov 2020 12:28:49 +0000 (13:28 +0100)]
prune sim: improve documentation layout

Better line height, some margin on the edges, and max width to avoid
very long lines on wide displays.

Avoid to much contrast by using black on white, use a very dark grey
instead.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: datastore: backup owner change: fix layout
Thomas Lamprecht [Fri, 6 Nov 2020 18:48:08 +0000 (19:48 +0100)]
ui: datastore: backup owner change: fix layout

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: move backup group owner changer into window folder
Thomas Lamprecht [Fri, 6 Nov 2020 18:47:00 +0000 (19:47 +0100)]
ui: move backup group owner changer into window folder

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: auth-id selector: validity, code-style and layout fixes
Thomas Lamprecht [Fri, 6 Nov 2020 18:46:08 +0000 (19:46 +0100)]
ui: auth-id selector: validity, code-style and layout fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: use AuthidSelector for selecting new owner
Fabian Grünbichler [Fri, 6 Nov 2020 12:01:58 +0000 (13:01 +0100)]
ui: use AuthidSelector for selecting new owner

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoui: use AuthidSelector for sync job owner
Fabian Grünbichler [Fri, 6 Nov 2020 12:01:57 +0000 (13:01 +0100)]
ui: use AuthidSelector for sync job owner

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoproxmox-backup-proxy: remove unnecessary alias
Dominik Csapak [Fri, 6 Nov 2020 10:03:38 +0000 (11:03 +0100)]
proxmox-backup-proxy: remove unnecessary alias

the basedir is already /usr/share/javascript/proxmox-backup/
so adding a subdir of that as alias is not needed

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: datastore: add option view tab
Thomas Lamprecht [Fri, 6 Nov 2020 16:51:52 +0000 (17:51 +0100)]
ui: datastore: add option view tab

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: add NotifyOptions edit window
Thomas Lamprecht [Fri, 6 Nov 2020 16:49:22 +0000 (17:49 +0100)]
ui: add NotifyOptions edit window

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: maintenance: document notifications
Thomas Lamprecht [Fri, 6 Nov 2020 16:41:11 +0000 (17:41 +0100)]
docs: maintenance: document notifications

can surely be improved, just to have anything..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: utils: add property format string helpers from PVE
Thomas Lamprecht [Fri, 6 Nov 2020 16:49:42 +0000 (17:49 +0100)]
ui: utils: add property format string helpers from PVE

slightly adapted, i.e., the delete_if_default helper always sets the
delete property to an array if not existing.

Also, filtering out undefined values when printing properties.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi: datastore: allow to set "verify-new" option over API
Thomas Lamprecht [Fri, 6 Nov 2020 13:08:01 +0000 (14:08 +0100)]
api: datastore: allow to set "verify-new" option over API

Until now, one could only set this by editing the configuration file
manually.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoRemove reference to backup@pam
Dietmar Maurer [Fri, 6 Nov 2020 15:32:35 +0000 (16:32 +0100)]
Remove reference to backup@pam

3 years agoAdd screenshots
Dylan Whyte [Fri, 6 Nov 2020 14:46:30 +0000 (15:46 +0100)]
Add screenshots

For:
- api tokens
- new user management interface
- updatae server administration

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agomaintenance: add verification and prune to section
Dylan Whyte [Fri, 6 Nov 2020 14:46:28 +0000 (15:46 +0100)]
maintenance: add verification and prune to section

Includes new screen shots of interface

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agoUpdate where to find certain items since GUI update
Dylan Whyte [Fri, 6 Nov 2020 14:46:27 +0000 (15:46 +0100)]
Update where to find certain items since GUI update

- Sync jobs in datastore
- "User management" is now section of Access Control

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agodatastore: description of new datastore view
Dylan Whyte [Fri, 6 Nov 2020 14:46:26 +0000 (15:46 +0100)]
datastore: description of new datastore view

- Add screenshots from new datastore view
- Add description of comment field in create datastore window
- Add description of each tab in the datastore panel
- Update instructions to add datastore from GUI

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agobackup-client: add section on change-owner command
Dylan Whyte [Fri, 6 Nov 2020 14:46:25 +0000 (15:46 +0100)]
backup-client: add section on change-owner command

Add section "Changing the Owner of a Backup Group"

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agoinstallation & gui: Formatting fixup
Dylan Whyte [Fri, 6 Nov 2020 14:46:24 +0000 (15:46 +0100)]
installation & gui: Formatting fixup

Fix some minor formatting errors in the docs

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agoVec::new is Vec's default default
Wolfgang Bumiller [Fri, 6 Nov 2020 13:55:34 +0000 (14:55 +0100)]
Vec::new is Vec's default default

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agoclient: properly complete new-owner
Fabian Grünbichler [Fri, 6 Nov 2020 13:44:44 +0000 (14:44 +0100)]
client: properly complete new-owner

with remote Authids, not local Userids.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agowww: add AuthidSelector
Fabian Grünbichler [Fri, 6 Nov 2020 12:01:56 +0000 (13:01 +0100)]
www: add AuthidSelector

similar to TokenSelector, but with different fields / mapping of data.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agotasks: allow access to job tasks
Fabian Grünbichler [Fri, 6 Nov 2020 10:23:09 +0000 (11:23 +0100)]
tasks: allow access to job tasks

if the user/token could have either configured/manually executed the
task, but it was either executed via the schedule (root@pam) or
another user/token.

without this change, semi-privileged users (that cannot read all tasks
globally, but are DatastoreAdmin) could schedule jobs, but not read
their logs once the schedule executes them. it also makes sense for
multiple such users to see eachothers manually executed jobs, as long as
the privilege level on the datastore (or remote/remote_store/local
store) itself is sufficient.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoverify: allow unprivileged access to admin API
Fabian Grünbichler [Fri, 6 Nov 2020 10:23:08 +0000 (11:23 +0100)]
verify: allow unprivileged access to admin API

which is the one used by the GUI.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoverify: fix unprivileged verification jobs
Fabian Grünbichler [Fri, 6 Nov 2020 10:23:07 +0000 (11:23 +0100)]
verify: fix unprivileged verification jobs

since the store is not a path parameter, we need to do manual instead of
schema checks. also dropping Datastore.Backup here

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoui: improve prune simulator layout
Dietmar Maurer [Fri, 6 Nov 2020 11:12:59 +0000 (12:12 +0100)]
ui: improve prune simulator layout

3 years agoinclude prune simulator in build
Fabian Ebner [Tue, 3 Nov 2020 14:28:42 +0000 (15:28 +0100)]
include prune simulator in build

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
3 years agocreate prune simulator
Fabian Ebner [Tue, 3 Nov 2020 14:28:41 +0000 (15:28 +0100)]
create prune simulator

A stand-alone ExtJS app that allows experimenting with different backup
schedules and prune parameters.

The HTML for the documentation was taken from the PBS docs and adapted to the
context of the simulator.

For performance reasons, the week table does not use
subcomponents, but raw HTML.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoui: require owner for sync jobs
Dietmar Maurer [Fri, 6 Nov 2020 07:07:02 +0000 (08:07 +0100)]
ui: require owner for sync jobs

3 years agoui: use pbsUserSelector for BackupGroupChangeOwner
Dietmar Maurer [Fri, 6 Nov 2020 06:40:09 +0000 (07:40 +0100)]
ui: use pbsUserSelector for BackupGroupChangeOwner

3 years agogui: Add button for changing backup group owner
Dylan Whyte [Tue, 3 Nov 2020 08:30:54 +0000 (09:30 +0100)]
gui: Add button for changing backup group owner

Extension of fix #2847

Adds an action button to the datastore content view,
to change the owner of a backup.

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agoget rid of backup@pam
Dietmar Maurer [Thu, 5 Nov 2020 13:03:15 +0000 (14:03 +0100)]
get rid of backup@pam

3 years agofixup: acutally commit all changes..
Thomas Lamprecht [Fri, 6 Nov 2020 07:24:30 +0000 (08:24 +0100)]
fixup: acutally commit all changes..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: move datastore related files into own folder
Thomas Lamprecht [Fri, 6 Nov 2020 07:11:06 +0000 (08:11 +0100)]
ui: move datastore related files into own folder

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agowww: add remote store selector
Fabian Grünbichler [Thu, 5 Nov 2020 11:12:24 +0000 (12:12 +0100)]
www: add remote store selector

(hopefully) improved upon NFS export selection in PVE

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoapi: refactor remote client and add remote scan
Fabian Grünbichler [Thu, 5 Nov 2020 11:12:23 +0000 (12:12 +0100)]
api: refactor remote client and add remote scan

to allow on-demand scanning of remote datastores accessible for the
configured remote user.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agotypes: extract DataStoreListItem
Fabian Grünbichler [Thu, 5 Nov 2020 11:12:22 +0000 (12:12 +0100)]
types: extract DataStoreListItem

for reuse in remote scan API call

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoconfig: make notify a property string
Dietmar Maurer [Thu, 5 Nov 2020 10:32:59 +0000 (11:32 +0100)]
config: make notify a property string

For example "gc=never,verify=always,sync=error".

3 years agotools/daemon: fix reload with open connections
Dominik Csapak [Wed, 4 Nov 2020 12:09:38 +0000 (13:09 +0100)]
tools/daemon: fix reload with open connections

instead of await'ing the result of 'create_service' directly,
poll it together with the shutdown_future

if we reached that, fork_restart the new daemon, and await
the open future from 'create_service'

this way the old process still handles open connections until they finish,
while we already start a new process that handles new incoming connections

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agopxar: more concise EOF handling
Wolfgang Bumiller [Thu, 5 Nov 2020 09:32:48 +0000 (10:32 +0100)]
pxar: more concise EOF handling

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agopxar/create: handle ErrorKind::Interrupted for file reads
Dominik Csapak [Thu, 5 Nov 2020 08:29:06 +0000 (09:29 +0100)]
pxar/create: handle ErrorKind::Interrupted for file reads

they are not an error and we should retry the read

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agopxar/create: fix endless loop for shrinking files
Dominik Csapak [Thu, 5 Nov 2020 08:17:43 +0000 (09:17 +0100)]
pxar/create: fix endless loop for shrinking files

when a file shrunk during backup, we endlessly looped, reading/copying 0 bytes
we already have code that handles shrunk files, but we forgot to
break from the read loop

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobump version to 0.9.6-1 v0.9.6
Thomas Lamprecht [Wed, 4 Nov 2020 18:13:04 +0000 (19:13 +0100)]
bump version to 0.9.6-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: sync jobs: add tooltip for remove vanished
Thomas Lamprecht [Wed, 4 Nov 2020 18:07:07 +0000 (19:07 +0100)]
ui: sync jobs: add tooltip for remove vanished

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: sync jobs: reorder fields
Thomas Lamprecht [Wed, 4 Nov 2020 18:05:46 +0000 (19:05 +0100)]
ui: sync jobs: reorder fields

group local ones togeteher on the left side, and source + schedule
on the right side.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: sync jobs: fix originalValue of owner and improve label
Thomas Lamprecht [Wed, 4 Nov 2020 18:04:42 +0000 (19:04 +0100)]
ui: sync jobs: fix originalValue of owner and improve label

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>