Jump to content

Recommended Posts

Posted

I wrote this into a form so all you have to do is enter the simple folder path (ie: cgi-bin or images) and click "Create Zip". Just upload this text file to any directory and give it a .php extension.

 

http://byrondallas.heliohost.org/temp/zip_archive.txt

 

This tool will create a zipped copy of the directory you enter inside the form and output it in the directory it's run in. Leaves your original directory as it was.

 

Cheers,

Byron

 

edit:

 

Use this instead (see post below)

http://byrondallas.heliohost.org/temp/backup_zip.txt

 

Posted

Hey that's cool byron. Thanks

I kinda have the same thing here at home on my dev server. quick and dirty.

I'm still using the search & destroy script...

although php has been behaving lately. Noticed a reboot last night.

 

 

see ya

Posted

Use this perl script instead. I found out later after much testing that Zip Archives doesn't copy file permissions and all files get reverted back to 644 even if they where 755. I didn't write this script but it works really well. Upload this to your ROOT directory and chmod 755 and give it a .pl or .cgi extension.

 

http://byrondallas.heliohost.org/temp/backup_zip.txt

 

You couild actually run this in any directory but if it's not in the root then you have to give the directory path the full path:

 

ie: /home/byron/public_html/cgi-bin

 

in the root directory you just give it the simple folder path. ie: cgi-bin

 

 

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...