]> git.proxmox.com Git - proxmox-offline-mirror.git/log
proxmox-offline-mirror.git
2 years agodocs: adapt to pool/mirror changes
Fabian Grünbichler [Fri, 9 Sep 2022 11:18:08 +0000 (13:18 +0200)]
docs: adapt to pool/mirror changes

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agodocs: intro: avoid office@ mail address for sales related questions
Thomas Lamprecht [Fri, 9 Sep 2022 11:32:04 +0000 (13:32 +0200)]
docs: intro: avoid office@ mail address for sales related questions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodocs: offline-media: improve read- and understandability
Aaron Lauterer [Fri, 9 Sep 2022 10:28:38 +0000 (12:28 +0200)]
docs: offline-media: improve read- and understandability

by rephrasing parts to be easier to read or adding more context.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agodocs: offline-keys: improve read- and understandabilty
Aaron Lauterer [Fri, 9 Sep 2022 10:28:37 +0000 (12:28 +0200)]
docs: offline-keys: improve read- and understandabilty

By rephasing certain parts and splitting long sentences into smaller
ones.

Also changing "licensing server" to "subscription server".

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agodocs: installation: improve read- and understandabilty
Aaron Lauterer [Fri, 9 Sep 2022 10:28:36 +0000 (12:28 +0200)]
docs: installation: improve read- and understandabilty

This patch contains the larger changes, such as splitting longer
sentences and rewording some parts.

The headline for "Reuse a Proxmox Repository for Offline Mirror Tool"
has been changed to "Set up the Repository on non Proxmox bases
systems". Sounds a bit nicer and we are in the Proxmox Offline Mirror
docs anyway.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agodocs: installation: fix typos, and other small changes
Aaron Lauterer [Fri, 9 Sep 2022 10:28:35 +0000 (12:28 +0200)]
docs: installation: fix typos, and other small changes

switch from `Proxmox projects` to `Proxmox solutions`.
Add missing words, such as `the` and drop `also`s.

And other small changes that don't affect the actual content or meaning.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agodocs: introduction: rewrite for better readability
Aaron Lauterer [Fri, 9 Sep 2022 10:28:34 +0000 (12:28 +0200)]
docs: introduction: rewrite for better readability

splitting long sentences, rephrasing and extending some parts

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agodocs: introduction: fix typos and missing words
Aaron Lauterer [Fri, 9 Sep 2022 10:28:33 +0000 (12:28 +0200)]
docs: introduction: fix typos and missing words

adding `the` in a few places, dropping `also`s as they are almost always
just filler words.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2 years agoadd .gitignore
Thomas Lamprecht [Fri, 9 Sep 2022 10:38:08 +0000 (12:38 +0200)]
add .gitignore

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agopool: remove double quoting
Fabian Grünbichler [Fri, 9 Sep 2022 09:53:50 +0000 (11:53 +0200)]
pool: remove double quoting

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agorework pool handling
Fabian Grünbichler [Fri, 9 Sep 2022 09:00:03 +0000 (11:00 +0200)]
rework pool handling

instead of having a .pool directory inside each mirror directory (both
on the mirror and medium side), instead

- specify a base directory for each mirror which can be shared
- create a .pool in this base directory
- create the mirror dir named after the mirror ID in this base directory
- adapt GC, wizard, .. accordingly

to re-use a shared pool on the medium side, hash the source mirror base
dir path to derive the destination pool .pool-XX directory name and
persist the resulting relative path in the medium state file.

2 years agopool: allow pool re-use
Fabian Grünbichler [Fri, 9 Sep 2022 08:04:49 +0000 (10:04 +0200)]
pool: allow pool re-use

and improve the naming of the two dirs.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoclippy fix
Fabian Grünbichler [Fri, 9 Sep 2022 08:04:07 +0000 (10:04 +0200)]
clippy fix

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agofix typos in command invocation
Stoiko Ivanov [Thu, 8 Sep 2022 13:46:54 +0000 (15:46 +0200)]
fix typos in command invocation

noted while blindly pasting the output after setting up my first
mirror.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2 years agobuildsys: dinstall target: install doc instead of lib package
Thomas Lamprecht [Thu, 8 Sep 2022 13:50:40 +0000 (15:50 +0200)]
buildsys: dinstall target: install doc instead of lib package

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/rules: avoid compressing pdf files
Thomas Lamprecht [Thu, 8 Sep 2022 12:17:39 +0000 (14:17 +0200)]
d/rules: avoid compressing pdf files

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 0.2.0-1
Thomas Lamprecht [Thu, 8 Sep 2022 11:56:17 +0000 (13:56 +0200)]
bump version to 0.2.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/rules: ensure DEB_VERSION and DEB_VERSION_UPSTREAM are available for docs
Thomas Lamprecht [Thu, 8 Sep 2022 12:11:50 +0000 (14:11 +0200)]
d/rules: ensure DEB_VERSION and DEB_VERSION_UPSTREAM are available for docs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodocs: drop non-existing APT ref
Thomas Lamprecht [Thu, 8 Sep 2022 12:05:32 +0000 (14:05 +0200)]
docs: drop non-existing APT ref

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobuildsys: also upload to pbs-client repo
Thomas Lamprecht [Thu, 8 Sep 2022 11:56:53 +0000 (13:56 +0200)]
buildsys: also upload to pbs-client repo

it has the smallest impact if added to a plain, vanilla Debian
installation (e.g., no newer ifupdown or smartmontools package
getting pulled in automatically)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodocs: mirror: mention auto-debian-base selection as tip
Thomas Lamprecht [Thu, 8 Sep 2022 11:56:09 +0000 (13:56 +0200)]
docs: mirror: mention auto-debian-base selection as tip

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodocs: intro: reference config file switch/env variable directly
Thomas Lamprecht [Thu, 8 Sep 2022 11:39:48 +0000 (13:39 +0200)]
docs: intro: reference config file switch/env variable directly

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodocs: ship config manpage as proxmox-offline-mirror.cfg.5
Thomas Lamprecht [Thu, 8 Sep 2022 11:36:49 +0000 (13:36 +0200)]
docs: ship config manpage as proxmox-offline-mirror.cfg.5

as `mirror.cfg.5` is rather overly generic

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agosetup: clarify that a *new* medium ID is queried
Thomas Lamprecht [Thu, 8 Sep 2022 11:24:59 +0000 (13:24 +0200)]
setup: clarify that a *new* medium ID is queried

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agosetup: avoid duplicated medium ID query loop
Thomas Lamprecht [Thu, 8 Sep 2022 11:24:43 +0000 (13:24 +0200)]
setup: avoid duplicated medium ID query loop

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agowizard: query base path
Fabian Grünbichler [Thu, 8 Sep 2022 11:23:30 +0000 (13:23 +0200)]
wizard: query base path

and derive the rest using the ID, and ignore already existing
directories.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoallow overriding config file path via env
Fabian Grünbichler [Thu, 8 Sep 2022 11:16:32 +0000 (13:16 +0200)]
allow overriding config file path via env

by setting PROXMOX_OFFLINE_MIRROR_CONFIG

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agodocs: intro: add terminology heading
Thomas Lamprecht [Thu, 8 Sep 2022 11:04:17 +0000 (13:04 +0200)]
docs: intro: add terminology heading

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodocs: add installation chapter
Thomas Lamprecht [Thu, 8 Sep 2022 10:34:50 +0000 (12:34 +0200)]
docs: add installation chapter

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodocs: add intro to offline mirrors and media chapters
Thomas Lamprecht [Thu, 8 Sep 2022 10:10:58 +0000 (12:10 +0200)]
docs: add intro to offline mirrors and media chapters

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodocs: restructur/expand offline key chapter
Thomas Lamprecht [Thu, 8 Sep 2022 10:09:15 +0000 (12:09 +0200)]
docs: restructur/expand offline key chapter

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agowizard: add option to (de)select all mirrors
Fabian Grünbichler [Thu, 8 Sep 2022 11:04:03 +0000 (13:04 +0200)]
wizard: add option to (de)select all mirrors

else it gets a bit repetitive for the common case.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agowizard: add --config parameter
Fabian Grünbichler [Thu, 8 Sep 2022 10:54:42 +0000 (12:54 +0200)]
wizard: add --config parameter

instead of prompting for the file path.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agocargo fmt
Fabian Grünbichler [Thu, 8 Sep 2022 10:48:06 +0000 (12:48 +0200)]
cargo fmt

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agowizard: optionally auto-add Debian mirrors
Fabian Grünbichler [Thu, 8 Sep 2022 10:47:20 +0000 (12:47 +0200)]
wizard: optionally auto-add Debian mirrors

when adding a Proxmox product mirror.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agowizard: extract debian release/variant/.. handling
Fabian Grünbichler [Thu, 8 Sep 2022 09:57:04 +0000 (11:57 +0200)]
wizard: extract debian release/variant/.. handling

for re-use when adding a Proxmox product.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agowizard: re-order distros
Fabian Grünbichler [Thu, 8 Sep 2022 09:53:46 +0000 (11:53 +0200)]
wizard: re-order distros

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agomedium: implement `remove .. --remove-data`
Fabian Grünbichler [Thu, 8 Sep 2022 09:53:24 +0000 (11:53 +0200)]
medium: implement `remove .. --remove-data`

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agodocs: mirror: fix --dir in command example
Thomas Lamprecht [Thu, 8 Sep 2022 09:46:00 +0000 (11:46 +0200)]
docs: mirror: fix --dir in command example

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agosubscription: use "-" for POM product URL
Thomas Lamprecht [Thu, 8 Sep 2022 09:44:07 +0000 (11:44 +0200)]
subscription: use "-" for POM product URL

it isn't displayed anywhere currently anyway, so more future proofing

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoapt repo: offline key: support PMG
Thomas Lamprecht [Thu, 8 Sep 2022 09:43:46 +0000 (11:43 +0200)]
apt repo: offline key: support PMG

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodocs: split out chapters into different files
Thomas Lamprecht [Thu, 8 Sep 2022 07:44:35 +0000 (09:44 +0200)]
docs: split out chapters into different files

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agokeys: improve refresh behaviour
Fabian Grünbichler [Thu, 8 Sep 2022 08:14:27 +0000 (10:14 +0200)]
keys: improve refresh behaviour

refresh mirror key(s) before looking for a valid one to use for offline key
refreshing, and disentagle these two parts of "refreshing keys".

also, refreshing is no longer async since dropping hyper, so drop the
async/await-s accordingly.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd some more comments
Fabian Grünbichler [Thu, 8 Sep 2022 07:36:03 +0000 (09:36 +0200)]
add some more comments

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agokeys: add 'show' command
Fabian Grünbichler [Thu, 8 Sep 2022 07:35:25 +0000 (09:35 +0200)]
keys: add 'show' command

to display full info that is available about a given key.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agokeys: extend list return value
Fabian Grünbichler [Thu, 8 Sep 2022 07:34:41 +0000 (09:34 +0200)]
keys: extend list return value

by decoding the contained subscription info and doing some rough checks.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agodocs: extend, reformat and various small fixes
Thomas Lamprecht [Thu, 8 Sep 2022 06:30:12 +0000 (08:30 +0200)]
docs: extend, reformat and various small fixes

Fix some left overs from copying this over from PBS, note how to
acquire such a key by contacting sales@proxmox.com, add a paragraph
with some description about what this tool(ing) actually does to the
introduction section, ...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodocs: fix title case and heading markers
Thomas Lamprecht [Thu, 8 Sep 2022 06:29:39 +0000 (08:29 +0200)]
docs: fix title case and heading markers

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodocs pdf: avoid extra blank page on section/chapter boundary
Thomas Lamprecht [Thu, 8 Sep 2022 06:27:52 +0000 (08:27 +0200)]
docs pdf: avoid extra blank page on section/chapter boundary

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/control: add break/depends for doc split
Thomas Lamprecht [Wed, 7 Sep 2022 14:21:34 +0000 (16:21 +0200)]
d/control: add break/depends for doc split

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobuildsys: fix d/control in build dir, ensuring docs package build
Thomas Lamprecht [Wed, 7 Sep 2022 14:07:22 +0000 (16:07 +0200)]
buildsys: fix d/control in build dir, ensuring docs package build

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agod/control: update
Thomas Lamprecht [Wed, 7 Sep 2022 13:44:28 +0000 (15:44 +0200)]
d/control: update

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agowizard: remove meaningless actions
Fabian Grünbichler [Wed, 7 Sep 2022 13:21:14 +0000 (15:21 +0200)]
wizard: remove meaningless actions

adding a medium without any mirrors defined doesn't make sense, and
offering add/remove when there is nothing to add/remove doesn't either.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agowizard: ask for medium ID up front
Fabian Grünbichler [Wed, 7 Sep 2022 13:21:00 +0000 (15:21 +0200)]
wizard: ask for medium ID up front

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agokeys: improve output on add/refresh
Fabian Grünbichler [Wed, 7 Sep 2022 12:12:27 +0000 (14:12 +0200)]
keys: improve output on add/refresh

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoswitch to production signing key
Fabian Grünbichler [Wed, 7 Sep 2022 12:00:48 +0000 (14:00 +0200)]
switch to production signing key

shipped by proxmox-archive-keyring

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agopackaging: split docs into -docs package
Fabian Grünbichler [Wed, 7 Sep 2022 09:31:51 +0000 (11:31 +0200)]
packaging: split docs into -docs package

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agocargo fmt
Fabian Grünbichler [Thu, 4 Aug 2022 13:24:56 +0000 (15:24 +0200)]
cargo fmt

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agomirror: use max_size everywhere
Fabian Grünbichler [Thu, 4 Aug 2022 13:22:37 +0000 (15:22 +0200)]
mirror: use max_size everywhere

with generous limits for the (In)Release files, and using the reference
sizes from authenticated files from then on to prevent a malicious MITM
from DOSing the mirroring client via memory exhaustion.

2 years agoupdate dependencies to get rid of hyper
Fabian Grünbichler [Thu, 4 Aug 2022 13:00:39 +0000 (15:00 +0200)]
update dependencies to get rid of hyper

proxmox-http to 0.7, proxmox-router to 1.3 and proxmox-subscription to
0.3.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agobump version to 0.1.0-1
Fabian Grünbichler [Tue, 6 Sep 2022 07:54:17 +0000 (09:54 +0200)]
bump version to 0.1.0-1

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agobump proxmox-apt to 0.9.1
Fabian Grünbichler [Tue, 6 Sep 2022 10:03:58 +0000 (12:03 +0200)]
bump proxmox-apt to 0.9.1

for more resilient Release file parsing

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoclippy fixes
Fabian Grünbichler [Fri, 29 Jul 2022 12:22:26 +0000 (14:22 +0200)]
clippy fixes

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoupdate to proxmox-sys 0.4
Fabian Grünbichler [Fri, 29 Jul 2022 12:22:18 +0000 (14:22 +0200)]
update to proxmox-sys 0.4

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agodocs: make help top-level header
Fabian Grünbichler [Fri, 22 Jul 2022 10:22:22 +0000 (12:22 +0200)]
docs: make help top-level header

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agodocs: expand, improve formatting
Fabian Grünbichler [Fri, 22 Jul 2022 09:34:56 +0000 (11:34 +0200)]
docs: expand, improve formatting

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agodocs: document key handling
Fabian Grünbichler [Fri, 22 Jul 2022 09:07:20 +0000 (11:07 +0200)]
docs: document key handling

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoremove accidentally committed pycache
Fabian Grünbichler [Fri, 22 Jul 2022 09:07:07 +0000 (11:07 +0200)]
remove accidentally committed pycache

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agod/rules: drop docgen, add fail-missing
Fabian Grünbichler [Fri, 22 Jul 2022 08:30:16 +0000 (10:30 +0200)]
d/rules: drop docgen, add fail-missing

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd bash completion
Fabian Grünbichler [Fri, 22 Jul 2022 07:31:23 +0000 (09:31 +0200)]
add bash completion

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoupdate d/control
Fabian Grünbichler [Thu, 21 Jul 2022 15:16:25 +0000 (17:16 +0200)]
update d/control

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd docs
Fabian Grünbichler [Thu, 21 Jul 2022 13:56:38 +0000 (15:56 +0200)]
add docs

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd remaining missing renames
Fabian Grünbichler [Thu, 21 Jul 2022 13:56:57 +0000 (15:56 +0200)]
add remaining missing renames

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoupload to all products
Fabian Grünbichler [Thu, 21 Jul 2022 13:07:05 +0000 (15:07 +0200)]
upload to all products

and skip lib package upload

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd packaging
Fabian Grünbichler [Thu, 21 Jul 2022 12:56:54 +0000 (14:56 +0200)]
add packaging

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agobump proxmox-apt
Fabian Grünbichler [Thu, 21 Jul 2022 12:47:29 +0000 (14:47 +0200)]
bump proxmox-apt

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadapt to changes in proxmox-subscription
Fabian Grünbichler [Thu, 21 Jul 2022 12:46:56 +0000 (14:46 +0200)]
adapt to changes in proxmox-subscription

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoimprove interfaces and descriptions
Fabian Grünbichler [Fri, 8 Jul 2022 12:53:42 +0000 (14:53 +0200)]
improve interfaces and descriptions

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agopool: gracefully handle tmp or invalid chunk names
Fabian Grünbichler [Fri, 8 Jul 2022 12:36:24 +0000 (14:36 +0200)]
pool: gracefully handle tmp or invalid chunk names

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoapt-repo: allow writing of snippet file
Fabian Grünbichler [Fri, 8 Jul 2022 12:36:08 +0000 (14:36 +0200)]
apt-repo: allow writing of snippet file

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agosetup: improve path handling and messages
Fabian Grünbichler [Fri, 8 Jul 2022 09:44:52 +0000 (11:44 +0200)]
setup: improve path handling and messages

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agosetup: suggest mirror ID in guided mode
Fabian Grünbichler [Fri, 8 Jul 2022 09:36:07 +0000 (11:36 +0200)]
setup: suggest mirror ID in guided mode

based on selected distro/product, release, etc.pp.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agomirror: sort list of snapshots
Fabian Grünbichler [Fri, 8 Jul 2022 09:11:07 +0000 (11:11 +0200)]
mirror: sort list of snapshots

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agosetup: use correct key for debian-updates
Fabian Grünbichler [Fri, 8 Jul 2022 09:10:54 +0000 (11:10 +0200)]
setup: use correct key for debian-updates

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agorename to 'proxmox-offline-mirror', add key handling
Fabian Grünbichler [Thu, 30 Jun 2022 13:06:27 +0000 (15:06 +0200)]
rename to 'proxmox-offline-mirror', add key handling

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd doc comments
Fabian Grünbichler [Thu, 7 Apr 2022 12:12:47 +0000 (14:12 +0200)]
add doc comments

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agocmd: improve `medium status`
Fabian Grünbichler [Thu, 7 Apr 2022 11:06:43 +0000 (13:06 +0200)]
cmd: improve `medium status`

include information about snapshots on source mirror and medium.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agorefactor interfaces
Fabian Grünbichler [Thu, 7 Apr 2022 09:00:42 +0000 (11:00 +0200)]
refactor interfaces

- remove Pool from public interfaces
- remove pool_dir from MirrorConfig, rename base_dir to dir
- add mirror::{init,destroy,gc,list_snapshots, remove_snapshot}
- rename mirror::mirror to mirror::create_snapshot
- move ParsedMirrorConfig into mirror module
- add new helpers in medium.rs
- use Snapshot in more places
- make Snapshot (de)serializable and sort/comparable
- move Snapshot into types.rs
- reduce visibility where possible

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd instructions
Fabian Grünbichler [Tue, 5 Apr 2022 12:52:54 +0000 (14:52 +0200)]
add instructions

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoinitial proof of concept
Fabian Grünbichler [Tue, 5 Apr 2022 12:27:20 +0000 (14:27 +0200)]
initial proof of concept

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoadd .gitignore
Fabian Grünbichler [Thu, 17 Feb 2022 16:09:58 +0000 (17:09 +0100)]
add .gitignore

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agoinitial commit
Fabian Grünbichler [Thu, 17 Feb 2022 16:09:40 +0000 (17:09 +0100)]
initial commit

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>