Remote FTP and backup to 2nd HD?

DSD

Member
Mar 14, 2003
20
0
151
I was wondering if there is a way to backup to both the 2nd hard drive in my machine, and to a remote FTP server?

I personally think this would be a great addition if it isn't already possible.

cPanel.net Support Ticket Number:
 

carlgm

Well-Known Member
Mar 25, 2003
103
0
166
England, UK
At the moment is either; not both or either. However, sounds like a good idea. Maybe have an option to control the FTP back-up as well thus only doing that every week instead of being fixed into the local set-up.

cPanel.net Support Ticket Number:
 

hormigo

Well-Known Member
Sep 9, 2002
104
0
166
i sent this feature request some weeks ago but I don't receive any reply

cPanel.net Support Ticket Number:
 

jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
Yes, that's great!!

I must say this is a great idea!!
Also, before WHM give us a solution, is there anyone can do this by any methord ??

cPanel.net Support Ticket Number:
 

khoonchee

Well-Known Member
PartnerNOC
Oct 2, 2002
134
0
166
Hi,

Only accounts can be backed up over ftp. The configuration file backup option has been turned off.
/backup is not a directory..
Backup has been disabled to prevent file loss..
/backup does not exist..
Backup has been disabled to prevent file loss..
Backup Configuration Saved!

What does this means?I have enabled "Backup Accounts" Option.

What should I enter for the Ftp Backup User and Ftp Backup pass , is it a cpanel user account on remote host?

Thanks !

cPanel.net Support Ticket Number:
 

Scott Greczkows

Well-Known Member
Feb 5, 2004
63
1
158
Has there been any solution to this yet?

I currently back up to a second hard drive which is mounted for backup and unmounted when complete. I would also like to have the server ftp backups for specific accounts once a week this way I have an offsite backup.

I would love to know a solution. :)
 

dianaward

Well-Known Member
Dec 9, 2002
99
0
156
USA
cPanel Access Level
Root Administrator
Twitter
Your script looks fine, but

as I stated elsewhere today, I have a script that works (my tech support wrote it for me) to ftp backup files to my other servers, but now I need to be able to get the script to log in as admin, then su to root, then run. What do I tell it? Here's what I am using now:

#!/usr/bin/expect -f

set root_pass "123456789"
set hostname "123.45.678.910"

set folder "/backup/cpbackup/daily"

spawn /usr/bin/scp -r $folder [email protected]$hostname:/backup/servername/daily
sleep 3
expect "password: "
sleep 3
send "$root_pass\r"
interact