Specify configuration file
This commit is contained in:
parent
4205191c4f
commit
8cecc36bf3
1
debian/postgres-backup.links
vendored
1
debian/postgres-backup.links
vendored
@ -1,3 +1,2 @@
|
|||||||
/usr/share/postgres-backup/pg_backup.conf /etc/postgres-backup/pg_backup.conf
|
|
||||||
/usr/share/postgres-backup/pg_backup.sh /usr/bin/pg_backup.sh
|
/usr/share/postgres-backup/pg_backup.sh /usr/bin/pg_backup.sh
|
||||||
/usr/share/postgres-backup/pg_backup_rotated.sh /usr/bin/pg_backup_rotated.sh
|
/usr/share/postgres-backup/pg_backup_rotated.sh /usr/bin/pg_backup_rotated.sh
|
2
debian/postgres-backup.service
vendored
2
debian/postgres-backup.service
vendored
@ -3,7 +3,7 @@ Description=Run PostgreSQL backup
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/pg_backup_rotated.sh
|
ExecStart=/usr/bin/pg_backup_rotated.sh -c /etc/postgres-backup/pg_backup.conf
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -14,7 +14,7 @@ override_dh_auto_install:
|
|||||||
|
|
||||||
cp script/pg_backup.sh debian/postgres-backup/usr/share/postgres-backup/pg_backup.sh
|
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
|
cp script/pg_backup_rotated.sh debian/postgres-backup/usr/share/postgres-backup/pg_backup_rotated.sh
|
||||||
cp conf/pg_backup.conf debian/postgres-backup/usr/share/postgres-backup/pg_backup.conf
|
cp conf/pg_backup.conf debian/postgres-backup/etc/postgres-backup/pg_backup.conf
|
||||||
|
|
||||||
chmod +x debian/postgres-backup/usr/share/postgres-backup/pg_backup_rotated.sh
|
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
|
chmod +x debian/postgres-backup/usr/share/postgres-backup/pg_backup.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user