Dear All, Good Morning! I just tried to write one script to take the backup for Koha users by running this script. This backup script will take the backup, zip it and then keep the backup in /home folder of Lubuntu/Ubuntu. Script assumes that your database name is koha_library. If not, then change the database name in script and then use it. You can download this script from the following link. www.dptripathi.in/download/backup.sh How to use this? First Step: Download the script and keep at the location from where you can run this script. (For example - Desktop) Second Step: Now, open terminal preferably by pressing (CTRL+ALT+T) together. Third Step: Then, assign permission to the script with the following command. chmod +x backup.sh Forth Step: Login as root user and execute the script 1. Enter sudo su command and login as root user 2. Then type sh backup.sh command (Ensure you are executing the script from the same location where you have kept the backup.sh file) 3. It will ask the mysql database password. Type and press Enter. It will take the backup of your koha mysql database, zip it and save in /home folder. Now, copy the backup, save it to your hard drive or safe location. Advantages: 1. You will not have to remember the command every time to take the back up, if you are taking from terminal. 2. It will zip your backup and reduce the file size. 3. You can run this script everyday from the same location. It will overwrite the backup file and keep the fresh backup. Enjoy!!!! Important Note: Please test it before you use it at your system. Thanks, -- ************************************************************** *Dhanwantari Prakash Tripathi* Assistant Librarian Biju Patnaik Central Library http://library.nitrkl.ac.in National Institute of Technology http://nitrkl.ac.in Rourkela, Odisha - INDIA 769008 *e-mail: *tripathidp@nitrkl.ac.in, dptnitrkl@gmail.com *mobile: *+91-8895296796 *www.dptripathi.in http://www.dptripathi.in * ************************************************************** -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
participants (1)
-
DP Tripathi