]>
git.proxmox.com Git - proxmox-backup.git/log
Oguz Bektas [Thu, 4 Feb 2021 15:32:47 +0000 (16:32 +0100)]
ui: wrap regexText in gettext() for translations
also fix a small typo in recovery keys text
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Dominik Csapak [Thu, 4 Feb 2021 12:56:32 +0000 (13:56 +0100)]
ui: tape/ChangerStatus: add 'is labeled' column for tapes
so that a user can see if a tape in a library is not yet labeled
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 4 Feb 2021 12:56:31 +0000 (13:56 +0100)]
ui: tape/PoolConfig: add flex to columns
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 4 Feb 2021 12:56:30 +0000 (13:56 +0100)]
ui: tape/PoolEdit: add selector for encryption keys
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 4 Feb 2021 12:56:29 +0000 (13:56 +0100)]
ui: tape: add EncryptionPanel to add/remove encryption keys
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Thomas Lamprecht [Thu, 4 Feb 2021 15:06:38 +0000 (16:06 +0100)]
docs: index: update copyright years
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 4 Feb 2021 11:39:46 +0000 (12:39 +0100)]
bump version to 1.0.8-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 4 Feb 2021 11:27:13 +0000 (12:27 +0100)]
docs: tech overview: avoid 'we' and other small style fixes/additions
"we" should be avoided, it's never quite clear who is "we" in the
context here and it leads to some technical wrong meanings, e.g., we
(here assumed to be "we developers") do not read any backup data, the
Proxmox Backup client does.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 4 Feb 2021 11:05:27 +0000 (12:05 +0100)]
docs: tech overfiew: fix line length
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Fri, 11 Dec 2020 12:17:09 +0000 (13:17 +0100)]
docs: explain some technical details about datastores/chunks
adds explanations for:
* what datastores are
* their relation with snapshots/chunks
* basic information about chunk directory structures
* fixed-/dynamically-sized chunks
* special handling of encrypted chunks
* hash collision probability
* limitation of file-based backups
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dylan Whyte [Wed, 3 Feb 2021 13:15:57 +0000 (14:15 +0100)]
ui: task summary: add verification jobs to count
fixes a bug in which verification jobs were being excluded from the
verify task summary.
Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
Dietmar Maurer [Thu, 4 Feb 2021 09:15:18 +0000 (10:15 +0100)]
tape: MediaPool - replace use_offline_media with changer_name
This way, we can improve location_is_available, because we only
consider media from that changer as available.
Dietmar Maurer [Thu, 4 Feb 2021 08:39:16 +0000 (09:39 +0100)]
tape: improve code reuse
Dietmar Maurer [Thu, 4 Feb 2021 07:54:54 +0000 (08:54 +0100)]
tape: fix tests for BlockedReader
Dietmar Maurer [Thu, 4 Feb 2021 07:36:35 +0000 (08:36 +0100)]
tape: add multi volume reader/writer implementations
We currently do not use it. Added anaways, to show the possibility.
Dietmar Maurer [Thu, 4 Feb 2021 06:58:34 +0000 (07:58 +0100)]
tape: cleanup - move tape file readers/writers into src/tape/file_formats folder
Dietmar Maurer [Thu, 4 Feb 2021 06:05:43 +0000 (07:05 +0100)]
tape: allow to abort restore tasks
Dietmar Maurer [Thu, 4 Feb 2021 05:55:18 +0000 (06:55 +0100)]
cleanup: use task_log macro
Wolfgang Bumiller [Wed, 3 Feb 2021 14:09:19 +0000 (15:09 +0100)]
HttpsConnector: use hostname instead of URL again
fixes connecting to hosts with valid certificates without a
pinned fingerprint
this was accidentally changed in the tokio-1.0 updates
apparently
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Fixes: 0f860f712f86 ("tokio 1.0: update to new tokio-openssl interface")
Dietmar Maurer [Wed, 3 Feb 2021 12:15:18 +0000 (13:15 +0100)]
tape: BlockedReader - always consume EOF
Thomas Lamprecht [Wed, 3 Feb 2021 11:04:27 +0000 (12:04 +0100)]
update copyright years
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 1 Feb 2021 15:29:45 +0000 (16:29 +0100)]
bump version to 1.0.7-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 3 Feb 2021 09:33:32 +0000 (10:33 +0100)]
docs: tfa: add screenshots
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 3 Feb 2021 09:21:56 +0000 (10:21 +0100)]
ui: tfa: fix emptyText for password
One needs to enter their password, not the one from the user one
adds/deletes TFA.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 3 Feb 2021 09:36:11 +0000 (10:36 +0100)]
d/control: update
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dietmar Maurer [Wed, 3 Feb 2021 09:23:04 +0000 (10:23 +0100)]
tape: add media pool regression tests
Dietmar Maurer [Wed, 3 Feb 2021 08:34:31 +0000 (09:34 +0100)]
tape: add regresion test for media state
Dietmar Maurer [Wed, 3 Feb 2021 07:54:12 +0000 (08:54 +0100)]
tape: improve pmt command line completion
Dietmar Maurer [Wed, 3 Feb 2021 07:53:34 +0000 (08:53 +0100)]
depend on proxmox 0.10.1
Dominik Csapak [Tue, 2 Feb 2021 13:00:39 +0000 (14:00 +0100)]
ui: tape: add TapeInventory panel
since we do not show the tapes anymore in the BackupOverview, add
another panel where we can list the available tapes in the inventory
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Tue, 2 Feb 2021 13:00:38 +0000 (14:00 +0100)]
ui: tape: add Restore Window
in the BackupOverview, when a media-set is selected
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Tue, 2 Feb 2021 13:00:37 +0000 (14:00 +0100)]
ui: tape: TapeBackupWindow: add missing DriveSelector
and make it a bit wider
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Tue, 2 Feb 2021 13:00:36 +0000 (14:00 +0100)]
ui: tape: rework BackupOverview
instead of grouping by tape (which is rarely interesting),
group by pool -> group -> id -> mediaset
this way a user looking for a backup of specific vm can do just that
we may want to have an additional view here were we list all snapshots
included in the selected media-set ?
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Tue, 2 Feb 2021 13:00:35 +0000 (14:00 +0100)]
ui: refactor get_type_icon_cls
we need this later again
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Tue, 2 Feb 2021 13:00:34 +0000 (14:00 +0100)]
api2/types/tape/media: add media_set_ctime to MediaContentEntry
to be able to better sort in the ui
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Tue, 2 Feb 2021 13:38:15 +0000 (14:38 +0100)]
test: define tape tests as submodule
Dietmar Maurer [Tue, 2 Feb 2021 13:18:57 +0000 (14:18 +0100)]
tape: set correct ownership on lock file
Dietmar Maurer [Tue, 2 Feb 2021 12:43:16 +0000 (13:43 +0100)]
test: src/tape/inventory.rs - avoid chown when running tests
Dietmar Maurer [Tue, 2 Feb 2021 11:33:00 +0000 (12:33 +0100)]
fix debian/control
Dietmar Maurer [Tue, 2 Feb 2021 11:17:54 +0000 (12:17 +0100)]
test: add regression tests for tape inventory
Wolfgang Bumiller [Tue, 2 Feb 2021 10:02:08 +0000 (11:02 +0100)]
bump pxar to 0.8
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dietmar Maurer [Tue, 2 Feb 2021 07:58:02 +0000 (08:58 +0100)]
tape: add pmt stoptions/stsethoptions/stclearoptions
Dietmar Maurer [Tue, 2 Feb 2021 06:19:54 +0000 (07:19 +0100)]
tape: add pmt setblk
Dietmar Maurer [Tue, 2 Feb 2021 05:39:43 +0000 (06:39 +0100)]
thape: add read_tapedev_options, display driver options with status command
Thomas Lamprecht [Mon, 1 Feb 2021 18:46:07 +0000 (19:46 +0100)]
docs: add initial TFA documentation
better than nothing..
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dietmar Maurer [Mon, 1 Feb 2021 16:54:53 +0000 (17:54 +0100)]
cleanup: remove MT_ST_ prefix from SetDrvBufferOptions
Fabian Grünbichler [Mon, 1 Feb 2021 13:06:18 +0000 (14:06 +0100)]
paperkey: rustfmt
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Mon, 1 Feb 2021 13:06:17 +0000 (14:06 +0100)]
paperkey: simplify block generation
the chunk-iterator already does exactly what we want here..
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Mon, 1 Feb 2021 13:06:16 +0000 (14:06 +0100)]
paperkey: allow RSA keys without passphrase
some users might want to store the plain version of their master key for
long-term storage and rely on physical security instead of a passphrase
to protect the paper key.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Thomas Lamprecht [Mon, 1 Feb 2021 14:39:56 +0000 (15:39 +0100)]
ui: tfa: adapt low recovery key hint, drop unused other hint
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 1 Feb 2021 14:37:43 +0000 (15:37 +0100)]
ui: webauthn: add notes/warnings for better UX
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 1 Feb 2021 13:53:45 +0000 (14:53 +0100)]
ui: tfa: add auto-fill button for webAuthn setup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Wolfgang Bumiller [Mon, 1 Feb 2021 14:13:01 +0000 (15:13 +0100)]
change half-ticket time range from -120..240 to -60..600
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dietmar Maurer [Mon, 1 Feb 2021 11:39:50 +0000 (12:39 +0100)]
tape: do not use drive.open() within pmt
Do not fail if no media is loaded. Inportant for load command.
Dietmar Maurer [Mon, 1 Feb 2021 11:18:20 +0000 (12:18 +0100)]
tape: add pmt lock/unlock
Dietmar Maurer [Mon, 1 Feb 2021 11:17:43 +0000 (12:17 +0100)]
tape: fix tape alert flag decoding
Fabian Grünbichler [Mon, 1 Feb 2021 10:51:50 +0000 (11:51 +0100)]
bump apt-pkg-native dependency
our patches got applied upstream, and a release was cut, so we no longer
need to depend on a manually patched version here.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Thomas Lamprecht [Mon, 1 Feb 2021 10:48:33 +0000 (11:48 +0100)]
ui: tfa: improve button text for webAuthn
So users now what to press for starting off a webauthn challenge.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Fabian Grünbichler [Mon, 1 Feb 2021 10:02:55 +0000 (11:02 +0100)]
debcargo: fix maintainer directive"
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Dietmar Maurer [Mon, 1 Feb 2021 09:39:04 +0000 (10:39 +0100)]
tape: add pmt bsr/fsr
Dietmar Maurer [Mon, 1 Feb 2021 09:32:21 +0000 (10:32 +0100)]
tape: add pmt asf
Dietmar Maurer [Mon, 1 Feb 2021 09:21:25 +0000 (10:21 +0100)]
tape: pmt - fix count parameter schema
Dietmar Maurer [Mon, 1 Feb 2021 09:18:18 +0000 (10:18 +0100)]
tape: add pmt fsfm/bsfm, pass count as arg_param
Dietmar Maurer [Mon, 1 Feb 2021 09:01:06 +0000 (10:01 +0100)]
tape: ui - remove drive from pool config
Dominik Csapak [Mon, 1 Feb 2021 08:07:12 +0000 (09:07 +0100)]
garbage_collection: only ignore 'missing chunk' errors
with the fix for #2909 (improving handling missing chunks), we
changed from bailing to warning during a garbage collection when
updating the atime of a chunk.
but, updating the atime can not only fail when the chunk is missing,
but also on other occasions, e.g. no permissions or more importantly,
no space left on the device. in that case, the atime of a valid and used
chunk cannot be updated, and the second sweep of the gc will remove that chunk.
[0] is a real world example of that happening.
instead, only warn on really missin chunks, and bail on all other
errors.
0: https://forum.proxmox.com/threads/pbs-server-full-two-days-later-almost-empty.83274/
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Mon, 1 Feb 2021 08:14:28 +0000 (09:14 +0100)]
tape: remove drive from pool config
Dietmar Maurer [Sun, 31 Jan 2021 16:33:07 +0000 (17:33 +0100)]
tape: add pmt weof
Dietmar Maurer [Sun, 31 Jan 2021 16:02:55 +0000 (17:02 +0100)]
cleanup: avoid compiler warnings
Dietmar Maurer [Sun, 31 Jan 2021 16:00:15 +0000 (17:00 +0100)]
tape: add pmt bsf
Dietmar Maurer [Sun, 31 Jan 2021 15:49:48 +0000 (16:49 +0100)]
tape: add pmt fsf
Dietmar Maurer [Sun, 31 Jan 2021 15:34:10 +0000 (16:34 +0100)]
tape: add pmt erase
Dietmar Maurer [Sun, 31 Jan 2021 15:19:53 +0000 (16:19 +0100)]
tape: add pmt command line tool
Experimental, not installed by now.
Dietmar Maurer [Sat, 30 Jan 2021 10:48:49 +0000 (11:48 +0100)]
postinst: add user backup to group tape
So that it is possible to access tape and changer devcies.
Dietmar Maurer [Sat, 30 Jan 2021 08:36:54 +0000 (09:36 +0100)]
tape: API type cleanup, use serde flatten to derive types
Dietmar Maurer [Sat, 30 Jan 2021 07:03:17 +0000 (08:03 +0100)]
tape: move scan_drives API code to correct file
Dietmar Maurer [Fri, 29 Jan 2021 16:06:53 +0000 (17:06 +0100)]
ui: tape/ChangerStatus - use POST for barcode-label-media
Dominik Csapak [Fri, 29 Jan 2021 13:57:52 +0000 (14:57 +0100)]
ui: tape/ChangerStatus: add missing tooltips
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Fri, 29 Jan 2021 13:57:51 +0000 (14:57 +0100)]
ui: tape: change wrong window title
this is the 'status' msgbox not the label information
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Fri, 29 Jan 2021 13:57:50 +0000 (14:57 +0100)]
ui: tape/ChangerStatus: add import action for import/export slots
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Fri, 29 Jan 2021 13:57:49 +0000 (14:57 +0100)]
ui: tape: add Changer config grid
analogous to the drive grid
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Fri, 29 Jan 2021 10:49:11 +0000 (11:49 +0100)]
tape: proxmox-tape - use API instead of direct functions calls
Dietmar Maurer [Fri, 29 Jan 2021 10:21:57 +0000 (11:21 +0100)]
tape: proxmox-tape inventory: call API
Dietmar Maurer [Fri, 29 Jan 2021 09:50:11 +0000 (10:50 +0100)]
tape: proxmox-tape - use API instead of direct functions calls
Dietmar Maurer [Fri, 29 Jan 2021 09:10:04 +0000 (10:10 +0100)]
cleanup: factor out common client code to view task log/result
Dietmar Maurer [Fri, 29 Jan 2021 08:23:39 +0000 (09:23 +0100)]
tape: improve backup task abort behaviour
Dietmar Maurer [Fri, 29 Jan 2021 08:22:37 +0000 (09:22 +0100)]
worker_task: log something when we receive an abort request
Dietmar Maurer [Fri, 29 Jan 2021 08:07:55 +0000 (09:07 +0100)]
tape: make it possible to abort tape backup tasks (check_abort)
Also use task_log makro instead of worker.log.
Dietmar Maurer [Fri, 29 Jan 2021 08:06:15 +0000 (09:06 +0100)]
display_task_log: make it possible to abort tasks with CTRL-C
Dominik Csapak [Tue, 26 Jan 2021 10:17:02 +0000 (11:17 +0100)]
api2/reader: asyncify the reader worker task
this way, the code is much more readable
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Thu, 28 Jan 2021 15:46:28 +0000 (16:46 +0100)]
tape: use worker task for eject-media api
Dietmar Maurer [Thu, 28 Jan 2021 15:36:10 +0000 (16:36 +0100)]
tape: proxmox-tape - use api for erase-media and rewind
Dietmar Maurer [Thu, 28 Jan 2021 14:50:01 +0000 (15:50 +0100)]
tape: gui: s/encryption/encrypt/ in media pool config panel
Dietmar Maurer [Thu, 28 Jan 2021 14:42:32 +0000 (15:42 +0100)]
tape: media_pool config api - set protected flags where required
Dietmar Maurer [Thu, 28 Jan 2021 14:32:21 +0000 (15:32 +0100)]
cleanup: avoid compiler warning
Dominik Csapak [Thu, 28 Jan 2021 14:11:20 +0000 (15:11 +0100)]
tape/drive/linux_tape: fix and refactor usage of sg-tape-cmd
when executing this code as non-root, we use sg-tape-cmd (a setuid binary)
to execute various ioctls on the tape device
we give the command the open tape device fd as stdin, but did not
dup it, so the std::process:Stdio handle closed it on drop,
which let subsequent operation on that file fail (since it was closed)
fix it by dup'ing it before giving it to the command, and also refactor
the calling code, so that we do not forget to do this
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 28 Jan 2021 11:59:55 +0000 (12:59 +0100)]
tape: change changer-drive-id to changer-drivenum
because it changed in the config
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 28 Jan 2021 11:59:54 +0000 (12:59 +0100)]
tape/changer: refactor marking of import/export slots from config
we did this for 'mtx', but missed it for the sg_pt_changer code
refactor it into the MtxStatus strut, and call it from both
code paths
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 28 Jan 2021 11:59:53 +0000 (12:59 +0100)]
tape/changer: add vendor/model to DriveStatus
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 28 Jan 2021 11:59:52 +0000 (12:59 +0100)]
ui: tape: use panels in tape interface
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 28 Jan 2021 11:59:51 +0000 (12:59 +0100)]
ui: tape: move TapeManagement.js to tape dir
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>