5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-01-04 13:17:36 +03:00
Commit Graph

125 Commits

Author SHA1 Message Date
Fabian Ebner
8ab5db491f 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>
2019-10-11 11:51:16 +02:00
Fabian Ebner
af5cd408b0 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>
2019-10-11 11:51:16 +02:00
Fabian Ebner
96ed817693 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>
2019-10-11 11:51:16 +02:00
Thomas Lamprecht
f1616f20eb buildsys: switch upload dist over to buster
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-23 18:18:32 +02:00
Thomas Lamprecht
fafe736a7f bump version to 2.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-23 17:46:52 +02:00
Thomas Lamprecht
5058ccf18c buildsys: use dpkg-dev makefile helpers for pkg info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-23 17:42:54 +02:00
Thomas Lamprecht
9749f08ffc bump version to 1.7-4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 16:30:34 +02:00
Mira Limbeck
7ee3e8e09b 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>
2019-04-04 16:29:13 +02:00
Thomas Lamprecht
37bdf05344 send_config: small code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-01 16:27:22 +02:00
Thomas Lamprecht
627130a216 buildsys: add dsc target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-31 15:52:20 +02:00
Thomas Lamprecht
eb91dbe4b3 bump version to 1.7-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-07 12:05:03 +01:00
Thomas Lamprecht
8e9ef0caac allow to set DEBUG over environment and load Data::Dumper conditionally
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-07 12:05:03 +01:00
Thomas Lamprecht
61ed255c3a improve signal handler, print error
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-07 12:05:03 +01:00
Thomas Lamprecht
4fec932c7d replace File::Copy::move with built-in rename
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-07 12:05:03 +01:00
Thomas Lamprecht
cd9247d50b 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>
2019-03-07 12:05:03 +01:00
Wolfgang Link
70253912d0 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>
2019-03-07 12:04:08 +01:00
Thomas Lamprecht
942049e6ed bump version to 1.7-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-11-22 15:10:43 +01:00
Thomas Lamprecht
4fe8bd742e 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>
2018-11-20 15:46:25 +01:00
Thomas Lamprecht
9039b8bf87 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>
2018-11-20 15:46:25 +01:00
Thomas Lamprecht
c9e2de9409 fix another case where source-user was used to connect to dest
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-11-17 15:35:24 +01:00
Thomas Lamprecht
d034d43881 fix a case where source-user was used to connect to dest
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-11-17 15:26:11 +01:00
David
f219b8fd1b 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>
2018-09-18 10:07:57 +02:00
Thomas Lamprecht
114df87800 bump version to 1.7-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-08-24 11:45:39 +02:00
Thomas Lamprecht
5dbe7f7f0c cleanup ugly hash usage
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-08-24 11:45:39 +02:00
David Limbeck
eac174d718 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
2018-08-24 11:45:32 +02:00
Thomas Lamprecht
e9301b73c7 actually print request command help
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-06 08:38:13 +02:00
Thomas Lamprecht
d93352e935 buildsys: convert to dpkg-buildpackage and cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-06 08:21:05 +02:00
Thomas Lamprecht
29274a3aaa buildsys: fix upload target 2018-06-05 16:03:38 +02:00
Thomas Lamprecht
65248d828a bum version to 1.6-16 2018-06-05 15:37:36 +02:00
Wolfgang Bumiller
ae7b5f4c60 don't check binaries for help and printpod commands
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-05-15 13:53:05 +02:00
Thomas Lamprecht
fdb4de53b7 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>
2018-05-15 13:33:05 +02:00
Thomas Lamprecht
956c788590 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>
2018-05-15 13:33:05 +02:00
Wolfgang Link
c613b5f1d2 Fix: You can now use the pool as replication source.
In previous version you need a dataset as replication source.
2018-03-21 13:53:24 +01:00
Thomas Lamprecht
dfd3d83424 fix 'use of unitialized value' warning for help command 2018-03-09 11:46:30 +01:00
Thomas Lamprecht
ce6bc53ea7 fix indetation of file 2018-03-09 11:41:05 +01:00
Thomas Lamprecht
7d54b8ba78 fixup HEREDOC usage 2018-03-09 11:29:33 +01:00
Wolfgang Link
6bae4d8e6d use for help HEREDOC to make it better readable. 2018-03-09 11:02:48 +01:00
Wolfgang Link
db24d113f7 add undocumented feature in help. 2018-03-09 11:02:48 +01:00
Wolfgang Bumiller
d907cfd7bb bump version to 1.6-15 2017-07-07 09:45:06 +02:00
Wolfgang Link
57e0588db3 Fix send_config with IPv6
Add square brackets on IP.
2017-07-07 09:31:55 +02:00
Wolfgang Link
354f36342a fix check for cdrom.
It is false positive if cache mode is set to none.
2017-03-23 11:35:11 +01:00
Wolfgang Bumiller
b415117382 bump version to 1.6-14 2017-03-17 15:42:33 +01:00
Wolfgang Bumiller
9553d0bead clean target update 2017-03-17 15:42:33 +01:00
Wolfgang Bumiller
44408b4a3a cleanup: minor code deduplication 2017-03-17 15:37:23 +01:00
Wolfgang Link
0cb441cbe0 Improve error handling in parse_disk. 2017-03-17 15:34:08 +01:00
Wolfgang Link
1fe362eb85 fix #1301 skip if mp has no backup flag. 2017-03-17 15:34:08 +01:00
Wolfgang Link
968cdfe85c fix wrong quoting in qemu disk check. 2017-03-17 15:34:08 +01:00
Fabian Grünbichler
6a0d921c82 buildsys: add lintian call 2017-02-13 14:28:15 +01:00
Fabian Grünbichler
3691fb18d6 buildsys: use fakeroot for dpkg-deb 2017-02-13 14:28:06 +01:00
Fabian Grünbichler
d79cb93dd5 buildsys: job safety 2017-02-13 14:27:50 +01:00