Help with shell script to auto gzip a .sql dump after backup

Reply

Join Date: Jan 2004
Posts: 152
Reputation: floris has a spectacular aura about floris has a spectacular aura about 
Solved Threads: 2
floris's Avatar
floris floris is offline Offline
vBulletin.com Staff

Help with shell script to auto gzip a .sql dump after backup

 
0
  #1
Jan 21st, 2004
Hi there,

I have a script in my intranet to which I have 100% rights to run through browser using exec(); passthru(); system(); etc with php.

Now we use this to make automated backups per user database of certain systems connected. Very simple for the end-user after done working and very complex for the managers to process. So I rather not explain.

It comes down to a control panel page where certain things can be performed, including running this script for a personal copy, system backup and extra backup for company archive.

The dumps are quite big in some situations and the system resources can handle the stress and load easy to also gzip the results.

But how do I gzip the result properly using a .php script that runs a .sh or perl file?

Please help me

I tried piping the command and stuff, but I resulted in 0byte files.
Hopefully someone has an example for me.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC