]> git.proxmox.com Git - pve-zsync.git/log
pve-zsync.git
6 days agobump version to 2.3.1 master
Fiona Ebner [Fri, 12 Apr 2024 07:10:39 +0000 (09:10 +0200)]
bump version to 2.3.1

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
7 days agoparse disks: improve error messages
Fiona Ebner [Tue, 12 Sep 2023 12:29:54 +0000 (14:29 +0200)]
parse disks: improve error messages

The one with the backup flag was reported in the community forum:
https://forum.proxmox.com/threads/77254/

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
10 months agobump version to 2.3.0
Fiona Ebner [Wed, 24 May 2023 11:55:27 +0000 (13:55 +0200)]
bump version to 2.3.0

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
 [ T: only bump minor version for a plain re-build, to avoid that
 users are getting their hopes up to much for a lot new features ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
10 months agod/control: define compat level via build-depends and raise to 13
Fiona Ebner [Wed, 24 May 2023 11:52:56 +0000 (13:52 +0200)]
d/control: define compat level via build-depends and raise to 13

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
10 months agod/copyright: convert to machine-readable copyright
Fiona Ebner [Wed, 24 May 2023 12:31:32 +0000 (14:31 +0200)]
d/copyright: convert to machine-readable copyright

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
10 months agobuildsys: use correct URL when generating d/SOURCE
Fiona Ebner [Wed, 24 May 2023 12:48:19 +0000 (14:48 +0200)]
buildsys: use correct URL when generating d/SOURCE

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
10 months agobuildsys: do not specify no-pre-clean option
Fiona Ebner [Wed, 24 May 2023 11:59:02 +0000 (13:59 +0200)]
buildsys: do not specify no-pre-clean option

Otherwise, calling 'make dsc' after 'make deb' leads to the source
package having the additional files:
debian/.debhelper/
debian/pve-zsync.substvars
which lintian helpfully complains about.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
10 months agobuildsys: expand clean target
Fiona Ebner [Wed, 24 May 2023 11:48:49 +0000 (13:48 +0200)]
buildsys: expand clean target

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
10 months agobuildsys: add sbuild target for convenience
Fiona Ebner [Wed, 24 May 2023 11:49:50 +0000 (13:49 +0200)]
buildsys: add sbuild target for convenience

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
10 months agobuildsys: derive upload dist automatically
Fiona Ebner [Wed, 24 May 2023 11:46:22 +0000 (13:46 +0200)]
buildsys: derive upload dist automatically

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
10 months agobuildsys: create build directory atomically
Fiona Ebner [Wed, 24 May 2023 11:44:06 +0000 (13:44 +0200)]
buildsys: create build directory atomically

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
10 months agomakefile: convert to use simple parenthesis
Fiona Ebner [Wed, 24 May 2023 11:39:54 +0000 (13:39 +0200)]
makefile: convert to use simple parenthesis

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
14 months agod/control: add missing (build-)dependencies
Fabian Grünbichler [Fri, 20 Jan 2023 13:25:33 +0000 (14:25 +0100)]
d/control: add missing (build-)dependencies

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
23 months agobump version to 2.2.3
Thomas Lamprecht [Thu, 12 May 2022 15:15:53 +0000 (17:15 +0200)]
bump version to 2.2.3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
23 months agoclose #1824: add 'compressed' option enabling -c and -L for send
Fabian Ebner [Tue, 10 May 2022 11:19:15 +0000 (13:19 +0200)]
close #1824: add 'compressed' option enabling -c and -L for send

If one of the features lz4_compress, zstd_compress or large_blocks is
actively used/required by the source dataset, but not enabled on the
destination, zfs send/recv will fail and recommend upgrading the pool.

It's not required that the target dataset is also compressed.
Specifying '--properties' to have the target inherit the compression
property even works during later syncs (but pre-existing data won't be
recompressed automatically then).

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agobump version to 2.2.2
Thomas Lamprecht [Tue, 22 Feb 2022 12:24:50 +0000 (13:24 +0100)]
bump version to 2.2.2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoparse cron: properly split commandline
Fabian Ebner [Tue, 22 Feb 2022 09:12:29 +0000 (10:12 +0100)]
parse cron: properly split commandline

Reported in the community forum:
https://forum.proxmox.com/threads/105254/

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agorename encode_cron to parse_cron
Fabian Ebner [Mon, 21 Feb 2022 09:07:49 +0000 (10:07 +0100)]
rename encode_cron to parse_cron

The old name is confusing, because "encode" is usually not used when
converting from text to a data structure.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agobuildsys: change upload dist to bullseye
Thomas Lamprecht [Wed, 12 Jan 2022 17:34:13 +0000 (18:34 +0100)]
buildsys: change upload dist to bullseye

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobump version to 2.2.1
Thomas Lamprecht [Wed, 12 Jan 2022 17:33:05 +0000 (18:33 +0100)]
bump version to 2.2.1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoadd tpmstate to disk keys
Fabian Ebner [Mon, 3 Jan 2022 10:17:20 +0000 (11:17 +0100)]
add tpmstate to disk keys

Ensures that a TPM state volume is synced too.

Reported on the PVE-User mailing list:
https://lists.proxmox.com/pipermail/pve-user/2021-December/172944.html

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agobump version to 2.2
Thomas Lamprecht [Tue, 25 May 2021 11:59:43 +0000 (13:59 +0200)]
bump version to 2.2

switch to native versioning as this is a purely Proxmox-native package

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodebian: update dh compat level to 12
Thomas Lamprecht [Tue, 25 May 2021 11:59:35 +0000 (13:59 +0200)]
debian: update dh compat level to 12

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #3351: allow keeping a different number of snapshots on source and destination
Fabian Ebner [Tue, 11 May 2021 12:59:55 +0000 (14:59 +0200)]
fix #3351: allow keeping a different number of snapshots on source and destination

by introducing a new dest-maxsnap parameter which can be used to override
maxsnap for the destination side.

This is useful for backups, as one can potentially save a lot of space on the
source side (or the destination side if one can come up with a use case for
that) by keeping fewer snapshots around.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agosnapshot_destroy: make interface agnostic to source/dest
Fabian Ebner [Tue, 11 May 2021 12:59:54 +0000 (14:59 +0200)]
snapshot_destroy: make interface agnostic to source/dest

Also drop the 'method' parameter which is not used consistently (e.g. ignored
in the later half of the very same function, in snapshot_exist, vm_exists,...),
and not documented. Simply rely on the presence of the IP address as is done in
many other places already.

In snapshot_add, there is no need to try and destroy the snapshot on the
destination (did happen previously, because $dest was passed along), because we
just failed to create the snapshot on the source side.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agosnapshot_get: make interface agnostic to source/dest
Fabian Ebner [Tue, 11 May 2021 12:59:53 +0000 (14:59 +0200)]
snapshot_get: make interface agnostic to source/dest

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoremove all old snapshots belonging to a job
Fabian Ebner [Tue, 11 May 2021 12:59:52 +0000 (14:59 +0200)]
remove all old snapshots belonging to a job

Changing maxsnap to something smaller can lead to left-over snaphsots otherwise,
as previously at most one snapshot would be removed, even if there are multiple
old snapshots according to the new setting.

Hopefully nobody relied on the fact that pve-zsync didn't clean up after itself
in such cases...

Negative values and 0 for 'maxsnap' should still be interpreted as infinity to
match the previous behavior.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agousage: improve maxsnap description
Fabian Ebner [Tue, 11 May 2021 12:59:51 +0000 (14:59 +0200)]
usage: improve maxsnap description

and also mention that 0 means unlimited.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoparam_to_job: handle --maxsnap 0 on creation
Fabian Ebner [Tue, 11 May 2021 12:59:50 +0000 (14:59 +0200)]
param_to_job: handle --maxsnap 0 on creation

format_job expects the value to be set, so creating a job with '--maxsnap 0' led
to '--maxsnap' being written without an argument, and thus a (for zsync)
unparsable cron file.

However, issuing sync jobs via CLI with '--maxsnap 0' works with 0 being treated
as unlimited. There is a default value, so no need to worry about definedness,
simply pass along the value.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agobump version to 2.1-1
Thomas Lamprecht [Tue, 4 May 2021 12:37:15 +0000 (14:37 +0200)]
bump version to 2.1-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoman/pod: rework and reword
Thomas Lamprecht [Tue, 4 May 2021 12:36:38 +0000 (14:36 +0200)]
man/pod: rework and reword

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoman/pod: move full synopsis below description
Thomas Lamprecht [Tue, 4 May 2021 12:35:33 +0000 (14:35 +0200)]
man/pod: move full synopsis below description

so that people get to read a short description before viewing the
rather large full command and option synopsis.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agodocs: use standard long-opt double --arg
Thomas Lamprecht [Tue, 4 May 2021 12:23:35 +0000 (14:23 +0200)]
docs: use standard long-opt double --arg

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agoavoid odd post-if style for die
Thomas Lamprecht [Tue, 4 May 2021 10:13:34 +0000 (12:13 +0200)]
avoid odd post-if style for die

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix a variable declared in conditional statement
Thomas Lamprecht [Tue, 4 May 2021 10:13:18 +0000 (12:13 +0200)]
fix a variable declared in conditional statement

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agofix #1669: add prepend-storage-id flag
Fabian Ebner [Tue, 4 May 2021 08:10:04 +0000 (10:10 +0200)]
fix #1669: add prepend-storage-id flag

so one can set up jobs for guests with disks with the same name on different
storages. For example,
    storageA:vm-123-disk-0
    storageB:vm-123-disk-0
will be synced to
    target/storageA/vm-123-disk-0
    target/storageB/vm-123-disk-0
when the flag is specified.

The necessary parent file systems (one per storage ID) are created as needed.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoparse disks: also include storage ID information
Fabian Ebner [Tue, 4 May 2021 08:10:03 +0000 (10:10 +0200)]
parse disks: also include storage ID information

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoparse disks: don't include colon in storage name variable
Fabian Ebner [Tue, 4 May 2021 08:10:02 +0000 (10:10 +0200)]
parse disks: don't include colon in storage name variable

in preparation to re-use it elsewhere.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoadd create_file_system function
Fabian Ebner [Tue, 4 May 2021 08:10:01 +0000 (10:10 +0200)]
add create_file_system function

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoadd check_dataset_exists function
Fabian Ebner [Tue, 4 May 2021 08:10:00 +0000 (10:10 +0200)]
add check_dataset_exists function

as a generalization and replacement of check_pool_exists.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agoadd target_dataset function
Fabian Ebner [Tue, 4 May 2021 08:09:59 +0000 (10:09 +0200)]
add target_dataset function

so the logic can be re-used and extended in a single place.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agousage: fix type for maxsnap
Fabian Ebner [Tue, 4 May 2021 08:09:58 +0000 (10:09 +0200)]
usage: fix type for maxsnap

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agousage: describe flag parameters correctly
Fabian Ebner [Tue, 4 May 2021 08:09:57 +0000 (10:09 +0200)]
usage: describe flag parameters correctly

It's not possible to provide a false value. From the documentation for
GetOptionsFromArray:
    The argument specification is optional. If omitted, the option is considered
    boolean, a value of 1 will be assigned when the option is used on the
    command line.

Make it clear that specifying the flag alone already enables it.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agocopyright: update year
Fabian Ebner [Tue, 4 May 2021 08:09:56 +0000 (10:09 +0200)]
copyright: update year

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
2 years agowhitespace fix
Fabian Ebner [Tue, 4 May 2021 08:09:55 +0000 (10:09 +0200)]
whitespace fix

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agofix #2821: only abort if there really is a waiting/syncing job
Fabian Ebner [Thu, 17 Dec 2020 14:17:39 +0000 (15:17 +0100)]
fix #2821: only abort if there really is a waiting/syncing job

by remembering the process via PID+start time+boot ID and checking for that
information in the new instance. If the old instance can't be found, the new
one will continue and register itself in the state.

After updating the pve-zsync package, if there is a waiting instance running the
old version, one more might be created, because there is no instance_id yet. But
the new instance will set the instance_id, which any later instance will see.

More importantly, if the state is wrongly 'waiting' or 'syncing', i.e.
because an instance was terminated before finishing, we don't abort anymore and
recover from the wrong state, thus fixing the bug.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agointroduce and use read_file helper
Fabian Ebner [Thu, 17 Dec 2020 14:17:38 +0000 (15:17 +0100)]
introduce and use read_file helper

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agoremove unused function write_cron
Fabian Ebner [Thu, 17 Dec 2020 14:17:37 +0000 (15:17 +0100)]
remove unused function write_cron

Commit 76b2c677f7a2fd81a990533b317374d168d1d918 replaced it with
update_cron.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
3 years agobump version to 2.0-4
Dietmar Maurer [Thu, 26 Nov 2020 04:57:22 +0000 (05:57 +0100)]
bump version to 2.0-4

3 years agopve-zsync: Flip Source and Dest in functions to so jobs can share Dest
Bruce Wainer [Tue, 16 Jun 2020 18:53:35 +0000 (14:53 -0400)]
pve-zsync: Flip Source and Dest in functions to so jobs can share Dest

Signed-off-by: Bruce Wainer <brwainer@gmail.com>
Tested-by: Wolfgang Link <w.link@proxmox.com>
Reviewed-by: Wolfgang Link <w.link@proxmox.com>
4 years agobump version to 2.0-3
Thomas Lamprecht [Mon, 23 Mar 2020 17:37:30 +0000 (18:37 +0100)]
bump version to 2.0-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocheck for correct incremental sync snapshot on destination
Wolfgang Link [Wed, 18 Mar 2020 06:51:12 +0000 (07:51 +0100)]
check for correct incremental sync snapshot on destination

For an incremental sync you need the last_snap on both sides. The
call to the zfs list contains the snapshot. If the snapshot does not
exist, the command is returned with an error that we are catching.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Reviewed-By: Fabian Ebner <f.ebner@proxmox.com>
Tested-By: Fabian Ebner <f.ebner@proxmox.com>
4 years agoRevert "fix: check for incremental sync snapshot."
Thomas Lamprecht [Thu, 19 Mar 2020 12:02:02 +0000 (13:02 +0100)]
Revert "fix: check for incremental sync snapshot."

This reverts commit 723623e8850f0f78cfce6d0c123c68b621184a71.

4 years agofix: check for incremental sync snapshot.
Wolfgang Link [Wed, 18 Mar 2020 06:51:12 +0000 (07:51 +0100)]
fix: check for incremental sync snapshot.

For an incremental sync you need the last_snap on both sides.

4 years agobump version to 2.0-2
Thomas Lamprecht [Mon, 27 Jan 2020 17:48:10 +0000 (18:48 +0100)]
bump version to 2.0-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoAdd efidisk as a valid disk key
Fabian Ebner [Mon, 27 Jan 2020 09:47:38 +0000 (10:47 +0100)]
Add efidisk as a valid disk key

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
4 years agoFactor out the regular expression for disk keys as a variable
Fabian Ebner [Mon, 27 Jan 2020 09:47:37 +0000 (10:47 +0100)]
Factor out the regular expression for disk keys as a variable

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
4 years agorefactor cleanup code
Thomas Lamprecht [Fri, 11 Oct 2019 10:08:14 +0000 (12:08 +0200)]
refactor cleanup code

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoCheck whether job has been disabled while waiting/syncing
Fabian Ebner [Thu, 10 Oct 2019 09:55:17 +0000 (11:55 +0200)]
Check whether job has been disabled while waiting/syncing

There are two new checks that allow disabling a job while
it is 'syncing' or 'waiting'. Previously when sync finished
it would re-enable such a job involuntarily.
Disabling a 'waiting' job causes it to not sync anymore.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
4 years agoDetect other running instances of the same job
Fabian Ebner [Thu, 10 Oct 2019 09:55:16 +0000 (11:55 +0200)]
Detect other running instances of the same job

A 'waiting' state is introduced and other 'waiting' and 'syncing'
instances of the same job are now detected by moving the check out
from the sync lock.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
4 years agoImprove read-modify-write enclosures
Fabian Ebner [Thu, 10 Oct 2019 09:55:15 +0000 (11:55 +0200)]
Improve read-modify-write enclosures

Previously inside sync we just called update_job directly, now
we make sure to read the latest verison of the job first.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
4 years agoRefactor locking
Fabian Ebner [Thu, 10 Oct 2019 09:55:14 +0000 (11:55 +0200)]
Refactor locking

This introduces a new locked() mechanism allowing to enclose locked
sections in a cleaner way. There's only two types of locks namely one
for state and cron (they are always read together and almost always
written together) and one for sync.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
4 years agobuildsys: switch upload dist over to buster
Thomas Lamprecht [Thu, 23 May 2019 16:18:32 +0000 (18:18 +0200)]
buildsys: switch upload dist over to buster

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 2.0-1
Thomas Lamprecht [Thu, 23 May 2019 15:46:52 +0000 (17:46 +0200)]
bump version to 2.0-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobuildsys: use dpkg-dev makefile helpers for pkg info
Thomas Lamprecht [Thu, 23 May 2019 15:42:54 +0000 (17:42 +0200)]
buildsys: use dpkg-dev makefile helpers for pkg info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 1.7-4
Thomas Lamprecht [Thu, 4 Apr 2019 14:30:34 +0000 (16:30 +0200)]
bump version to 1.7-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoclose #1933: add -dest-config-path option
Mira Limbeck [Wed, 3 Apr 2019 12:23:04 +0000 (14:23 +0200)]
close #1933: add -dest-config-path option

this allows the config dir to be set on the destination target. this can
be useful if the default path in $CONFIG_PATH (/var/lib/pve-zsync) is not
persistent. the option is optional and falls back to $CONFIG_PATH if not
specified.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
5 years agosend_config: small code cleanup
Thomas Lamprecht [Mon, 1 Apr 2019 14:27:22 +0000 (16:27 +0200)]
send_config: small code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobuildsys: add dsc target
Thomas Lamprecht [Sun, 31 Mar 2019 13:52:20 +0000 (15:52 +0200)]
buildsys: add dsc target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 1.7-3
Thomas Lamprecht [Thu, 7 Mar 2019 10:33:42 +0000 (11:33 +0100)]
bump version to 1.7-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoallow to set DEBUG over environment and load Data::Dumper conditionally
Thomas Lamprecht [Thu, 7 Mar 2019 10:32:07 +0000 (11:32 +0100)]
allow to set DEBUG over environment and load Data::Dumper conditionally

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoimprove signal handler, print error
Thomas Lamprecht [Thu, 7 Mar 2019 08:46:57 +0000 (09:46 +0100)]
improve signal handler, print error

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoreplace File::Copy::move with built-in rename
Thomas Lamprecht [Thu, 7 Mar 2019 08:45:27 +0000 (09:45 +0100)]
replace File::Copy::move with built-in rename

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofollowup: pass properties without value
Thomas Lamprecht [Thu, 7 Mar 2019 08:43:36 +0000 (09:43 +0100)]
followup: pass properties without value

our GetOPts definition of it does not defines a value, so use it as
boolean flag like 'verbose' and either pass ther param or not.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoFix #1381: add flag allowing one to send zfs properties
Wolfgang Link [Wed, 6 Mar 2019 14:43:42 +0000 (15:43 +0100)]
Fix #1381: add flag allowing one to send zfs properties

Add properties flag for including the properties in the send stream.

With the flag, we do not break the current behavior and give the user
who like to sync their properties the possibility to do so.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobump version to 1.7-2
Thomas Lamprecht [Thu, 22 Nov 2018 14:10:43 +0000 (15:10 +0100)]
bump version to 1.7-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agovm_exists: directly check if we look for local guest
Thomas Lamprecht [Mon, 19 Nov 2018 16:56:33 +0000 (17:56 +0100)]
vm_exists: directly check if we look for local guest

no need to make a call to ls if we just can check directly..

also remove a (possible problematic)
> my $foo = 'bar' if $boolean;
construct

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix #1587: sync: check if job state is defined
Thomas Lamprecht [Mon, 19 Nov 2018 16:56:32 +0000 (17:56 +0100)]
fix #1587: sync: check if job state is defined

just because the $job hash is populated it's state key doesn't needs
to be..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix another case where source-user was used to connect to dest
Thomas Lamprecht [Sat, 17 Nov 2018 14:35:24 +0000 (15:35 +0100)]
fix another case where source-user was used to connect to dest

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix a case where source-user was used to connect to dest
Thomas Lamprecht [Sat, 17 Nov 2018 14:26:11 +0000 (15:26 +0100)]
fix a case where source-user was used to connect to dest

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix #1907: cron entry duplicated on disable/enable
David [Thu, 13 Sep 2018 09:04:54 +0000 (11:04 +0200)]
fix #1907: cron entry duplicated on disable/enable

match the interval in front of the first root

Signed-off-by: David <d.limbeck@proxmox.com>
5 years agobump version to 1.7-1
Thomas Lamprecht [Fri, 24 Aug 2018 09:45:09 +0000 (11:45 +0200)]
bump version to 1.7-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agocleanup ugly hash usage
Thomas Lamprecht [Fri, 24 Aug 2018 09:40:46 +0000 (11:40 +0200)]
cleanup ugly hash usage

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agofix #1860 added ability to specify source and destination user
David Limbeck [Tue, 21 Aug 2018 09:40:17 +0000 (11:40 +0200)]
fix #1860 added ability to specify source and destination user

source user and destination user can be specified with -source-user and
-dest-user, root is chosen if none is specified, -source-user is invalid
for VMs as source

requires zfs permissions on source and destination target
destination dataset has to be created already but not mounted

5 years agoactually print request command help
Thomas Lamprecht [Wed, 6 Jun 2018 06:38:09 +0000 (08:38 +0200)]
actually print request command help

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobuildsys: convert to dpkg-buildpackage and cleanup
Thomas Lamprecht [Wed, 6 Jun 2018 06:20:47 +0000 (08:20 +0200)]
buildsys: convert to dpkg-buildpackage and cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobuildsys: fix upload target
Thomas Lamprecht [Tue, 5 Jun 2018 14:03:38 +0000 (16:03 +0200)]
buildsys: fix upload target

5 years agobum version to 1.6-16
Thomas Lamprecht [Tue, 5 Jun 2018 13:28:52 +0000 (15:28 +0200)]
bum version to 1.6-16

5 years agodon't check binaries for help and printpod commands
Wolfgang Bumiller [Tue, 15 May 2018 11:38:57 +0000 (13:38 +0200)]
don't check binaries for help and printpod commands

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
5 years agorefactor synopsis handling
Thomas Lamprecht [Fri, 9 Mar 2018 15:55:43 +0000 (16:55 +0100)]
refactor synopsis handling

move command synopsis help into the "known command" hash
use that to generalise parameter checking, printing help and
generating POD synopsis

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agodo not duplicate common docs for CLI help and manpage
Thomas Lamprecht [Fri, 9 Mar 2018 15:55:42 +0000 (16:55 +0100)]
do not duplicate common docs for CLI help and manpage

add a hidden command which prints the POD of pve-zsync, reusing the
documentation for pve-zsync help CMD

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoFix: You can now use the pool as replication source.
Wolfgang Link [Fri, 17 Nov 2017 12:34:57 +0000 (13:34 +0100)]
Fix: You can now use the pool as replication source.

In previous version you need a dataset as replication source.

6 years agofix 'use of unitialized value' warning for help command
Thomas Lamprecht [Fri, 9 Mar 2018 10:46:23 +0000 (11:46 +0100)]
fix 'use of unitialized value' warning for help command

6 years agofix indetation of file
Thomas Lamprecht [Fri, 9 Mar 2018 10:41:05 +0000 (11:41 +0100)]
fix indetation of file

6 years agofixup HEREDOC usage
Thomas Lamprecht [Fri, 9 Mar 2018 10:29:33 +0000 (11:29 +0100)]
fixup HEREDOC usage

6 years agouse for help HEREDOC to make it better readable.
Wolfgang Link [Fri, 9 Mar 2018 09:46:10 +0000 (10:46 +0100)]
use for help HEREDOC to make it better readable.

6 years agoadd undocumented feature in help.
Wolfgang Link [Fri, 9 Mar 2018 09:46:09 +0000 (10:46 +0100)]
add undocumented feature in help.

6 years agobump version to 1.6-15
Wolfgang Bumiller [Fri, 7 Jul 2017 07:45:06 +0000 (09:45 +0200)]
bump version to 1.6-15

6 years agoFix send_config with IPv6
Wolfgang Link [Thu, 6 Jul 2017 14:22:58 +0000 (16:22 +0200)]
Fix send_config with IPv6

Add square brackets on IP.

7 years agofix check for cdrom.
Wolfgang Link [Thu, 23 Mar 2017 10:14:37 +0000 (11:14 +0100)]
fix check for cdrom.

It is false positive if cache mode is set to none.