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
 

Techno Child

web{designer}
Joined
10 Oct 2004
Messages
871
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
 

Techno Child

web{designer}
Joined
10 Oct 2004
Messages
871
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
 

kcnychief

??? ??? ?
Political Access
Joined
8 Apr 2005
Messages
16,950
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.
 

albybum

Penguin Rancher
Joined
9 Feb 2002
Messages
281
1and1 supports SSH connections if you can get the info from your friend.

Tar should be located at /bin/tar
 

Geffy

OSNN Veteran Addict
Joined
18 Mar 2002
Messages
7,805
If you have PHP and PEAR then I think you can use the Archive/Tar module.
 

Members online

No members online now.

Latest profile posts

hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?
Perris Calderon wrote on Electronic Punk's profile.
Hey EP! All good with me, applying for Microsoft MVP right now, should have done this a while ago.

Notifications don't work, I only found your response by coming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier!

Forum statistics

Threads
62,000
Messages
673,425
Members
5,593
Latest member
moussa021