Koha Backup | How to Setup Automatic Backup in Koha

Create Shell Script for Daily Koha Backup

If you want to setup Automatic Koha Backup, Follow the below process.

Create directory for backup
mkdir koha_backup
Allow write permission to this folder
> sudo chmod 777 koha_backup
(Exit from root directory)
Create a file
> sudo gedit koha_backup/backup.sh
Copy below text into file and save it.

#!/bin/bash
mysqldump -u[username] -p[password] koha_library | xz > koha_backup/koha_library-$(date +%d-%m-%Y-%H.%M).sql.xz

(Change [username] & [password] as per your Koha Database Credentials)

Make this file executable by following command:

sudo chmod +x koha_backup/backup.sh
Execute the file by following command:
> sh koha_backup/backup.sh

Open Crontab:
> crontab -e
Add following lines at the end of file:

45 15 * * * koha_backup/backup.sh
00 16 * * * find koha_backup/* -mtime +180 -exec rm {} \;

Save the file and close. (Backup will created at 3:45 PM Daily Automatically)
  1. Gambling in casinos - JtmHub
    This page contains a list of casinos with the 충청북도 출장안마 fastest payouts 삼척 출장마사지 for the most 경주 출장안마 popular video slots, 정읍 출장샵 poker, and more table games. JT is 의정부 출장샵 a casino that was established in

    ReplyDelete