Configure FTP Backup VestaCP Ubuntu
VestaCP is the best Open-Source Control Panel for Web Admins which has the option to FTP Backup all your files to a different server. Follow this tutorial to configure FTP backup on Ubuntu Server.
We are assuming that you have successfully setup High-Security Firewall for the Server and port 21 is open on both servers.
Login to server
I have bought 4GB Dedicated Server with 500GB SATA to use that as FTP Backup server for all my client files, now I will log into my server through ssh, Replace with your own server user and ip
ssh admin@vestacp.com
FTP Backup Command
VestaCP provides us with sets of useful commands one of the command is for setting up FTP backup server
Format/usr/local/vesta/bin/v-add-backup-host TYPE HOST USERNAME PASSWORD [PATH] [PORT]
Example/usr/local/vesta/bin/v-add-backup-host ftp example.com admin pa$$word /home/user 21
Replace with your own FTP server details.
Verify FTP Server Added
After you have set the FTP backup server through command line you need to verify that it is successfully added to the system, to verify that run the command below and match the details, if nothing shows up you are either on newer version of VestCP, comment below for any issue
nano /usr/local/vesta/conf/ftp.backup.conf
Backup Files
You need to change the configuration of VestaCP to make FTP as your default backup, edit the file
nano /usr/local/vesta/conf/vesta.conf
search for BACKUP_SYSTEM and set its value to ftp. Now you can easily take backup of all your files and configure the CRON job from VestaCP CRON dashboard. Run the following command to take FTP Backup of your Server.
/usr/local/vesta/bin/v-backup-users
Now you can check the backup server with the path we specified.