File: gm-backup_and_zip_database

package info (click to toggle)
gnumed-server 22.33-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,292 kB
  • sloc: sql: 1,217,661; python: 16,156; sh: 1,590; makefile: 20
file content (20 lines) | stat: -rwxr-xr-x 337 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# take care of daily backup of GNUmed database
# to be run by cron/anacron/systemd.timer/...
#
# install into /usr/sbin/

# backup data
DOBACKUP=/usr/sbin/gm-backup

# compress and sign backup(s)
ZIPSIGN=/usr/sbin/gm-zip+sign_backups

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

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