Activities

September 2013
M T W T F S S
« Aug   Oct »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

How do I configure remote FTP backup on WHM/Cpanel server

Recently I had a requirement to keep the cpanel user account backup away from the server instead of keeping backup in a locally mounted disk. We uses a SAN storage medium which support ftp accounts for this purpose.

I have created an FTP account and configure it on WHM under backup settings. My Backup scheduler configured in a way as follows,

FTP1

Backup server settings details,

FTP2

Pls note you do not mention the ftp location as “/Backup/Cpanelbackup/” and it should be like this “/Backup/Cpanelbackup” .

How do I test backup settings are correct.

This is an important point to verify the backup settings are working correctly. You will see there are lots of Cpanel scripts copied under “/scripts” folder on the server.

root@server21-17-21-22 [/home]# /scripts/cpbackup --force
[cpbackup] Process started in background.
[cpbackup] Log file: /usr/local/cpanel/logs/cpbackup/1379479293.log
root@serverserver21-17-21-22 [/home]# tail -f /usr/local/cpanel/logs/cpbackup/1379479293.log

Don’t forget to watch the backup activity for the first time verification.

Here is some eg. which showing that backup files are successfully transferred to backup server.

root@server21-17-21-22 [/home]# tail -f /usr/local/cpanel/logs/cpbackup/1379479293.log
Copying shell.......Done
Creating Archive ....Done
pkgacctfile is: /home/cpbackuptmp/cpbackup/daily/profanoc.tar.gz
size is: 120815910
homesize is: 199585792
Net::FTP=GLOB(0x1a63cfd0)<<< 220 NET Disk FTP Server ready.
Net::FTP=GLOB(0x1a63cfd0)>>> USER Liju
Net::FTP=GLOB(0x1a63cfd0)<<< 331 User name okay, need password.
Net::FTP=GLOB(0x1a63cfd0)>>> PASS ....
Net::FTP=GLOB(0x1a63cfd0)<<< 230 User logged in, proceed.
Net::FTP=GLOB(0x1a63cfd0)>>> TYPE I
Net::FTP=GLOB(0x1a63cfd0)<<< 200 Type set to I.
Net::FTP=GLOB(0x1a63cfd0)>>> MKD /Cpanel/prod-SVR
Net::FTP=GLOB(0x1a63cfd0)<<< 521 directory already exists.
Net::FTP=GLOB(0x1a63cfd0)>>> MKD /Cpanel/prod-SVR/daily
Net::FTP=GLOB(0x1a63cfd0)<<< 521 directory already exists.
Net::FTP=GLOB(0x1a63cfd0)>>> CWD /Cpanel/prod-SVR/daily
Net::FTP=GLOB(0x1a63cfd0)<<< 250 Requested file action okay, completed.
Net::FTP=GLOB(0x1a63cfd0)>>> PASV
Net::FTP=GLOB(0x1a63cfd0)<<< 227 Entering Passive Mode (86,168,184,149,116,217).
Net::FTP=GLOB(0x1a63cfd0)>>> STOR profanoc.tar.gz
Net::FTP=GLOB(0x1a63cfd0)<<< 150 Opening BINARY mode data connection for profano                  c.tar.gz.
Net::FTP=GLOB(0x1a63cfd0)<<< 226 Closing data connection.
Net::FTP=GLOB(0x1a63cfd0)>>> QUIT

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>