Wolfgang Link
3db33e1f60
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.
2015-11-14 18:32:55 +01:00
Dietmar Maurer
5a3a180e11
fix version inside Makefile
2015-11-06 16:52:26 +01:00
Dietmar Maurer
6d66325676
bump version to 1.6-5
2015-11-06 16:44:49 +01:00
Wolfgang Link
9303e6fc81
improve error msg
2015-11-06 16:44:10 +01:00
Wolfgang Link
aec521ca2e
fix disk parser
2015-11-06 16:43:29 +01:00
Dietmar Maurer
938ef92d6b
bump version to 1.6-4
2015-11-06 10:29:45 +01:00
Wolfgang Link
d9e8f4ec52
repair cleanup formating for man and remove for better handling the slashes at the end of pathes.
2015-11-06 10:26:57 +01:00
Wolfgang Link
eee21241ab
cleanup
2015-11-06 09:32:42 +01:00
Wolfgang Link
fac83537f9
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>
2015-11-06 09:31:32 +01:00
Wolfgang Link
739c195a0a
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.
2015-11-06 08:26:24 +01:00
Wolfgang Link
c9cbba3d63
extend send_config with method local
...
what can be used to make local backups
2015-11-06 08:22:43 +01:00
Wolfgang Link
9e7685c240
add disk parser for LXC
2015-11-06 08:21:44 +01:00
Wolfgang Link
ce6b324074
extend send_config: now it support's container too.
2015-11-06 08:20:10 +01:00
Wolfgang Link
67badfe4d6
update list output and include vmtype
2015-11-06 08:18:39 +01:00
Wolfgang Link
8fc69e3c5d
improve vm_exist: now it check both lxc and qemu and return the type of the VM
2015-11-06 08:04:08 +01:00
Wolfgang Link
cffc38e032
improve reliability and recover chnged snapshots on source
2015-11-06 08:01:57 +01:00
Dietmar Maurer
39597858ac
bump version to 1.6-3
2015-11-03 18:03:12 +01:00
Wolfgang Link
1193273e4e
fix to many slashes in recv pat
2015-11-03 18:02:19 +01:00
Dietmar Maurer
0be13fd9a2
bump version to 1.6-2
2015-10-16 11:01:28 +02:00
Wolfgang Bumiller
271c257224
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.
2015-10-16 11:00:21 +02:00
Wolfgang Bumiller
db2ce6d46d
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.
2015-10-16 11:00:18 +02:00
Wolfgang Bumiller
dc54fce83f
run_cmd: array support
2015-10-16 11:00:15 +02:00
Wolfgang Bumiller
3df8b97dc5
parse_disks: the pool comes first in the path
2015-10-16 11:00:13 +02:00
Wolfgang Bumiller
ea3ede00fb
parse_disks: don't drop the path inside the pool
2015-10-16 11:00:11 +02:00
Wolfgang Bumiller
b52d13b356
remove now unnecessary if($disk)
2015-10-16 11:00:07 +02:00
Wolfgang Bumiller
4f865f2805
regex deduplication
2015-10-16 11:00:05 +02:00
Wolfgang Bumiller
845e36d770
replace $is_disk with an early check
2015-10-16 11:00:03 +02:00
Wolfgang Bumiller
78cd57dd19
check for 'cdrom/none' storage early
2015-10-16 11:00:01 +02:00
Wolfgang Bumiller
21a673e6dd
Avoid 'no such file' error when no state exists.
2015-10-16 10:59:59 +02:00
Wolfgang Bumiller
78d36df775
typo fix: exsits -> exists
2015-10-16 10:59:56 +02:00
Dietmar Maurer
dc154242c4
bump version to 1.6-1
2015-09-18 16:18:54 +02:00
Wolfgang Link
032343be99
bump version 1.5-2
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-06-12 12:04:04 +02:00
Wolfgang Link
7e0605ccf5
Update man
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-06-12 12:04:01 +02:00
Wolfgang Link
a018f134d6
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>
2015-06-12 12:03:58 +02:00
Wolfgang Link
abb1fa1daa
fix incremental sync
...
wrong snapshot where be used.
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-06-12 09:15:24 +02:00
Wolfgang Link
6b4f676d3b
code cleanup and man
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-06-12 09:15:19 +02:00
Dietmar Maurer
f8c972a613
set RELEASE=3.4
2015-06-02 08:10:58 +02:00
Wolfgang Link
76b2c677f7
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>
2015-06-02 07:25:34 +02:00
Wolfgang Link
c85692fa38
code clean up
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-06-02 07:25:31 +02:00
Wolfgang Link
b08428108a
to ensure the speed limit and some other features serialize the script
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-05-19 07:40:43 +02:00
Wolfgang Link
28006d674a
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>
2015-05-19 07:40:33 +02:00
Wolfgang Link
2e8fd72a9e
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>
2015-05-19 07:40:23 +02:00
Wolfgang Link
d3e1a943ba
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>
2015-05-19 07:32:50 +02:00
Wolfgang Link
7d93705fdf
move send_config to pervert more then 1 config per sync
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-05-19 07:32:36 +02:00
Wolfgang Link
69c85433bd
insert check if disk is no zvol
...
this was before implemented wrong
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-05-19 07:32:27 +02:00
Wolfgang Link
4b5d3d9fe9
fix in cron_del multiple deletion and correct timestamp for deletion config
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-05-19 07:32:12 +02:00
Wolfgang Link
1a7871e795
add missing close for FH, also catch and handle exception.
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-05-19 07:32:03 +02:00
Wolfgang Link
ec89fa6dd4
sort all outputs and config files by source and name
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-05-19 07:31:48 +02:00
Wolfgang Link
8362418a9f
Code clean up and rename Debian packet name.
...
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-05-19 07:30:54 +02:00
Wolfgang Link
0bc3e51091
Initial Project
2015-05-06 11:45:10 +02:00