Knowledgebase

Portal Home > Knowledgebase > Articles Database > How to move large file to download in my local PC


How to move large file to download in my local PC




Posted by never1, 09-14-2010, 01:26 AM
Hello, I have backup located in: And I want to move or copy this backup to: Why: Because I want to download it to my local PC My dedicated Server Control Panel is cPanle/WHM For security I have protected the Target directory using (Password Protect Directories in My Cpanel) My Question: 1- How can I do it by SSH? 2- is this secure way? Thank you very much for Help! Bye

Posted by LnxtecH, 09-14-2010, 02:48 AM
You may - use ftp or sftp to download the file - download vi http (http://domain.com/backup/backup.tar.gz) - Or use scp if you are on a linux PC

Posted by jphilipson, 09-14-2010, 02:53 AM
Why not just download it from it's current location? If you have SSH, you can download it to your system using SCP, rsync, or sftp. Otherwise, just "cp /backup/cpbackup/daily/backup.tar.gz /home/accountusername/public_html/backup/"

Posted by matt2kjones, 09-14-2010, 03:06 AM
Move the backup files into your homedir on the server... but keep them out of the public html folder.... unless you have ssl it will be insecure to authenticate and the downloaded file wont be encrypted on its journey. If you download something like "WinSCP" you can actually connect to your server using your users ssh details and will be able to transfer your files over sftp or ssh, which are secure protocols.

Posted by never1, 09-14-2010, 03:26 AM
Thanks for All If I download by WinSCP it will take more than 3 days based my DSL speed because backup file is larger than 40 GB .. no problem to take 3 days or more but the problem that backup is daily backup .. Mean new backup will be generated while backup is downloading!!!!

Posted by never1, 09-14-2010, 03:29 AM
How can i download backup if keep out of the public html folder? If I type: mydomain.com will take me to public html! thanks

Posted by matt2kjones, 09-14-2010, 05:13 AM
Because when you login via secure shell you will be put in /home/ or /root if logged in as root. There is no need to put data into the public html folder unless you want to make it accessable online. 3 days to download is an issue, but if its 40GB thats a lot of data to move. Maybe get a vps or a backup provider and move the backups using scp to those machines instead which will have much higher throughput.

Posted by never1, 09-14-2010, 06:43 AM
I have full root access I want to downlaod the file via my explorer using Internet Download Manager Software ... Regular download way backup provider is one of my prefered option but I want to download to my local pc time to time for safty Thanks Aziz

Posted by matt2kjones, 09-14-2010, 08:30 AM
Well then http authentication + http + ssl You could self sign a certificate if needed as you dont need it to verify correctly in the browser for your own use. Put a .htaccess file in the public folder and add a username / password and allow only access from your home ip

Posted by never1, 09-15-2010, 06:16 AM
Thank you very much! cp /backup/cpbackup/daily/backup.tar.gz /home/accountusername/public_html/backup/ For Copy or Move? Thanks

Posted by matt2kjones, 09-15-2010, 08:25 AM
cp" will copy a file, "mv" will move the file. Apache can follow symbolic links if configured, so you could create a symlink to the file. If /backups it on the same partition as /home you could move it with the mv command, which should be instant, then move it back when you have downloaded it.

Posted by sadotmd, 09-15-2010, 09:49 AM
If your desktop PC runs Linux: the best method to copy/move the files is to use rsync over ssh



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read


Language:

Contact us