File: cron.daily

package info (click to toggle)
gnumed-server 22.15-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 46,556 kB
  • sloc: sql: 1,217,005; python: 15,469; sh: 1,553; makefile: 20
file content (24 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# care for daily backup of GNUmed database

# This script only saves plain data without table structure etc.
# Normally you want to store the whole database
# DATA=/usr/sbin/gm-backup_data

# Backup of data and table structure
DATABASE=/usr/sbin/gm-backup

# Compress and sign backup
ZIPSIGN=/usr/sbin/gm-zip+sign_backups

# if [ -x "$DATA" ] ; then
#     $DATA
# fi

if [ -x "$DATABASE" ] ; then
    $DATABASE
fi

if [ -x "$ZIPSIGN" ] ; then
    $ZIPSIGN
fi