5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2024-12-22 21:33:48 +03:00
Commit Graph

26 Commits

Author SHA1 Message Date
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