]> git.proxmox.com Git - proxmox-backup.git/log
proxmox-backup.git
3 years agodepend on crossbeam-channel
Dietmar Maurer [Fri, 25 Sep 2020 10:11:52 +0000 (12:11 +0200)]
depend on crossbeam-channel

3 years agodocs: html: show "Proxmox Backup" in navi for small devices
Thomas Lamprecht [Thu, 24 Sep 2020 17:59:28 +0000 (19:59 +0200)]
docs: html: show "Proxmox Backup" in navi for small devices

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: html: improve css for small displays
Thomas Lamprecht [Thu, 24 Sep 2020 17:56:27 +0000 (19:56 +0200)]
docs: html: improve css for small displays

fixed-width navi/toc links were not switched in color for small width
displays, and thus they were barely readable as the background
switches to dark for small widths.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: buildsys: add more dependencies to html target
Thomas Lamprecht [Thu, 24 Sep 2020 17:45:23 +0000 (19:45 +0200)]
docs: buildsys: add more dependencies to html target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: conf: fix conf for new alabaster theme version
Thomas Lamprecht [Thu, 24 Sep 2020 17:44:50 +0000 (19:44 +0200)]
docs: conf: fix conf for new alabaster theme version

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: html: adapt custom css
Thomas Lamprecht [Thu, 24 Sep 2020 17:43:57 +0000 (19:43 +0200)]
docs: html: adapt custom css

highlighting the current chapter and some other small formatting
improvements

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: index: hide todo list toctree and genindex
Thomas Lamprecht [Thu, 24 Sep 2020 17:42:26 +0000 (19:42 +0200)]
docs: index: hide todo list toctree and genindex

I do not found another way to disable inclusion in the sidebar...

The genindex information is alredy provided through glossary

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: html: adapt sidebar in index page
Thomas Lamprecht [Thu, 24 Sep 2020 17:40:28 +0000 (19:40 +0200)]
docs: html: adapt sidebar in index page

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agouse jobstate mechanism for verify/garbage_collection schedules
Dominik Csapak [Thu, 24 Sep 2020 14:13:54 +0000 (16:13 +0200)]
use jobstate mechanism for verify/garbage_collection schedules

also changes:
* correct comment about reset (replace 'sync' with 'action')
* check schedule change correctly (only when it is actually changed)

with this changes, we can drop the 'lookup_last_worker' method

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoproxy: fix error handling in prune scheduling
Dominik Csapak [Thu, 24 Sep 2020 14:13:53 +0000 (16:13 +0200)]
proxy: fix error handling in prune scheduling

we rely on the jobstate handling to write the error of the worker
into its state file, but we used '?' here in a block which does not
return the error to the block, but to the function/closure instead

so if a prune job failed because of such an '?', we did not write
into the statefile and got a wrong state there

instead use our try_block! macro that wraps the code in a closure

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agobump version to 0.8.20-1
Dietmar Maurer [Thu, 24 Sep 2020 11:17:06 +0000 (13:17 +0200)]
bump version to 0.8.20-1

3 years agosrc/client/pull.rs: decode, verify and write in a separate threads
Dietmar Maurer [Thu, 24 Sep 2020 10:58:53 +0000 (12:58 +0200)]
src/client/pull.rs: decode, verify and write in a separate threads

To maximize throughput.

3 years agosrc/backup/data_blob.rs: add is_encrypted helper
Dietmar Maurer [Thu, 24 Sep 2020 10:36:04 +0000 (12:36 +0200)]
src/backup/data_blob.rs: add is_encrypted helper

3 years agoremove DummyCatalogWriter
Wolfgang Bumiller [Tue, 22 Sep 2020 06:59:54 +0000 (08:59 +0200)]
remove DummyCatalogWriter

we're using an `Option` instead now

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 years agobenchmark: use compressable data to get more realistic result
Dietmar Maurer [Thu, 24 Sep 2020 06:55:48 +0000 (08:55 +0200)]
benchmark: use compressable data to get more realistic result

And add a benchmatrk to test chunk verify speed (decompress+sha256).

3 years agosrc/backup/data_blob.rs: improve decompress speed
Dietmar Maurer [Thu, 24 Sep 2020 06:52:35 +0000 (08:52 +0200)]
src/backup/data_blob.rs: improve decompress speed

3 years agodocs: add onlineHelp to some panels
Oguz Bektas [Mon, 21 Sep 2020 11:25:48 +0000 (13:25 +0200)]
docs: add onlineHelp to some panels

name sections according to the title or content and add
the respective onlineHelp to the following panels:
- datastore
- user management
- ACL
- backup remote

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
Tested-By: Dominik Csapak <d.csapak@proxmox.com>
3 years agobump version to 0.8.19-1 v0.8.19
Dietmar Maurer [Tue, 22 Sep 2020 11:30:52 +0000 (13:30 +0200)]
bump version to 0.8.19-1

3 years agosrc/api2/reader.rs: use std::fs::read instead of tokio::fs::read
Dietmar Maurer [Tue, 22 Sep 2020 11:27:23 +0000 (13:27 +0200)]
src/api2/reader.rs: use std::fs::read instead of tokio::fs::read

Because it is about 10%& faster this way.

3 years agobump version to 0.8.18-1
Dietmar Maurer [Tue, 22 Sep 2020 10:39:47 +0000 (12:39 +0200)]
bump version to 0.8.18-1

3 years agosrc/client/pull.rs: avoid duplicate downloads using in memory HashSet
Dietmar Maurer [Tue, 22 Sep 2020 10:34:06 +0000 (12:34 +0200)]
src/client/pull.rs: avoid duplicate downloads using in memory HashSet

3 years agosrc/client/pull.rs: allow up to 20 concurrent download streams
Dietmar Maurer [Tue, 22 Sep 2020 07:52:14 +0000 (09:52 +0200)]
src/client/pull.rs: allow up to 20 concurrent download streams

3 years agoremote_chunk_reader.rs: use Arc for cache_hint to make clone faster
Dietmar Maurer [Tue, 22 Sep 2020 07:51:19 +0000 (09:51 +0200)]
remote_chunk_reader.rs: use Arc for cache_hint to make clone faster

3 years agodocs: add version and date to HTML index
Thomas Lamprecht [Mon, 21 Sep 2020 16:25:58 +0000 (18:25 +0200)]
docs: add version and date to HTML index

Similar to the PDF output or the Proxmox VE docs.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 0.8.17-1 v0.8.17
Dietmar Maurer [Mon, 21 Sep 2020 12:09:20 +0000 (14:09 +0200)]
bump version to 0.8.17-1

3 years agosrc/client/pull.rs: remove temporary manifest
Dietmar Maurer [Mon, 21 Sep 2020 12:03:01 +0000 (14:03 +0200)]
src/client/pull.rs: remove temporary manifest

3 years agosrc/client/pull.rs: open temporary manifest with truncate(true)
Dietmar Maurer [Mon, 21 Sep 2020 11:53:35 +0000 (13:53 +0200)]
src/client/pull.rs: open temporary manifest with truncate(true)

To delete any data if the file already exists.

3 years agobump proxmox version to 0.4.1
Dietmar Maurer [Mon, 21 Sep 2020 11:51:33 +0000 (13:51 +0200)]
bump proxmox version to 0.4.1

3 years agofix #3017: check array boundaries before using
Dominik Csapak [Mon, 21 Sep 2020 07:12:32 +0000 (09:12 +0200)]
fix #3017: check array boundaries before using

else we panic here

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agodebian/control: update
Dietmar Maurer [Sat, 19 Sep 2020 14:22:56 +0000 (16:22 +0200)]
debian/control: update

3 years agosrc/backup/chunk_store.rs: disable debug output
Dietmar Maurer [Sat, 19 Sep 2020 13:26:21 +0000 (15:26 +0200)]
src/backup/chunk_store.rs: disable debug output

3 years agosrc/backup/datastore.rs - open_with_path: use Path instead of str
Dietmar Maurer [Sat, 19 Sep 2020 08:01:57 +0000 (10:01 +0200)]
src/backup/datastore.rs - open_with_path: use Path instead of str

3 years agosrc/backup/datastore.rs: new method open_with_path
Dietmar Maurer [Sat, 19 Sep 2020 07:55:21 +0000 (09:55 +0200)]
src/backup/datastore.rs: new method open_with_path

To make testing easier.

3 years agodepend on proxmox 0.4.0
Dietmar Maurer [Sat, 19 Sep 2020 04:40:44 +0000 (06:40 +0200)]
depend on proxmox 0.4.0

3 years agodatastore/prune schedules: use JobState for tracking of schedules
Dominik Csapak [Fri, 18 Sep 2020 14:03:52 +0000 (16:03 +0200)]
datastore/prune schedules: use JobState for tracking of schedules

like the sync jobs, so that if an admin configures a schedule it
really starts the next time that time is reached not immediately

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoAdmin Guide: Add some more detailed info throughout
Dylan Whyte [Fri, 18 Sep 2020 13:32:02 +0000 (15:32 +0200)]
Admin Guide: Add some more detailed info throughout

- Mention config files for: datastores, users, acl,
  remotes, syncjobs
- Expand a little bit on SMART and smartmontools package
- Explain acl config
- Include line in network stating why a bond would be set up
- Note the use of ifupdown2 for network config, and the potential
  need to install it on other systems
- Add note to PVE integration, specifying where to refer to for VM and
  CT backups

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agoSmall formatting fix up
Dylan Whyte [Fri, 18 Sep 2020 13:32:00 +0000 (15:32 +0200)]
Small formatting fix up

- Fix permission image.
- Change alt text for ZFS
- Change note block to match the others

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agofix #3015: allow user self-service
Fabian Grünbichler [Fri, 18 Sep 2020 13:01:06 +0000 (15:01 +0200)]
fix #3015: allow user self-service

listing, updating or deleting a user is now possible for the user
itself, in addition to higher-privileged users that have appropriate
privileges on '/access/users'.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agorole api: fix description
Fabian Grünbichler [Fri, 18 Sep 2020 12:55:00 +0000 (14:55 +0200)]
role api: fix description

wrongly copy-pasted at some point

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoadd verification scheduling to proxmox-backup-proxy
Hannes Laimer [Fri, 18 Sep 2020 09:00:52 +0000 (11:00 +0200)]
add verification scheduling to proxmox-backup-proxy

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agoui: add verify-schedule field to edit datastore form
Hannes Laimer [Fri, 18 Sep 2020 09:00:51 +0000 (11:00 +0200)]
ui: add verify-schedule field to edit datastore form

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agoapi2: make verify_schedule deletable
Hannes Laimer [Fri, 18 Sep 2020 09:00:50 +0000 (11:00 +0200)]
api2: make verify_schedule deletable

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agoapi2: add optional verify-schdule field to create/update datastore endpoint
Hannes Laimer [Fri, 18 Sep 2020 09:00:49 +0000 (11:00 +0200)]
api2: add optional verify-schdule field to create/update datastore endpoint

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agoadd verify_schedule field to DataStoreConfig
Hannes Laimer [Fri, 18 Sep 2020 09:00:48 +0000 (11:00 +0200)]
add verify_schedule field to DataStoreConfig

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agoapi2: add VERIFY_SCHEDULE_SCHEMA
Hannes Laimer [Fri, 18 Sep 2020 09:00:47 +0000 (11:00 +0200)]
api2: add VERIFY_SCHEDULE_SCHEMA

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
3 years agofix #3014: allow DataStoreAdmins to list DS config
Fabian Grünbichler [Fri, 18 Sep 2020 09:45:11 +0000 (11:45 +0200)]
fix #3014: allow DataStoreAdmins to list DS config

filtered by those they are privileged enough to read individually. this
allows such users to configure prune/GC schedules via the GUI (the API
already allowed it previously).

permission-wise, a user with this privilege can already:
- list all stores they have access to (returns just name/comment)
- read the config of each store they have access to individually
(returns full config of that datastore + digest of whole config)

but combines them to
- read configs of all datastores they have access to (returns full
config of those datastores + digest of whole config)

user that have AUDIT on just /datastore without propagate can now no
longer read all configurations (but this could be added it back, it just
seems to make little sense to me).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agodepend on pxar 0.6.1
Dietmar Maurer [Fri, 18 Sep 2020 10:02:17 +0000 (12:02 +0200)]
depend on pxar 0.6.1

3 years agomove compute_file_csum to src/tools.rs
Dietmar Maurer [Thu, 17 Sep 2020 08:27:04 +0000 (10:27 +0200)]
move compute_file_csum to src/tools.rs

3 years agodepend on proxmox 0.3.9
Dietmar Maurer [Thu, 17 Sep 2020 06:45:19 +0000 (08:45 +0200)]
depend on proxmox 0.3.9

3 years agofix #2942: implement lacp bond mode and bond_xmit_hash_policy
Dominik Csapak [Wed, 16 Sep 2020 12:12:30 +0000 (14:12 +0200)]
fix #2942: implement lacp bond mode and bond_xmit_hash_policy

this was not yet implemented, should be compatible with pve and the gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoapi2/network: add bond-primary parameter
Dominik Csapak [Wed, 16 Sep 2020 12:12:29 +0000 (14:12 +0200)]
api2/network: add bond-primary parameter

needed for 'active-backup' bond mode

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoapi2/pull: make pull worker abortable
Dominik Csapak [Tue, 15 Sep 2020 09:15:01 +0000 (11:15 +0200)]
api2/pull: make pull worker abortable

by selecting between the pull_future and the abort future

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agofix #2870: renew tickets in HttpClient
Dominik Csapak [Tue, 15 Sep 2020 09:15:00 +0000 (11:15 +0200)]
fix #2870: renew tickets in HttpClient

by packing the auth into a RwLock and starting a background
future that renews the ticket every 15 minutes

we still use the BroadcastFuture for the first ticket and only
if that is finished we start the scheduled future

we have to store an abort handle for the renewal future and abort it when
the http client is dropped, so we do not request new tickets forever

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoalways allow retrieving (censored) subscription info
Fabian Grünbichler [Wed, 16 Sep 2020 09:51:13 +0000 (11:51 +0200)]
always allow retrieving (censored) subscription info

like we do for PVE. this is visible on the dashboard, and caused 403 on
each update which bothers me when looking at the dev console.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agofix #2957: allow Sys.Audit access to node RRD
Fabian Grünbichler [Wed, 16 Sep 2020 09:51:12 +0000 (11:51 +0200)]
fix #2957: allow Sys.Audit access to node RRD

this is the same privilege needed to query the node status.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agodocs: fix epilogs fixme comment
Thomas Lamprecht [Wed, 16 Sep 2020 14:36:20 +0000 (16:36 +0200)]
docs: fix epilogs fixme comment

restructured text comment syntax, i.e., everything it cannot parse is
a comment, is a real PITA!

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agosrc/backup/data_blob.rs: expose verify_crc again
Dietmar Maurer [Wed, 16 Sep 2020 08:43:42 +0000 (10:43 +0200)]
src/backup/data_blob.rs: expose verify_crc again

3 years agoSnapshotVerifyState: use enum for state
Stefan Reiter [Tue, 15 Sep 2020 08:19:23 +0000 (10:19 +0200)]
SnapshotVerifyState: use enum for state

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobackup: check all referenced chunks actually exist
Stefan Reiter [Mon, 14 Sep 2020 08:50:19 +0000 (10:50 +0200)]
backup: check all referenced chunks actually exist

A client can omit uploading chunks in the "known_chunks" list, those
then also won't be written on the server side. Check all those chunks
mentioned in the index but not uploaded for existance and report an
error if they don't exist instead of marking a potentially broken backup
as "successful".

This is only important if the base snapshot references corrupted chunks,
but has not been negatively verified. Also, it is important to only
verify this at the end, *after* all index writers are closed, since only
then can it be guaranteed that no GC will sweep referenced chunks away.

If a chunk is found missing, also mark the previous backup with a
verification failure, since we know the missing chunk has to referenced
in it (only way it could have been inserted to known_chunks with
checked=false). This has the benefit of automatically doing a
full-upload backup if the user attempts to retry after seeing the new
error, instead of requiring a manual verify or forget.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobackup: check verify state of previous backup before allowing reuse
Stefan Reiter [Mon, 14 Sep 2020 08:50:18 +0000 (10:50 +0200)]
backup: check verify state of previous backup before allowing reuse

Do not allow clients to reuse chunks from the previous backup if it has
a failed validation result. This would result in a new "successful"
backup that potentially references broken chunks.

If the previous backup has not been verified, assume it is fine and
continue on.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agorename BackupDir::new_with_group to BackupDir::with_group
Dietmar Maurer [Tue, 15 Sep 2020 07:40:03 +0000 (09:40 +0200)]
rename BackupDir::new_with_group to BackupDir::with_group

3 years agosrc/backup/backup_info.rs: new BackupDir::with_rfc3339
Dietmar Maurer [Tue, 15 Sep 2020 07:34:46 +0000 (09:34 +0200)]
src/backup/backup_info.rs: new BackupDir::with_rfc3339

3 years agodebian/control: update
Dietmar Maurer [Tue, 15 Sep 2020 07:33:38 +0000 (09:33 +0200)]
debian/control: update

3 years agoavoid chrono dependency, depend on proxmox 0.3.8
Dietmar Maurer [Sat, 12 Sep 2020 13:10:47 +0000 (15:10 +0200)]
avoid chrono dependency, depend on proxmox 0.3.8

- remove chrono dependency

- depend on proxmox 0.3.8

- remove epoch_now, epoch_now_u64 and epoch_now_f64

- remove tm_editor (moved to proxmox crate)

- use new helpers from proxmox 0.3.8
  * epoch_i64 and epoch_f64
  * parse_rfc3339
  * epoch_to_rfc3339_utc
  * strftime_local

- BackupDir changes:
  * store epoch and rfc3339 string instead of DateTime
  * backup_time_to_string now return a Result
  * remove unnecessary TryFrom<(BackupGroup, i64)> for BackupDir

- DynamicIndexHeader: change ctime to i64

- FixedIndexHeader: change ctime to i64

3 years agowww/OnlineHelpInfo.js: update for syncjobs
Dietmar Maurer [Sat, 12 Sep 2020 13:10:08 +0000 (15:10 +0200)]
www/OnlineHelpInfo.js: update for syncjobs

3 years agodebian/control: update hyper dependency
Dietmar Maurer [Fri, 11 Sep 2020 14:03:38 +0000 (16:03 +0200)]
debian/control: update hyper dependency

3 years agobump version to 0.8.16-1 v0.8.16
Dietmar Maurer [Fri, 11 Sep 2020 13:55:37 +0000 (15:55 +0200)]
bump version to 0.8.16-1

3 years agoBackupDir: make constructor fallible
Fabian Grünbichler [Fri, 11 Sep 2020 12:34:38 +0000 (14:34 +0200)]
BackupDir: make constructor fallible

since converting from i64 epoch timestamp to DateTime is not always
possible. previously, passing invalid backup-time from client to server
(or vice-versa) panicked the corresponding tokio task. now we get proper
error messages including the invalid timestamp.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agohandle invalid mtime when formating entries
Fabian Grünbichler [Fri, 11 Sep 2020 12:34:37 +0000 (14:34 +0200)]
handle invalid mtime when formating entries

otherwise operations like catalog shell panic when viewing pxar archives
containing such entries, e.g. with mtime very far ahead into the future.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agouse non-panicky timestamp_opt where appropriate
Fabian Grünbichler [Fri, 11 Sep 2020 12:34:36 +0000 (14:34 +0200)]
use non-panicky timestamp_opt where appropriate

by either printing the original, out-of-range timestamp as-is, or
bailing with a proper error message instead of panicking.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agodon't truncate DateTime nanoseconds
Fabian Grünbichler [Fri, 11 Sep 2020 12:34:35 +0000 (14:34 +0200)]
don't truncate DateTime nanoseconds

where we don't care about them anyway..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agocatalog dump: preserve original mtime
Fabian Grünbichler [Fri, 11 Sep 2020 12:34:34 +0000 (14:34 +0200)]
catalog dump: preserve original mtime

even if it can't be handled by chrono. silently replacing it with epoch
0 is confusing..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agoui/docs: add onlineHelp button for syncjobs
Dominik Csapak [Fri, 11 Sep 2020 08:35:28 +0000 (10:35 +0200)]
ui/docs: add onlineHelp button for syncjobs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agodocs: add section for calendar events
Dominik Csapak [Fri, 11 Sep 2020 08:35:27 +0000 (10:35 +0200)]
docs: add section for calendar events

and move the info defined in 'Schedules' there,
the explanation of calendar events is inspired by the systemd.time
manpage and the pve docs (especially the examples are mostly
copied/adapted from there)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoui: fix calendarevent examples
Dominik Csapak [Fri, 11 Sep 2020 08:35:26 +0000 (10:35 +0200)]
ui: fix calendarevent examples

*/x is valid syntax for us, but not systemd, so to not confuse users
write it like systemd would accept it

also an timespec must at least have hours and minutes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agotools/systemd/parse_time: enable */x syntax for calendar events
Dominik Csapak [Fri, 11 Sep 2020 08:35:25 +0000 (10:35 +0200)]
tools/systemd/parse_time: enable */x syntax for calendar events

we support this in pve, so also support it here to have a more
consistent syntax

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agodocs: set html img width limitation through css
Thomas Lamprecht [Fri, 11 Sep 2020 09:10:07 +0000 (11:10 +0200)]
docs: set html img width limitation through css

avoid hardcoding width in the docs itself, so that other render
outputs can choose another size.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: do not render TODOs in release builts
Thomas Lamprecht [Fri, 11 Sep 2020 09:08:59 +0000 (11:08 +0200)]
docs: do not render TODOs in release builts

they are not useful for endusers...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: set GmbH as copyright holder
Thomas Lamprecht [Fri, 11 Sep 2020 09:08:33 +0000 (11:08 +0200)]
docs: set GmbH as copyright holder

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agodocs: use alabaster theme
Thomas Lamprecht [Fri, 11 Sep 2020 09:05:41 +0000 (11:05 +0200)]
docs: use alabaster theme

It's not all perfect (yet) but way cleaner and simpler to use than
the sphinx one.

Custom do the scrolling for the fixed side bar and make some other
slight adjustments.

Main issue for now is that the "Developer Appendix" is always shown
in the navigation tree, but we only include that toctree for
devbuilds...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofaq: fix typo
Dylan Whyte [Thu, 10 Sep 2020 12:37:33 +0000 (14:37 +0200)]
faq: fix typo

In note block:
    Proxmox Packup Server -> Proxmox Backup Server

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agobenchmark: update TLS reference speed
Dietmar Maurer [Thu, 10 Sep 2020 10:55:43 +0000 (12:55 +0200)]
benchmark: update TLS reference speed

We are now faster with recent patches.

3 years agoserver: set http2 max frame size
Fabian Grünbichler [Thu, 10 Sep 2020 08:36:33 +0000 (10:36 +0200)]
server: set http2 max frame size

else we get the default of 16k, which is quite low for our use case.
this improves the TLS upload benchmark speed by about 30-40% for me.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 years agodocs: faq: spell out PBS
Thomas Lamprecht [Thu, 10 Sep 2020 10:33:12 +0000 (12:33 +0200)]
docs: faq: spell out PBS

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoAdd section "FAQ"
Dylan Whyte [Thu, 10 Sep 2020 09:05:00 +0000 (11:05 +0200)]
Add section "FAQ"

Adds an FAQ to the docs, based on question that have
been appearing on the forum.

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agoexamples/upload-speed.rs: pass new benchmark parameter
Dietmar Maurer [Thu, 10 Sep 2020 07:34:51 +0000 (09:34 +0200)]
examples/upload-speed.rs: pass new benchmark parameter

3 years agobump version to 0.8.15-1 v0.8.15
Dietmar Maurer [Thu, 10 Sep 2020 07:26:16 +0000 (09:26 +0200)]
bump version to 0.8.15-1

3 years agoverify: fix done count
Dietmar Maurer [Thu, 10 Sep 2020 06:54:29 +0000 (08:54 +0200)]
verify: fix done count

We need to filter out benchmark group earlier

3 years agoverify: skip benchmark directory
Dietmar Maurer [Thu, 10 Sep 2020 06:44:18 +0000 (08:44 +0200)]
verify: skip benchmark directory

3 years agoadd benchmark flag to backup creation for proper cleanup when running a benchmark
Hannes Laimer [Wed, 2 Sep 2020 09:41:22 +0000 (11:41 +0200)]
add benchmark flag to backup creation for proper cleanup when running a benchmark

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
3 years agomount: fix mount subcommand
Dylan Whyte [Tue, 8 Sep 2020 13:33:54 +0000 (15:33 +0200)]
mount: fix mount subcommand

fixes the error, "manifest does not contain
file 'X.pxar'", that occurs when trying to mount
a pxar archive with 'proxmox-backup-client mount':

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
3 years agoui: only mark backup encrypted if there are any files
Dominik Csapak [Wed, 9 Sep 2020 14:18:11 +0000 (16:18 +0200)]
ui: only mark backup encrypted if there are any files

if we have a stale backup without an manifest, we do not count
the remaining files in the backup dir anymore, but this means
we now have to check here if there are really any encrypted

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agoimprove server->client tcp performance for high latency links
Dominik Csapak [Wed, 9 Sep 2020 13:56:54 +0000 (15:56 +0200)]
improve server->client tcp performance for high latency links

similar to the other fix, if we do not set the buffer size manually,
we get better performance for high latency connections

restore benchmark from f.gruenbicher:

no delay, without patch: ~50MB/s
no delay, with patch: ~50MB/s
25ms delay, without patch: ~11MB/s
25ms delay, with path: ~50MB/s

my own restore benchmark:

no delay, without patch: ~1.5GiB/s
no delay, with patch: ~1.5GiB/s
25ms delay, without patch: 30MiB/s
25ms delay, with patch: ~950MiB/s

for some more details about those benchmarks see
https://lists.proxmox.com/pipermail/pbs-devel/2020-September/000600.html

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agofix #2983: improve tcp performance
Dominik Csapak [Wed, 9 Sep 2020 11:54:10 +0000 (13:54 +0200)]
fix #2983: improve tcp performance

by leaving the buffer sizes on default, we get much better tcp performance
for high latency links

throughput is still impacted by latency, but much less so when
leaving the sizes at default.
the disadvantage is slightly higher memory usage of the server
(details below)

my local benchmarks (proxmox-backup-client benchmark):

pbs client:
PVE Host
Epyc 7351P (16core/32thread)
64GB Memory

pbs server:
VM on Host
1 Socket, 4 Cores (Host CPU type)
4GB Memory

average of 3 runs, rounded to MB/s
                    | no delay |     1ms |     5ms |     10ms |    25ms |
without this patch  |  230MB/s |  55MB/s |  13MB/s |    7MB/s |   3MB/s |
with this patch     |  293MB/s | 293MB/s | 249MB/s |  241MB/s | 104MB/s |

memory usage (resident memory) of proxmox-backup-proxy:

                    | peak during benchmarks | after benchmarks |
without this patch  |                  144MB |            100MB |
with this patch     |                  145MB |            130MB |

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
3 years agosrc/backup/chunk_store.rs: use ? insteadf of unwrap
Dietmar Maurer [Thu, 10 Sep 2020 04:37:37 +0000 (06:37 +0200)]
src/backup/chunk_store.rs: use ? insteadf of unwrap

3 years agoclean up .bad file handling in sweep_unused_chunks
Stefan Reiter [Tue, 8 Sep 2020 13:02:46 +0000 (15:02 +0200)]
clean up .bad file handling in sweep_unused_chunks

Code cleanup, no functional change intended.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobackup: ensure no fixed index writers are left over either
Stefan Reiter [Tue, 8 Sep 2020 13:29:42 +0000 (15:29 +0200)]
backup: ensure no fixed index writers are left over either

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
3 years agobuildsys: upload client packages also to PMG repo
Thomas Lamprecht [Tue, 8 Sep 2020 14:48:10 +0000 (16:48 +0200)]
buildsys: upload client packages also to PMG repo

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: calendar event: disable matchFieldWidth for picker
Thomas Lamprecht [Tue, 8 Sep 2020 07:13:47 +0000 (09:13 +0200)]
ui: calendar event: disable matchFieldWidth for picker

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoui: calendar event: enable more complex examples again
Thomas Lamprecht [Tue, 8 Sep 2020 07:04:35 +0000 (09:04 +0200)]
ui: calendar event: enable more complex examples again

now that they (should) work.

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