]> git.proxmox.com Git - pve-zsync.git/log
pve-zsync.git
7 years agobump version to 1.6-13
Wolfgang Bumiller [Tue, 17 Jan 2017 11:55:32 +0000 (12:55 +0100)]
bump version to 1.6-13

7 years agofix cut_taget_width
Wolfgang Link [Thu, 12 Jan 2017 10:56:53 +0000 (11:56 +0100)]
fix cut_taget_width

7 years agoFix #1245: Fix snapshot parser.
Wolfgang Link [Tue, 10 Jan 2017 09:56:52 +0000 (10:56 +0100)]
Fix #1245: Fix snapshot parser.

Make the snapshot parser more exact.
This avoid that a wrong snap-name will returned
if two or more job names has the same beginning.

7 years agouse new repoman for upload target
Dietmar Maurer [Tue, 6 Sep 2016 06:15:28 +0000 (08:15 +0200)]
use new repoman for upload target

7 years agobump version toö 1.6-12
Dietmar Maurer [Tue, 6 Sep 2016 06:13:28 +0000 (08:13 +0200)]
bump version toö 1.6-12

7 years agoAdd signal handling when we sync.
Wolfgang Link [Tue, 2 Aug 2016 10:24:50 +0000 (12:24 +0200)]
Add signal handling when we sync.

This gives the capability to clean up, if a error occurs.

7 years agoAdd ssh BatchMode.
Wolfgang Link [Tue, 2 Aug 2016 10:24:49 +0000 (12:24 +0200)]
Add ssh BatchMode.

In case of connection lost the ssh keeps the zfs receive running and it is not possible to make a new sync.

7 years agoRemove switch module.
Wolfgang Link [Tue, 2 Aug 2016 09:41:45 +0000 (11:41 +0200)]
Remove switch module.

Switch module is moved out the perl core.

7 years agobump version to 1.6-11
Dietmar Maurer [Thu, 16 Jun 2016 09:46:53 +0000 (11:46 +0200)]
bump version to 1.6-11

7 years agofix use path as source
Wolfgang Link [Wed, 15 Jun 2016 06:10:33 +0000 (08:10 +0200)]
fix use path as source

7 years agofix typo
Dietmar Maurer [Thu, 16 Jun 2016 09:44:31 +0000 (11:44 +0200)]
fix typo

7 years agoMake return value logical correct
Wolfgang Link [Wed, 15 Jun 2016 06:10:32 +0000 (08:10 +0200)]
Make return value logical correct

7 years agobump version to 1.6-10
Dietmar Maurer [Thu, 2 Jun 2016 08:58:13 +0000 (10:58 +0200)]
bump version to 1.6-10

7 years agofix #1004 adapt regex to new schema
Wolfgang Link [Thu, 2 Jun 2016 08:28:19 +0000 (10:28 +0200)]
fix #1004 adapt regex to new schema

8 years agobump version to 1.6-9
Dietmar Maurer [Wed, 9 Mar 2016 13:44:41 +0000 (14:44 +0100)]
bump version to 1.6-9

8 years agoFix variable name
Fabian Grünbichler [Wed, 9 Mar 2016 11:39:55 +0000 (12:39 +0100)]
Fix variable name

Since $param->{vmid} is never set, this check could not
trigger! using the correct $source->{vmid} works as expected

8 years agofix #910: Correctly handle undef
Fabian Grünbichler [Wed, 9 Mar 2016 11:39:54 +0000 (12:39 +0100)]
fix #910: Correctly handle undef

8 years agoset RELEASE=4.1
Dietmar Maurer [Mon, 8 Feb 2016 13:41:05 +0000 (14:41 +0100)]
set RELEASE=4.1

8 years agobump version to 1.6-8
Dietmar Maurer [Mon, 8 Feb 2016 13:40:22 +0000 (14:40 +0100)]
bump version to 1.6-8

8 years agofix #887 add "--limit" option to cron
Dominik Csapak [Mon, 8 Feb 2016 11:24:59 +0000 (12:24 +0100)]
fix #887 add "--limit" option to cron

add the --limit option when creating the cron entry

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agobump version to 1.6-7
Dietmar Maurer [Thu, 26 Nov 2015 11:08:30 +0000 (12:08 +0100)]
bump version to 1.6-7

8 years agosafer disk matching
Wolfgang Bumiller [Wed, 25 Nov 2015 07:40:48 +0000 (08:40 +0100)]
safer disk matching

8 years agobump version to 1.6-6
Dietmar Maurer [Sat, 14 Nov 2015 17:35:36 +0000 (18:35 +0100)]
bump version to 1.6-6

8 years agoChange output format for list and status
Wolfgang Link [Wed, 11 Nov 2015 07:22:00 +0000 (08:22 +0100)]
Change output format for list and status

8 years agofix bug #813: allow mountpoints or VMdisk which are not on zfs, if they are not inclu...
Wolfgang Link [Wed, 11 Nov 2015 09:24:52 +0000 (10:24 +0100)]
fix bug #813: allow mountpoints or VMdisk which are not on zfs, if they are not include in backup.

LXC: MP are in the default setting exclude from backup, so we do not sync mp at default.
if they have the flag backup=1 we sync them.
QEMU: VMDisk will be synced always except they have a flag backup=no.

8 years agofix version inside Makefile
Dietmar Maurer [Fri, 6 Nov 2015 15:52:26 +0000 (16:52 +0100)]
fix version inside Makefile

8 years agobump version to 1.6-5
Dietmar Maurer [Fri, 6 Nov 2015 15:44:49 +0000 (16:44 +0100)]
bump version to 1.6-5

8 years agoimprove error msg
Wolfgang Link [Fri, 6 Nov 2015 14:53:54 +0000 (15:53 +0100)]
improve error msg

8 years agofix disk parser
Wolfgang Link [Fri, 6 Nov 2015 14:53:53 +0000 (15:53 +0100)]
fix disk parser

8 years agobump version to 1.6-4
Dietmar Maurer [Fri, 6 Nov 2015 09:29:45 +0000 (10:29 +0100)]
bump version to 1.6-4

8 years agorepair cleanup formating for man and remove for better handling the slashes at the...
Wolfgang Link [Fri, 6 Nov 2015 09:14:35 +0000 (10:14 +0100)]
repair cleanup formating for man and remove for better handling the slashes at the end of pathes.

8 years agocleanup
Wolfgang Link [Fri, 6 Nov 2015 07:59:08 +0000 (08:59 +0100)]
cleanup

8 years agodecode in config name the type of config.
Wolfgang Link [Fri, 6 Nov 2015 07:59:07 +0000 (08:59 +0100)]
decode in config name the type of config.

The backuped config will now include in the name of the config file the type of vm.

<vmid>.conf.<type>.rep_<name_of_job>_<timestamp>

8 years agosave the config in an extra dir.
Wolfgang Link [Thu, 5 Nov 2015 08:02:40 +0000 (09:02 +0100)]
save the config in an extra dir.

The name of the dir, where the conf will be saved. Is the same name like the last subvol from the dest path.

8 years agoextend send_config with method local
Wolfgang Link [Thu, 5 Nov 2015 08:00:30 +0000 (09:00 +0100)]
extend send_config with method local

what can be used to make local backups

8 years agoadd disk parser for LXC
Wolfgang Link [Thu, 5 Nov 2015 08:00:29 +0000 (09:00 +0100)]
add disk parser for LXC

8 years agoextend send_config: now it support's container too.
Wolfgang Link [Thu, 5 Nov 2015 08:00:28 +0000 (09:00 +0100)]
extend send_config: now it support's container too.

8 years agoupdate list output and include vmtype
Wolfgang Link [Thu, 5 Nov 2015 08:00:27 +0000 (09:00 +0100)]
update list output and include vmtype

8 years agoimprove vm_exist: now it check both lxc and qemu and return the type of the VM
Wolfgang Link [Thu, 5 Nov 2015 08:00:26 +0000 (09:00 +0100)]
improve vm_exist: now it check both lxc and qemu and return the type of the VM

8 years agoimprove reliability and recover chnged snapshots on source
Wolfgang Link [Thu, 5 Nov 2015 07:56:27 +0000 (08:56 +0100)]
improve reliability and recover chnged snapshots on source

8 years agobump version to 1.6-3
Dietmar Maurer [Tue, 3 Nov 2015 17:03:12 +0000 (18:03 +0100)]
bump version to 1.6-3

8 years agofix to many slashes in recv pat
Wolfgang Link [Tue, 3 Nov 2015 11:06:28 +0000 (12:06 +0100)]
fix to many slashes in recv pat

8 years agobump version to 1.6-2
Dietmar Maurer [Fri, 16 Oct 2015 09:01:28 +0000 (11:01 +0200)]
bump version to 1.6-2

8 years agouse arrays for run_cmd and argument separators
Wolfgang Bumiller [Mon, 28 Sep 2015 09:40:12 +0000 (11:40 +0200)]
use arrays for run_cmd and argument separators

Using the array version of run_cmd to avoid quoting issues.
Added '--' argument separators where applicable for
correctness.

8 years agoparse_target/check_target: support ipv6 and hostnames
Wolfgang Bumiller [Mon, 28 Sep 2015 09:40:11 +0000 (11:40 +0200)]
parse_target/check_target: support ipv6 and hostnames

check_target only printed an error message without actually
exiting causing the program to abort later in the process
due to bad input - reusing parse_target now to also reduce
code.

8 years agorun_cmd: array support
Wolfgang Bumiller [Mon, 28 Sep 2015 09:40:10 +0000 (11:40 +0200)]
run_cmd: array support

8 years agoparse_disks: the pool comes first in the path
Wolfgang Bumiller [Mon, 28 Sep 2015 09:40:09 +0000 (11:40 +0200)]
parse_disks: the pool comes first in the path

8 years agoparse_disks: don't drop the path inside the pool
Wolfgang Bumiller [Mon, 28 Sep 2015 09:40:08 +0000 (11:40 +0200)]
parse_disks: don't drop the path inside the pool

8 years agoremove now unnecessary if($disk)
Wolfgang Bumiller [Mon, 28 Sep 2015 09:40:07 +0000 (11:40 +0200)]
remove now unnecessary if($disk)

8 years agoregex deduplication
Wolfgang Bumiller [Mon, 28 Sep 2015 09:40:06 +0000 (11:40 +0200)]
regex deduplication

8 years agoreplace $is_disk with an early check
Wolfgang Bumiller [Mon, 28 Sep 2015 09:40:05 +0000 (11:40 +0200)]
replace $is_disk with an early check

8 years agocheck for 'cdrom/none' storage early
Wolfgang Bumiller [Mon, 28 Sep 2015 09:40:04 +0000 (11:40 +0200)]
check for 'cdrom/none' storage early

8 years agoAvoid 'no such file' error when no state exists.
Wolfgang Bumiller [Mon, 28 Sep 2015 09:40:03 +0000 (11:40 +0200)]
Avoid 'no such file' error when no state exists.

8 years agotypo fix: exsits -> exists
Wolfgang Bumiller [Mon, 28 Sep 2015 09:40:02 +0000 (11:40 +0200)]
typo fix: exsits -> exists

8 years agobump version to 1.6-1
Dietmar Maurer [Fri, 18 Sep 2015 14:18:54 +0000 (16:18 +0200)]
bump version to 1.6-1

8 years agobump version 1.5-2
Wolfgang Link [Fri, 12 Jun 2015 09:52:09 +0000 (11:52 +0200)]
bump version 1.5-2

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agoUpdate man
Wolfgang Link [Fri, 12 Jun 2015 09:52:08 +0000 (11:52 +0200)]
Update man

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agoChange behavior at error
Wolfgang Link [Fri, 12 Jun 2015 09:52:07 +0000 (11:52 +0200)]
Change behavior at error

Now if an error occurs, the job will not stopped.
It will continue and send emails so long the error is gone or somebody stopped it.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agofix incremental sync
Wolfgang Link [Thu, 11 Jun 2015 12:22:30 +0000 (14:22 +0200)]
fix incremental sync

wrong snapshot where be used.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agocode cleanup and man
Wolfgang Link [Thu, 11 Jun 2015 12:22:27 +0000 (14:22 +0200)]
code cleanup and man

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agoset RELEASE=3.4
Dietmar Maurer [Tue, 2 Jun 2015 06:10:58 +0000 (08:10 +0200)]
set RELEASE=3.4

8 years agoChanging config and state!
Wolfgang Link [Mon, 1 Jun 2015 14:23:04 +0000 (16:23 +0200)]
Changing config and state!

Now there is only one state file /var/lib/$PROGNAME/sync_state and the config is in the crontab.
Also there is no interval any more. you have to set it yourself in crontab.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agocode clean up
Wolfgang Link [Mon, 1 Jun 2015 14:23:03 +0000 (16:23 +0200)]
code clean up

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agoto ensure the speed limit and some other features serialize the script
Wolfgang Link [Tue, 19 May 2015 05:02:54 +0000 (07:02 +0200)]
to ensure the speed limit and some other features serialize the script

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agoinsert new function enable and disable
Wolfgang Link [Tue, 19 May 2015 05:02:53 +0000 (07:02 +0200)]
insert new function enable and disable

this function you are able to stop and start a scheduled job.
also for better handling change cron_add,cron_del to write_to_cron

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agoremove cron entry if sync-job failed and move cron EVN setting
Wolfgang Link [Tue, 19 May 2015 05:02:52 +0000 (07:02 +0200)]
remove cron entry if sync-job failed and move cron EVN setting

If a Sync-job crash it should stop trying to sync until somebody checked it.
moving the cron EVN to the code is necessary to prevent at updating that the file will be over written.
rename delete_corn to delete_configs
the function also deletes the config entry

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agorename locked in status what is set in pve-zsync.cfg file
Wolfgang Link [Tue, 19 May 2015 05:02:51 +0000 (07:02 +0200)]
rename locked in status what is set in pve-zsync.cfg file

so we can different more states for error handling and maintenance.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agomove send_config to pervert more then 1 config per sync
Wolfgang Link [Tue, 19 May 2015 05:02:50 +0000 (07:02 +0200)]
move send_config to pervert more then 1 config per sync

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agoinsert check if disk is no zvol
Wolfgang Link [Tue, 19 May 2015 05:02:49 +0000 (07:02 +0200)]
insert check if disk is no zvol

this was before implemented wrong

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agofix in cron_del multiple deletion and correct timestamp for deletion config
Wolfgang Link [Tue, 19 May 2015 05:02:48 +0000 (07:02 +0200)]
fix in cron_del multiple deletion and correct timestamp for deletion config

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agoadd missing close for FH, also catch and handle exception.
Wolfgang Link [Tue, 19 May 2015 05:02:47 +0000 (07:02 +0200)]
add missing close for FH, also catch and handle exception.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agosort all outputs and config files by source and name
Wolfgang Link [Tue, 19 May 2015 05:02:46 +0000 (07:02 +0200)]
sort all outputs and config files by source and name

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agoCode clean up and rename Debian packet name.
Wolfgang Link [Tue, 19 May 2015 05:02:45 +0000 (07:02 +0200)]
Code clean up and rename Debian packet name.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
8 years agoInitial Project
Wolfgang Link [Wed, 6 May 2015 09:45:10 +0000 (11:45 +0200)]
Initial Project