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

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
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.

Forum statistics

Threads
62,013
Messages
673,480
Members
5,607
Latest member
Akinerb