VMware Cloud Community
andvm
Hot Shot
Hot Shot
Jump to solution

VCSA file backup - schedule

Hi,

Is there a way to schedule the VCSA file backup to automatically backup at specific intervals?

File-Based Backup and Restore of vCenter Server Appliance

What would happen if I restore a backup but in meantime changes occurred in the environment? (Hosts upgraded, clusters added/removed, settings changed etc..)

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
sk84
Expert
Expert
Jump to solution

For VCSA 6.5 there is no built-in scheduler. This was only introduced in version 6.7.

But you can trigger the creation of backups with an external script via the API. The execution of this script can then be scheduled with a cronjob or Windows task scheduler from another system.

Here are 2 examples with PowerCLI and Bash:

VMware vSphere 6.5 Documentation Library

Automating File-Based Backups of vCenter Server Appliance - VMware PowerCLI Blog - VMware Blogs

What would happen if I restore a backup but in meantime changes occurred in the environment? (Hosts upgraded, clusters added/removed, settings changed etc..)

That depends on the kind of change. Host and virtual machine settings are not stored on VCSA. But for example all cluster related settings like HA and DRS, authentication configurations if you use the embedded PSC, profiles and policies, resource pool settings and some more. These interim changes are lost when you restore a backup.

--- Regards, Sebastian VCP6.5-DCV // VCP7-CMA // vSAN 2017 Specialist Please mark this answer as 'helpful' or 'correct' if you think your question has been answered correctly.

View solution in original post

Reply
0 Kudos
1 Reply
sk84
Expert
Expert
Jump to solution

For VCSA 6.5 there is no built-in scheduler. This was only introduced in version 6.7.

But you can trigger the creation of backups with an external script via the API. The execution of this script can then be scheduled with a cronjob or Windows task scheduler from another system.

Here are 2 examples with PowerCLI and Bash:

VMware vSphere 6.5 Documentation Library

Automating File-Based Backups of vCenter Server Appliance - VMware PowerCLI Blog - VMware Blogs

What would happen if I restore a backup but in meantime changes occurred in the environment? (Hosts upgraded, clusters added/removed, settings changed etc..)

That depends on the kind of change. Host and virtual machine settings are not stored on VCSA. But for example all cluster related settings like HA and DRS, authentication configurations if you use the embedded PSC, profiles and policies, resource pool settings and some more. These interim changes are lost when you restore a backup.

--- Regards, Sebastian VCP6.5-DCV // VCP7-CMA // vSAN 2017 Specialist Please mark this answer as 'helpful' or 'correct' if you think your question has been answered correctly.
Reply
0 Kudos