Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Shell Scripting


  • Please log in to reply
2 replies to this topic

#1 forrestmage

forrestmage

  • Members
  • 31 posts
  • OFFLINE
  •  
  • Local time:01:07 AM

Posted 25 April 2008 - 04:22 PM

I don't know shell scripting but I would like to script the backup so that my sql database password is not in the crontab file. This is what I'm running in crontab
mkdir /backups/daily_`date --iso-8601` && mysqldump --tab=/backups/daily_`date --iso-8601` database -u **** -p******

fyi, I have Gutsy Gibbon server

thanks, aaron

BC AdBot (Login to Remove)

 


#2 raw

raw

    Bleeping Hacker


  • Members
  • 2,577 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Texas
  • Local time:02:07 AM

Posted 26 April 2008 - 02:20 PM

Here's a good thread about that:
http://www.webhostingtalk.com/archive/inde...p/t-467630.html

rawsig.png

 rawcreations.net          @raw_creations


Current systems: WHAT OS, BackTrack-raw, PCLinuxOS, Peppermint OS 6, Kali Linux

and a custom Linux From Scratch server hosting a bunch of top secret stuff.


#3 forrestmage

forrestmage
  • Topic Starter

  • Members
  • 31 posts
  • OFFLINE
  •  
  • Local time:01:07 AM

Posted 05 May 2008 - 05:12 PM

Thanks for the link, I was able to figure it out! :thumbsup: Nothing fancy, but it works :flowers:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users