Creating a backup of an OpenVZ container can be done using the ‘vzdump’ utility.
Here’s the basic process:
Step 1: Install the ‘vzdump’ utility:
You can install this utility by using the command:
```
apt-get install vzdump
```
Step 2: Run the backup:
To create a backup of your OpenVZ container, use the following command:
```
vzdump
```
Replace `
The `—compress gzip` flag compresses the backup to save space. If you don’t want to compress your backup, you can omit this flag.
Step 3: Check the backup:
After the command has finished running, there will be a .tar.gz file in the directory you specified. You can check that the backup is there by using the ‘ls’ command:
```
ls
```
If the command is successful, you will see your .tar.gz backup file in the output.
Note that you have to run these commands as root or with sudo, and you’ll need free space on your machine equal to the size of the VPS container you’re backing up, since a full copy of the container is made.