Linux

Shell script to backup mySQL database

Shell script to backup MySql database mysql-backup.bash #!/bin/bash # Shell script to backup MySql database # To backup Nysql databases file to /backup dir and later pick up by your # script. You can skip few databases from backup too. # For more info please see (Installation info): # http://www.cyberciti.biz/nixcraft/vivek/blogger/2005/01/mysql-backup-script.html # Last updated: Aug – […]

Read More
Scripting

Shell scripts for archiving digital photos in directories by month

This is my version of the shell script “Shell scripts for archiving digital photos in directories by date“. It utilizes  the exiftags command available in most linux distributions like Gentoo and debian Linux. Though the metacam program is also usefull since it can read Nikon NEF-files.Here’s an example of a directory tree they create: 2006 […]

Read More
Scripting

Recover a dead hard drive using dd

The Unix program dd is a disk copying util that you can use at the command line in order to make a disk image. It makes a bit-by-bit copy of the drive it’s copying, caring nothing about filesystem type, files, or anything else. It’s a great way to workaround the need for Norton Ghost. Normally, […]

Read More
Photo etc

rsync backup on a local pc

#!/bin/bash echo “Starting Daily rsync backup on `date`” for FSYS in /home/username/rsync do /usr/bin/rsync -aE –delete $FSYS /home/username/rsync_bck if [ $? != 0 ]; then echo ” ==> Error during rsync of $FSYS” else echo “rsync of $FSYS OK on `date`” fi done echo “Finished Daily rsync backup at `date`”

Read More