Back Up and Restore Using an NFS Server
Use a Network File System (NFS) server to back up and restore Virtual Appliance data.
You can back up Virtual Appliance data to an NFS server. Complete the following tasks in order:
Set Up the NFS Server
Install and configure an NFS server on AlmaLinux or Ubuntu for Virtual Appliance backups.
Follow these steps to install and configure the NFS server on AlmaLinux or Ubuntu:
Configure NFS Parameters on the Virtual Appliance
Configure NFS server parameters for Virtual Appliance nodes that use NFS backup storage.
Edit the nfs section in the globals.yaml.gotmpl file with the NFS server details on each applicable Virtual Appliance node.
The following example shows NFS parameters:
# NFS parameters
nfs:
enabled: true
server: 10.0.203.142
path: /mnt/nfs_share
Configure NFS Backup Settings in the globals.yaml.gotmpl File
Enable NFS backup settings for datastores in the globals.yaml.gotmpl file.
Back Up Virtual Appliance Data to an NFS Server
Back up Virtual Appliance datastore snapshots to a Network File System server.
Snapshots capture the state of a datastore and can be used to restore data. You can store multiple snapshots in one repository. The following commands store snapshots in the repo3 repository.
Create a snapshot for each datastore:
- Elasticsearch
-
CODE
appdcli backup elasticsearch create-snapshot <repo-name> <snapshot-name>ExampleCODEappdcli backup elasticsearch create-snapshot repo3 es-snapshot - PostgreSQL
-
CODE
appdcli backup postgres create-snapshot <repo-name>ExampleCODEappdcli backup postgres create-snapshot repo3 - MySQL
-
Back up the MySQL
dumpInstance:CODEappdcli run mysql_backup create-snapshot <snapshot-name>Back up the MySQLxtrabackup:-
Create a full MySQL backup to start a chain.CODE
# Trigger a full backup appdcli backup mysql full [--pod appd-mysql-0] -
Create any required incremental MySQL backups.
Use the same MySQL pod for the full backup and every incremental backup in its chain. The default pod isappd-mysql-0.CODEappdcli backup mysql incr [--pod <pod>]
-
Restore Snapshots from the NFS Server
Restore Virtual Appliance datastore snapshots stored on an NFS server.
Use snapshots stored on the NFS server to restore the datastores.