?
Solved

backup my website with PHP and GZIP

Posted on 2007-07-22
2
Medium Priority
?
187 Views
Last Modified: 2007-07-22
I have seen a couple of command lines that will let me backup a website to a gzip file.

What I am after is a php script that will do the same. My search fingers are failing me today, all I seem to be getting are ways of backing up my database which I don't need right now.

so any links or tips or code please :)

TIA
0
Comment
Question by:abenbow
2 Comments
 
LVL 20

Expert Comment

by:Muhammad Wasif
ID: 19541892
0
 
LVL 10

Accepted Solution

by:
ray-solomon earned 2000 total points
ID: 19541904

exec('tar -czf /path/to/backup.tar.gz /path/to/wwwdir/html');
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month16 days, 15 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question