Hi,
I want to install and configure Jetbackup with Ansible Playbook.
How can i do this?
I specifically want to automate the acceptance of the license agreement and the Feature Showcase.
In which file does the feature showcase complete the operation?
Thank you in advance for your answer.
Jetbackup install and configure with Ansible Playbook
-
- Posts: 4
- Joined: September 24th, 2020, 2:22 pm
-
- Staff Member
- Posts: 21
- Joined: October 4th, 2017, 4:40 am
Re: Jetbackup install and configure with Ansible Playbook
Hello Lightingers,
It is possible to automate this using JetBackup API commands. Please see the commands below to approve the license agreement, reset JB config (if necessary) and accept the feature showcase on a fresh installation.
To list the showcase(s) that need to be approved, you can use the following Jetbackup API command:
Please let us know if we can provide further assistance.
It is possible to automate this using JetBackup API commands. Please see the commands below to approve the license agreement, reset JB config (if necessary) and accept the feature showcase on a fresh installation.
Code: Select all
jetapi backup -F approveAgreement
jetapi backup -F exitDisasterRecovery ## For Fresh Installation
jetapi backup -F exitDisasterRecoveryKeepData ## For Installations with existing/imported JB config
jetapi backup -F approveShowcase -D '_id={SHOWCASE_ID}'
Code: Select all
[root@server ~]# jetapi backup -F listShowcase
success: 1
message:
system:
version: 4.0.22
tier: STABLE
type: cPanel
drMode: 1
agreement: 1
licenseIssue:
data:
features:
0:
_id: 100_rootPrivateKey
feature: rootPrivateKey
order: 100
approved: 1
1:
_id: 101_multiProcessingSetting
feature: multiProcessingSetting
order: 101
approved: 1
total: 2
total_unapproved: 0
Please let us know if we can provide further assistance.
Thank You,
Clark, JetApps Team
Clark, JetApps Team
-
- Posts: 4
- Joined: September 24th, 2020, 2:22 pm
Re: Jetbackup install and configure with Ansible Playbook
Hi,
Thank for your answer.
But im stuck again.
I want to set this schedule :
jetapi backup -F manageSchedule -D 'action=create&name=daily_last_5&type=2&typedata=1'
But came back with this message:Invalid schedule type data provided. (Valid dayily value is between 1 to 7)
What do I do wrong?
Thank for your answer.
But im stuck again.
I want to set this schedule :
jetapi backup -F manageSchedule -D 'action=create&name=daily_last_5&type=2&typedata=1'
But came back with this message:Invalid schedule type data provided. (Valid dayily value is between 1 to 7)
What do I do wrong?
-
- Staff Member
- Posts: 21
- Joined: October 4th, 2017, 4:40 am
Re: Jetbackup install and configure with Ansible Playbook
Hello Lightingers,
Thank you for getting back to us! We can see that the syntax wasn't correct, and it appears that our documentation for the manageSchedule API command was not accurate for this parameter. We will be correcting this and apologize for any confusion caused.
Please see below for the corrected API command:
If you have any other questions, please let us know!
Thank you for getting back to us! We can see that the syntax wasn't correct, and it appears that our documentation for the manageSchedule API command was not accurate for this parameter. We will be correcting this and apologize for any confusion caused.
Please see below for the corrected API command:
Code: Select all
jetapi backup -F manageSchedule -D 'action=create&name=daily_last_5&type=2&typedata[]=1'
# To add multiple schedule types (Daily Schedule, Run on Sunday and Wednesday)
jetapi backup -F manageSchedule -D 'action=create&name=daily_last_5&type=2&typedata[]=1&typedata[]=4'
Thank You,
Clark, JetApps Team
Clark, JetApps Team
-
- Posts: 4
- Joined: September 24th, 2020, 2:22 pm
Re: Jetbackup install and configure with Ansible Playbook
Hi,
Im here again.
So i tried create a backup job:
And i got this message:
Im here again.
So i tried create a backup job:
Code: Select all
jetapi backup -F manageBackupJob -D 'action=create&name=daily_last_5+weekly_last_5&backuptypes=127&destination=5f7de84eab8cee6deb0795a2&filters=5f6caaa9fb0b014fb97e3e92&flag=1&limitaccounts=0&maximumruntime=0&loadpausetime=240&loadpauserate=20&retrytimes=0&monitor[ranfor]=2&monitor[notran]=2&options=0&performance[ionice]=1&performance[renice]=1&schedules[0][_id]=5f86b55e2b4f983afd482fb2&schedule[0][retain]=5&schedule[1][_id]=5f86b55e36c13623ec1aa7d2&schedule[1][retain]=5&time=100'
Code: Select all
success: 0
message: The retain you provided for schedule "daily_last_5" is invalid. Must be greater then 0
system:
version: 4.0.22
tier: STABLE
type: cPanel
drMode:
agreement:
licenseIssue:
data:
-
- Staff Member
- Posts: 21
- Joined: October 4th, 2017, 4:40 am
Re: Jetbackup install and configure with Ansible Playbook
Hello Lightingers,
I can see that the API command you provided has a minor typo with the "schedules[]" parameter. (schedule needs to changed to schedules) Also, I made a minor correction to the time parameter to "0100", assuming the intended scheduled time was 1am.
Please let us know if we can be of further assistance!
I can see that the API command you provided has a minor typo with the "schedules[]" parameter. (schedule needs to changed to schedules) Also, I made a minor correction to the time parameter to "0100", assuming the intended scheduled time was 1am.
Code: Select all
jetapi backup -F manageBackupJob -D 'action=create&name=daily_last_5+weekly_last_5&backuptypes=127&destination=5f7de84eab8cee6deb0795a2&filters=5f6caaa9fb0b014fb97e3e92&flag=1&limitaccounts=0&maximumruntime=0&loadpausetime=240&loadpauserate=20&retrytimes=0&monitor[ranfor]=2&monitor[notran]=2&options=0&performance[ionice]=1&performance[renice]=1&schedules[0][_id]=5f86b55e2b4f983afd482fb2&schedules[0][retain]=5&schedules[1][_id]=5f86b55e36c13623ec1aa7d2&schedules[1][retain]=5&time=0100'
Please let us know if we can be of further assistance!
Thank You,
Clark, JetApps Team
Clark, JetApps Team