LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how can backup a remote server(only folder needed) with ftp ,daily backup? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-backup-a-remote-server-only-folder-needed-with-ftp-daily-backup-910318/)

ahjafari 10-26-2011 01:55 PM

how can backup a remote server(only folder needed) with ftp ,daily backup?
 
i decided to backup my site(i am writer in this site) and have a ftp account with full permission for access the hole folder site.
i search for best way for this !
i find many solutiones such as "rsync" , "scp" and other
my problem is this programs not support ftp account and i must visual backup your site with filezilla. i am try find a way for create backup with script with free of time( need any person)
there are any offer?
ILOVELINUX
i newbe in en (apologize for weak writing)

spankbot 10-26-2011 04:04 PM

It's possible to script ftp commands using the 'expect' scripting language. You would then add your script to a cron job to have it run on a regular basis.

http://linux.die.net/man/1/expect

But this it's considered extremely bad security policy to hard code usernames and passwords in a script. Rsync should be used. You really need to get your admin to disable ftp and enable ssh as soon as possible.


All times are GMT -5. The time now is 02:47 AM.