• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Archive Entire Site?

#1
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
 
#3
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
 
#5
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 User
#6
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.
 

Members online

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,017
Latest member
loxioalix