Help - Search - Members - Calendar
Full Version: Send backups form server to home ftp
The Planet Forums > Control Panels > cPanel/WHM
soupn
Hello,

i have cpanel doing daily, weekly and monthly backups to /backups directory. I have configured a ftp server at my home pc, and i want to enter server by root, enter /backups/weekly/ folder and send all .tar.gz files to my home ftp.

I dont know the command or how to do it. Any help avaiable? :confused:

thks in advance.
theuruguayan
well.. you can ssh inside the server to that folder, and use FTP to upload to your local computer.

you should check in google for a tutorial of ftp command line. Is preaty easy, a few steps are:

ftp (enter)
open (enter)
IPOFSERVER

It will ask the user/pass.

Then you just write: put filename

and it will upload it, just remember to do this from inside the folder where the files are located.
soupn
thks for your help.

what's the use of IPOFSERVER comand?

i enter root, go to /backups, ftp "ip", enter user and pass. i enter "put *.tar.gz" and it will start transfer all *.tar.gz to my server. My ftp server has one folder in it called downloads. How can i tell my server to store files in that ftp folder?
theuruguayan
IPOFSERVER aint a command, is the IP of your server

you need to go inside that folder, and then execute the put command.
soupn
IPOFSERVER ... me dumb... icon_biggrin.gif

thks for your help.
kamihacker
QUOTE (soupn)
thks for your help.

what's the use of  IPOFSERVER comand?

i enter root, go to /backups, ftp "ip", enter user and pass. i enter "put *.tar.gz" and it will start transfer all *.tar.gz to my server. My ftp server has one folder in it called downloads. How can i tell my server to store files in that ftp folder?

for ftp automatic transaction I'd recommend using ncftpput instead of regular ftp, it has nice and pretty parameters to invoke a whole set of instructions without extra user input

regards
soupn
root@web [/backups/cpbackup/weekly]# ncftpput -u 'user' -p 'pass' xxx.dyndns.org downloads *.*

did the job. many thks to you both.
soupn
hello,

i had to restore all hdd data and lost ncftpput. any info how to install it?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.