Auto FTP Backup is a solution for automated VPS backups. The Auto FTP backup is configured per node.

To configure it:

  1. Open SolusVM admin panel > Nodes > List Nodes > {Node} > Auto FTP Backup
  2. Specify FTP server settings: IP or Hostname , Username, Password, Port, Directory and tick the checkbox Passive(optional) in FTP Server Settings:


    In Profile drop-down menu you can select predefined FTP Server.


  3. Tick the checkbox Enabled in Backup Settings section to turn the backup on and click Update
  4. (Optional) Tune the rest of Backup Settings.

Backup Settings description.

Enabled

If ticked, backups will be enabled and will run at a specified time.

Frequency

Settings are day, week and month.

Run time

The time your want the backup to run. This setting is for day, week and month and is in 24 hour format.

Day

The day you want the weekly backup to run.

Day of month

The day of the month you want the monthly backup to run.

Rotation

The number of backups you want to keep. If set to 1, the system will overwrite the last backup. If set higher than 1, it will rotate the backups.

IOnice priority

From 0 - the highest priority, to 7 - the lowest priority.

IOnice class

Nice

Range goes from -20 (highest priority) to 19 (lowest).

Xen HVM/KVM compression type

pbzip2 threads

The number of processors pbzip2 can use.

OpenVZ backup type

Xen backup type

OpenVZ temp directory

The temp directory where the temp backup file will be stored before the upload to the FTP backup server. Default is /vz/dump.

Xen temp directory

The temporary location where the backup process will store the file before uploading to the FTP server. Typically, you will not have enough room to store the backup on the standard mounted partitions. Below is a guide on how to create a mounted partition from free space on your logical volume group.

1.Find out your logical volume group name:

[root@dev1 ~]# vgdisplay
  --- Volume group ---
  VG Name               vps
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  159
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                6
  Open LV               3
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               931.50 GB
  PE Size               32.00 MB
  Total PE              29808
  Alloc PE / Size       6368 / 199.00 GB
  Free  PE / Size       23440 / 732.50 GB
  VG UUID               dArWSA-njx2-quNr-BYJc-HAdh-lXXf-5t3SHA

    From the above output you can see that the VG name is 'vps' and has 732.50GB free space.

2. Create a new logical volume to store the backup. In this example we created a 100GB logical volume called backup. You need a logical volume slightly bigger than your largest virtual server:

[root@dev1 ~]# lvcreate -L100G -n /dev/vps/backup
  Logical volume "backup" created

3. Format and mount the new logical volume. We mounted it as /home/backup:

mkfs.ext3 /dev/vps/backup
mkdir -p /home/backup                      
mount /dev/vps/backup /home/backup

    It should now show when you run df:

[root@dev1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             901G   91G  763G  11% /
tmpfs                 384M     0  384M   0% /dev/shm
/securetmp            962M   18M  896M   2% /tmp
none                  384M  104K  384M   1% /var/lib/xenstored
/dev/mapper/vps-backup
                       99G  188M   94G   1% /home/backup

4. Make sure it mounts at boot time. For the above settings, adding this code to /etc/fstab will make sure it mounts on boot:

/dev/vps/backup        /home/backup            ext3    defaults        1 1

Exclude VPS

Select any virtual servers to exclude from the backup cycle.