Archive Entire Site?

Techno Child

web{designer}
Joined
10 Oct 2004
Messages
871
Hey guys.

How could I archive my entire site directory? I do have access to the parent dir, so I could run a php script to archive the folder containing the site. The only problem is, when I put the folder name in place of the file to be zipped - it doesn't archive the contents of the folder. Would I have to list the contents of all folders and sub-folders to be able to archive the entire site?

btw. this is all new to me, I have never used php to zip files before...so it may be one of those "common sense" things.

-tc
 
sorry... I should have been more specific.

The server is remote, and I have no direct command line connection. The script must be entirely php using zlib. Any Ideas?

-tc
 
Nothing I guess.. I just don't know where tar is located on the server, or even IF it is installed. This is actually for a friend, the site is hosted over at 1and1.

-tc
 
1and1 does backups of your sites 24x7 - one thing to be wary of is that with most packages they can only restore from as far back as 24-48 hours. I would contact them for specifics to be sure.
 
1and1 supports SSH connections if you can get the info from your friend.

Tar should be located at /bin/tar
 
If you have PHP and PEAR then I think you can use the Archive/Tar module.
 

Members online

No members online now.

Forum statistics

Threads
62,021
Messages
673,242
Members
5,639
Latest member
Everlong
Back
Top