Update JPS
parent
b0d329fa90
commit
d1ff5804f1
86
manifest.jps
86
manifest.jps
|
@ -22,6 +22,14 @@ settings:
|
||||||
values:
|
values:
|
||||||
- value: 1
|
- value: 1
|
||||||
caption: Pre-defined
|
caption: Pre-defined
|
||||||
|
- value: 2
|
||||||
|
caption: Custom
|
||||||
|
- value: 3
|
||||||
|
caption: Manual (crontab)
|
||||||
|
tooltip: "<span>A simple <a href=\"https://en.wikipedia.org/wiki/Cron#Overview\" target=\"_blank\"> cron-based</a>
|
||||||
|
scheduler to automatically start the backup process based on prescribed timing
|
||||||
|
instructions.</span><div><b>Note</b> that the required timestamps should be specified
|
||||||
|
respectively to the UTC time zone.</div>"
|
||||||
showIf:
|
showIf:
|
||||||
1:
|
1:
|
||||||
- name: cronTime
|
- name: cronTime
|
||||||
|
@ -38,6 +46,66 @@ settings:
|
||||||
- value: 0 0 1 * *
|
- value: 0 0 1 * *
|
||||||
caption: "Monthly (at 00:00 on day 1)"
|
caption: "Monthly (at 00:00 on day 1)"
|
||||||
default: 0 0 * * *
|
default: 0 0 * * *
|
||||||
|
2:
|
||||||
|
- type: string
|
||||||
|
name: backupTime
|
||||||
|
caption: Time
|
||||||
|
inputType: time
|
||||||
|
default: "09:00"
|
||||||
|
cls: x-form-text
|
||||||
|
width: 120
|
||||||
|
required: true
|
||||||
|
- caption: Days
|
||||||
|
type: compositefield
|
||||||
|
name: days
|
||||||
|
defaultMargins: 0 12 0 0
|
||||||
|
items:
|
||||||
|
- name: sun
|
||||||
|
value: true
|
||||||
|
type: checkbox
|
||||||
|
caption: Su
|
||||||
|
- name: mon
|
||||||
|
value: true
|
||||||
|
type: checkbox
|
||||||
|
caption: Mo
|
||||||
|
- name: tue
|
||||||
|
value: true
|
||||||
|
type: checkbox
|
||||||
|
caption: Tu
|
||||||
|
- name: wed
|
||||||
|
value: true
|
||||||
|
type: checkbox
|
||||||
|
caption: We
|
||||||
|
- name: thu
|
||||||
|
value: true
|
||||||
|
type: checkbox
|
||||||
|
caption: Th
|
||||||
|
- name: fri
|
||||||
|
value: true
|
||||||
|
type: checkbox
|
||||||
|
caption: Fr
|
||||||
|
- name: sat
|
||||||
|
value: true
|
||||||
|
type: checkbox
|
||||||
|
caption: Sa
|
||||||
|
- name: "tz"
|
||||||
|
caption: "Time Zone"
|
||||||
|
type: "list"
|
||||||
|
required: true
|
||||||
|
editable: true
|
||||||
|
forceSelection: true
|
||||||
|
values: values
|
||||||
|
3:
|
||||||
|
- name: cronTime
|
||||||
|
caption: Crontab
|
||||||
|
type: string
|
||||||
|
default: 0 0 * * *
|
||||||
|
regexText: Cron syntax is incorrect!
|
||||||
|
regex: "^(((([\\\\*]{1}){1,})|((\\\\*\\\\\\/){0,1}(([0-9\\/\\*\\-\\,]{1}){1,}|(([1-5]{1}){1}([0-9\\/\\*\\-\\,]{1}){1,}){1})))
|
||||||
|
((([\\\\*]{1}){1,})|((\\\\*\\\\\\/){0,1}(([0-9\\/\\*\\-\\,]{1}){1,}|(([1]{1}){1}([0-9\\/\\*\\-\\,-]{1}){1,}){1}|([2]{1}){1}([0-3]{1}){1})))
|
||||||
|
((([\\\\*]{1}){1})|((\\\\*\\\\\\/){0,1}(([1-9]{1}){1}|(([1-2]{1}){1}([0-9\\/\\*\\-\\,]{1}){1,5}){1}|([3]{1}){1}([0-1]{1}){1})))
|
||||||
|
((([\\\\*]{1}){1})|((\\\\*\\\\\\/){0,1}(([1-9]{1}){1}|(([1-2]{1}){1}([0-9\\/\\*\\-\\,]{1}){1,}){1}|([3]{1}){1}([0-1]{1}){1}))|(jan|JAN|feb|FEB|mar|MAR|apr|APR|may|MAY|jun|JUN|jul|JUL|aug|AUG|sep|SEP|okt|OKT|nov|NOV|dec|DEC)(-?\\w+?)?)
|
||||||
|
((([\\\\*]{1}){1})|((\\\\*\\\\\\/){0,1}(([0-7]{1,}(-?[0-7]?(,[0-7]){0,6})){1}))|((sun|SUN|mon|MON|tue|TUE|wed|WED|thu|THU|fri|FRI|sat|SAT)?(,(sun|SUN|mon|MON|tue|TUE|wed|WED|thu|THU|fri|FRI|sat|SAT)){0,6})(-?\\w+?)?))$|^(@(reboot|yearly|annualy|monthly|weekly|daily|hourly))$"
|
||||||
- caption: Backup storage
|
- caption: Backup storage
|
||||||
type: list
|
type: list
|
||||||
tooltip: "The environment with backup storage to be used for backups creation. Presence of this environment is obligatory."
|
tooltip: "The environment with backup storage to be used for backups creation. Presence of this environment is obligatory."
|
||||||
|
@ -60,12 +128,18 @@ settings:
|
||||||
onBeforeInit: scripts/backupOnBeforeInit.js
|
onBeforeInit: scripts/backupOnBeforeInit.js
|
||||||
|
|
||||||
buttons:
|
buttons:
|
||||||
- caption: Backup All Now
|
- caption: Backup Now
|
||||||
action: backupallnow
|
action: backup
|
||||||
loadingText: Backing up...
|
loadingText: Backing up...
|
||||||
confirmText: Do you want to initiate the backup process?
|
confirmText: Do you want to initiate the backup process?
|
||||||
successText: The backup process has been finished successfully.
|
successText: The backup process has been finished successfully.
|
||||||
|
|
||||||
|
- caption: Configure
|
||||||
|
action: configure
|
||||||
|
settings: main
|
||||||
|
loadingText: Configuring...
|
||||||
|
successText: The backup configs have been updated successfully.
|
||||||
|
|
||||||
- caption: Restore
|
- caption: Restore
|
||||||
action: restore
|
action: restore
|
||||||
loadingText: Restoring...
|
loadingText: Restoring...
|
||||||
|
@ -170,7 +244,7 @@ actions:
|
||||||
|
|
||||||
installScript:
|
installScript:
|
||||||
- removeScript
|
- removeScript
|
||||||
- getStorageNode
|
- getStorageCtid
|
||||||
- script: ${baseUrl}/scripts/create-backup-main-script.js?_r=${fn.random}
|
- script: ${baseUrl}/scripts/create-backup-main-script.js?_r=${fn.random}
|
||||||
params:
|
params:
|
||||||
scriptName: ${env.envName}-${globals.scriptSufix}
|
scriptName: ${env.envName}-${globals.scriptSufix}
|
||||||
|
@ -200,7 +274,7 @@ actions:
|
||||||
}
|
}
|
||||||
return { result: 0 };
|
return { result: 0 };
|
||||||
|
|
||||||
backupallnow:
|
backup:
|
||||||
- callScript: backup
|
- callScript: backup
|
||||||
|
|
||||||
restore:
|
restore:
|
||||||
|
@ -213,8 +287,8 @@ actions:
|
||||||
configure:
|
configure:
|
||||||
- setSchedule
|
- setSchedule
|
||||||
|
|
||||||
getStorageNode:
|
getStorageCtid:
|
||||||
- script: scripts/getStorageNode.js
|
- script: scripts/getStorageCtid.js
|
||||||
|
|
||||||
convert:
|
convert:
|
||||||
- script: |
|
- script: |
|
||||||
|
|
Loading…
Reference in New Issue