Avamar: How to extend the backup window beyond 16 hours using the Command-Line Interface
Summary: As the backup window cannot be extended beyond 16 hours in the UI, this article provides the means to do this using the Command-Line Interface (CLI).
Instructions
It is possible to set the backup window to a value greater than 16 hours using the avmaint command.
1. Log in to the Avamar Utility Node as admin.
2. Load the ssh keys per Avamar: How to Log in to an Avamar Server and Load Various Keys.
3. Optionally check the existing settings:
avmaint sched status --ava |grep -A13 "<window-param-list"
Example output:
<window-param-list
timezone="America/Los_Angeles"
timezone-desc="PST-08PDT+01,M3.2.0/02:00,M11.1.0/02:00">
<window-params
days="Sun,Mon,Tue,Wed,Thu,Fri,Sat"
script-duration="15">
<backup-window
start="2100"
duration="1200"/>
<maintenance-window
start="900"
duration="1200"/>
</window-params>
</window-param-list>
(This output shows the backup window starts at 9pm and runs for 12 hours)
4. Run the avmaint command to update the backup window:
avmaint sched window --backup-start=<backup-window-start-time> --backup-duration=<backup-window-duration> --ava
(Where the backup-window-start-time is the required start time of the backup window, in 24-hour format, and the backup-window-duration is the required backup window)
The following example sets the backup window to 18 hours, starting at 8pm:
avmaint sched window --backup-start=2000 --backup-duration=1800 --ava
5. Verify that the changes have been implemented:
avmaint sched status --ava |grep -A13 "<window-param-list"
Example output:
<window-param-list
timezone="America/Los_Angeles"
timezone-desc="PST-08PDT+01,M3.2.0/02:00,M11.1.0/02:00">
<window-params
days="Sun,Mon,Tue,Wed,Thu,Fri,Sat"
script-duration="15">
<backup-window
start="2000"
duration="1800"/>
<maintenance-window
start="1400"
duration="600"/>
</window-params>
(This output confirms the backup window starts at 8pm and runs for 18 hours)
Additional Information
This is considered a workaround for setting a longer backup window.
Do not edit the maintenance schedule in the UI if setting with the workaround above.