LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-10-2005, 03:03 PM   #1
jme
Member
 
Registered: Sep 2003
Location: Cardiff, UK
Distribution: Debian
Posts: 49

Rep: Reputation: 15
Backup options of a remote ftp account?


I am looking for suggestions and advice on backing up a remote ftp account that I have. Basically I have a ftp hosting account which is hosting a php site that 6-7 developers are working on and I would like a way of backing this up at, say daily, intervals onto my server here, as a back up and for redundancy.

The only access that I have to the remote server is the ftp access, I don't have any type of shell access at all.

Any ideas would be greatly accepted.

Many thanks. Jamie
 
Old 12-12-2005, 04:17 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
You should be able to use wget for this.


wget -m ftp://your.site.com/your/dir


Cheers,
Tink
 
Old 12-12-2005, 10:00 PM   #3
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
The above suggestion will only work to get the output produced by your site unfortunately, not the actual dynamic code itself (which may be what you want). If you want the php code, rather than out put, and you can only use ftp to access the site you should install something like lftp on your local machine. You can specify the password and account name in a separate file, so that you can use cron to schedule you backups instead of doing it manually. You can then use the mirror command to recursively get the site.

Ideally you'd want to use rsync - this can be done over ssh if you can get ssh access or via the rsync protocol, which means that the remote host can allow you very limited write access and no shell access if they like. If the people hosting the site will only give ftp access, change your host, seriously.
 
Old 12-13-2005, 12:15 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally Posted by liamoboyle
The above suggestion will only work to get the output produced by your site unfortunately, not the actual dynamic code itself (which may be what you want). If you want the php code, rather than out put, and you can only use ftp to access the site you should install something like lftp on your local machine. You can specify the password and account name in a separate file, so that you can use cron to schedule you backups instead of doing it manually. You can then use the mirror command to recursively get the site.

Ideally you'd want to use rsync - this can be done over ssh if you can get ssh access or via the rsync protocol, which means that the remote host can allow you very limited write access and no shell access if they like. If the people hosting the site will only give ftp access, change your host, seriously.

How exactly does his ftp-server interpret the PHP
scripts? wget used with ftp works in exactly the
same way that lftp would.


Cheers,
Tink
 
Old 12-13-2005, 03:35 AM   #5
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
Quote:
Originally Posted by Tinkster
How exactly does his ftp-server interpret the PHP
scripts? wget used with ftp works in exactly the
same way that lftp would.


Cheers,
Tink

My apologies, you're absolutely right - I overlooked the ftp://
 
Old 12-17-2005, 07:40 AM   #6
jme
Member
 
Registered: Sep 2003
Location: Cardiff, UK
Distribution: Debian
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks for your help guys. Used the wget and it worked like a dream.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a secure ftp-based backup account? evank Linux - Security 3 11-30-2005 12:44 AM
chrooted account - shell options or1onas Linux - Newbie 3 03-10-2005 03:32 AM
Backup options jrdioko Linux - Software 2 11-28-2004 12:11 AM
Backup Options? Snump Linux - Hardware 7 10-02-2004 09:34 PM
Server Backup Options? Rackemup Linux - General 4 05-24-2001 06:13 PM


All times are GMT -5. The time now is 12:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration