Simpa studio blog / Been there, done that… Simpa studio blog Feed
  • ARCHIVE / January, 2009
  • Recursively remove all .svn directories

    Every now and then I find myself in a need to this simple task of recursively removing all .svn directories from a project tree: find . -name .svn -print0 | xargs -0 rm -rf Rather similar method can be applied for CVS repositories as well: find . -name CVS -print0 | xargs -0 rm -rf

    Posted on Jan 17.09 to Posts   Add a Comment   

  • MySQL Backup Script

    #!/bin/bash prefix=mysql suffix=$(date +%F).sql filename=$prefix.$suffix mysqldump –opt -uroot -pxxx –all-databases > /backup/mysql/$filename cd /backup/mysql tar -cvf $filename.tar $filename gzip $filename.tar chown root:root /backup/mysql/$filename.tar.gz chmod 600 /backup/mysql/$filename.tar.gz rm $filename #SUBJECT=”MySQL Dump completed” #EMAIL=”my@email.com” #EMAILMESSAGE=”$filename created” #echo $EMAILMESSAGE | /bin/mail -s “$SUBJECT” “$EMAIL”

    Posted on Jan 07.09 to Posts   Add a Comment   

INSIDE    ←


Simpa studio blog

  • Archives

    • July 2010
    • February 2010
    • December 2009
    • October 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • November 2008
  • Blogroll

    • 320×480
    • Simpa studio
  • FOOTER / LEST WE FORGET
    Copyright © 2004-2007 by Simpa studio blog, unless otherwise noted. All rights reserved. Powered by WordPress. Modio theme by Upstart Blogger.