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

Iptables

Iptables is a Linux based packet filtering firewall. It is a service (daemon)...

Autorun in Linux

To set a script to start at boot in CentOS, add it into /etc/rc3.d/S99local. For example:...

Sendmail [25: Connection refused] fix

If you can't receive email from the outside and got next error:  (Delivery Status Notification...

Cron

Cron is the daemon that can be used to schedule tasks according to time, day of the month,...

Oracle 11g EX on Centos 6 x64 vps

We describe how to install Oracle 11g Express on Centos 6 x86_64 Openvz VPS. First of all you...