Backing up backup directory/files to an external FTP server

isaacl

Active Member
Jun 26, 2012
26
0
1
cPanel Access Level
Root Administrator
I have the backup option set to back everything up to a local folder, but I'd also like to have those backup files backed up to an external FTP server.
I don't want to enable the FTP backup option in the Backup settings, because that will only back the accounts up, and because I want to have the local backup as well.
How can I set things up to backup the backup files to the remote FTP server?
Thanks!
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
348
somewhere over the rainbow
cPanel Access Level
Root Administrator

isaacl

Active Member
Jun 26, 2012
26
0
1
cPanel Access Level
Root Administrator
Is there a way to do this without using SSH keys?
I'd like to use a server that I only have a cPanel account/instance on, not the main WHMPanel/root control of...
And I see that this is planned for 11.34 anyway, but I'd like to get something working for now.
Thanks!
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
You could try using FTP in a script instead. The downside is that this wouldn't be a very secure way to do it.

Here's one example from a google search on FTP script example:

Using ftp in a shell script
 

Sannin

Active Member
May 19, 2011
34
0
56
Hello!

I have enabled the standard backup type with incremental backups and hard links for the weekly and monthly backups. Can i use rsync to copy the /backup folder to an ftp server. I am not sure if hard links work correctly in ftp.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
You shouldn't copy the hardlinks anyway as they simply point to the same location, which is the daily files. Just rsync the daily files over.