Hi guys i want to move files from a Cpanel server to a DirectAdmin server. The cpanel webhost has created a complete cpanel backup file (3GB) and put it in their FTP. I don't have access to cpanel server anymore only the FTP I have full access with root to new DirectAdmin server so i want to get that file to new server and extract that file and place it in new server. There are no scripts only lot of media files around 3GB. Can you let me know how to do it? Please give exact commands if using SSH
Thanks for the reply. First move then extract right? Can you please tell me how to move. what the command?
use the simple wget command via ssh. 1. Login as root via SSH 2. go to the location where you want to copy it. 3. wget http://yourdomain.com/file.tar I hope it will help.
Thanks for your reply wget not working coz backup file on a password protected ftp server. I want to get that zip file to my new server. I have root and full access to new server. No access to old server other than ftp. I am looking for a command which will download a zip file from remote FTP server wich has username and password to login.
SSH to your new server and execute the following commands: 1) ftp ftp.oldhost.com (you'll be asked for your username/password) 2) cd /path/to/directory 3) get backup.tar.gz 4) bye You'll return to the shell prompt on your server, then execute the following: 1) mv backup.tar.gz /path/to/wherever/you/want/your/media/files 2) tar -xvzf /path/to/wherever/you/want/your/media/files/backup.tar.gz Then you should be done.
Thanks for your reply bro. but when i ftp old server from new server's ssh it says [root@server ~]# ftp ftp.abcd.net Connected to ftp.abcd.net. 220 ProFTPD 1.3.1 Server (ftp.abcd.net) [xx.xxx.91.39] 500 AUTH not understood 500 AUTH not understood KERBEROS_V4 rejected as an authentication type ftp: relocation error: ftp: symbol krb5int_labeled_fopen, version krb5support_0_MIT not defined in file libkrb5support.so.0 with link time reference [root@server ~]# can you help me?
use this but i'm not sure if work or not since kerberos is your main issue wget --ftp-user=USER --ftp-password=PASS ftp:\\ipaddress\path\to\your\file.tar.gz
Thanks guys i was able to move the files using wget -c ftp://user:pass@abcd.net/ Code (markup): and extracted it using tar -xvzf command But now can't modify or delete the files from FTP. Says permission denied. Is there a command from SSH to correct all permissions to work with my new server?