Forum Moderators: coopster & phranque

Message Too Old, No Replies

Help - Backup Entire Website

         

AthlonInside

4:36 pm on Mar 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I want to backup my entire website but it has thousand of files with lots of directories. I have tried to donwload with ftp but it seems to be too slow.

What I need is a script which can compress(gz? tar? zip?) the entire site in one file for me to download. More better is that file will be send directly to me via the browser.

Please help. Thank You.

jatar_k

4:51 pm on Mar 27, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I assume the only access you have is ftp? If you have telnet or ssh access you could just tar it on the server and then download it after. Either in a browser or via ftp. Have you asked you host? Maybe they could help you out.

andreasfriedrich

4:58 pm on Mar 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you donīt have telnet or ssh access then just upload a script that calls tar for you.

Andreas

AthlonInside

1:59 pm on Mar 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't have telnet enable. Actually I bought a website recently and want to backup it so I can transfer host. The amount of files is really a lot!

> If you don have telnet or ssh access then just upload a script that calls tar for you.

This is what I am looking for, PHP or Perl, anyone could tell me how?

andreasfriedrich

2:51 pm on Mar 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Perl [perl.com]


system [perldoc.com] 'tar', '-cf', '/path/to/archivefile', '--bzip2', '/path/to/dir';

PHP [php.net]


system [php.net]('tar -cf /path/to/archivefile --bzip2 /path/to/dir';

Andreas