postgres-backup/debian/rules

25 lines
971 B
Plaintext
Raw Normal View History

2020-10-13 15:37:16 +02:00
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
%:
dh $@ --with systemd
override_dh_auto_install:
mkdir -p debian/postgres-backup/usr/share/postgres-backup
mkdir -p debian/postgres-backup/etc/postgres-backup
mkdir -p debian/postgres-backup/usr/bin
cp script/pg_backup.sh debian/postgres-backup/usr/share/postgres-backup/pg_backup.sh
cp script/pg_backup_rotated.sh debian/postgres-backup/usr/share/postgres-backup/pg_backup_rotated.sh
2020-10-13 16:19:31 +02:00
cp conf/pg_backup.conf debian/postgres-backup/etc/postgres-backup/pg_backup.conf
2020-10-13 15:37:16 +02:00
chmod +x debian/postgres-backup/usr/share/postgres-backup/pg_backup_rotated.sh
chmod +x debian/postgres-backup/usr/share/postgres-backup/pg_backup.sh
install -D -m 644 debian/postgres-backup.timer debian/postgres-backup/lib/systemd/system/postgres-backup.timer
2020-10-13 17:02:14 +02:00
install -d -o postgres -g postgres debian/postgres-backup/var/backups/database/postgresql
2020-10-13 15:37:16 +02:00
install -d debian/postgres-backup