1832666 Members
3240 Online
110043 Solutions
New Discussion

FTP (or SFTP) backup

 
mvr
Regular Advisor

FTP (or SFTP) backup

I know there is alot of different ftp scripts available, but somtimes you can't see the tree in the forest.
I need to backup my website on a daily basis. Website is hosted by "Host My Site" company.
I would like to run ftp script as a cron job from my private network.
My only question is security. Do you have any suggestion how should this be done?

Miro
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: FTP (or SFTP) backup

I usually initiate such scripts from the web server to an backup server. This prevents a lock up of the login from stopping the transfer.

First, I set up password free sftp/scp/ssh. You exchange public keys.

Then from the web server:

cd /web
scp -rp * backupserver://backup

That does it.

You can use a regular style ftp type script to handle it with passwords.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alex Lavrov.
Honored Contributor

Re: FTP (or SFTP) backup

What is the panel that you use to manage your site?

On my hosting, I have CPanel, that can backup my account and put it on FTP that I give it. The best thig to do, is not to invent the wheel all over again and just ask them what *they* can do for *you*.
After all you are the one that pay the greens ;)
I don't give a damn for a man that can only spell a word one way. (M. Twain)