Backing up VPS from the inside

This guide will show you how to backup your vsp/container "from the inside vps".
First of all create a directory in which you will backup your container.

mkdir /backup

Below command creates an archive named ctbackup.tar.gz in folder you have created earlier.

tar -zcvpf /backup/ctbackup.tar.gz --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backup .

The backup can be sent to remote server:

scp ctbackup.tar.gz user@host:/path/to/copy

To extract files type:

tar -C /path/to/extract -zxvpf ctbackup.tar.gz

 

Was this answer helpful?

 Print this Article

Also Read

Dovecot /postfix with Roundcube WebUI

Following guide was tested on CentOS 6. Install epel repository: wget...

FreePBX

FreePBX is an open source GUI (graphical user interface) that controls and manages Asterisk (PBX)...

How to check connectivity/network speed of your VPS

If you concerned about network speed of your vps you can test it by downloading some test...

OpenVPN Access Server

§  Install OpenVPN Access Server Be sure that you are using a clean system and no...

Asteriks +TLS+RSTP Encrypt on centos

IN PROGRESS! this guide was gathered from official asteriks wikies...