You've already forked Borgbackup-Schedule
Inital Commit
This commit is contained in:
4
root/DEBIAN/conffiles
Normal file
4
root/DEBIAN/conffiles
Normal file
@@ -0,0 +1,4 @@
|
||||
/etc/borgbackup/config
|
||||
/etc/borgbackup/exclude
|
||||
/etc/borgbackup/password
|
||||
/etc/cron.d/borgbackup
|
||||
10
root/DEBIAN/control
Normal file
10
root/DEBIAN/control
Normal file
@@ -0,0 +1,10 @@
|
||||
Package: borgbackup-schedule
|
||||
Version: 1.0.0
|
||||
Architecture:
|
||||
Installed-Size:
|
||||
Depends: borgbackup, fuse, python3-llfuse
|
||||
Priority: optional
|
||||
Section: misc
|
||||
Homepage: http://www.privlab.it
|
||||
Maintainer: PrivLab <hostmaster@privlab.it>
|
||||
Description: Borgbackup schedule backup service
|
||||
40
root/DEBIAN/postinst
Normal file
40
root/DEBIAN/postinst
Normal file
@@ -0,0 +1,40 @@
|
||||
#!/usr/bin/sh
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
if [ -d '/run/systemd/system' ]; then
|
||||
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
|
||||
case "${1}" in
|
||||
configure)
|
||||
if [ -x '/usr/bin/deb-systemd-helper' ]; then
|
||||
/usr/bin/deb-systemd-helper unmask 'borgbackup.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
/usr/bin/deb-systemd-helper unmask 'borgbackup.timer' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
if /usr/bin/deb-systemd-helper --quiet was-enabled 'borgbackup.timer'; then
|
||||
/usr/bin/deb-systemd-helper enable 'borgbackup.timer' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
else
|
||||
/usr/bin/deb-systemd-helper update-state 'borgbackup.timer' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
/usr/bin/chgrp --quiet 'adm' '/var/log/borgbackup'
|
||||
/usr/bin/chgrp --quiet 'adm' '/var/logrotate/borgbackup'
|
||||
if [ -x '/usr/bin/deb-systemd-invoke' ]; then
|
||||
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
if [ -n "${2}" ]; then
|
||||
_dh_action='restart'
|
||||
else
|
||||
_dh_action='start'
|
||||
fi
|
||||
/usr/bin/deb-systemd-invoke "${_dh_action}" 'borgbackup.timer' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
46
root/DEBIAN/postrm
Normal file
46
root/DEBIAN/postrm
Normal file
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/sh
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
if [ -d '/run/systemd/system' ]; then
|
||||
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
|
||||
case "${1}" in
|
||||
remove)
|
||||
if [ -x '/usr/bin/deb-systemd-helper' ]; then
|
||||
/usr/bin/deb-systemd-helper mask 'borgbackup.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
/usr/bin/deb-systemd-helper mask 'borgbackup.timer' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
/usr/bin/rm --force --recursive '/var/cache/borgbackup/'*
|
||||
/usr/bin/rm --force --recursive '/var/cache/borgbackup/'.*
|
||||
/usr/bin/rm --force --recursive '/var/log/borgbackup/'*
|
||||
/usr/bin/rm --force --recursive '/var/log/borgbackup/'.*
|
||||
/usr/bin/rm --force --recursive '/var/logrotate/borgbackup/'*
|
||||
/usr/bin/rm --force --recursive '/var/logrotate/borgbackup/'.*
|
||||
;;
|
||||
purge)
|
||||
if [ -x '/usr/bin/deb-systemd-helper' ]; then
|
||||
/usr/bin/deb-systemd-helper purge 'borgbackup.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
/usr/bin/deb-systemd-helper purge 'borgbackup.timer' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
/usr/bin/deb-systemd-helper unmask 'borgbackup.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
/usr/bin/deb-systemd-helper unmask 'borgbackup.timer' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
/usr/bin/rm --force --recursive '/var/cache/borgbackup/'*
|
||||
/usr/bin/rm --force --recursive '/var/cache/borgbackup/'.*
|
||||
/usr/bin/rm --force --recursive '/var/lib/borgbackup/'*
|
||||
/usr/bin/rm --force --recursive '/var/lib/borgbackup/'.*
|
||||
/usr/bin/rm --force --recursive '/var/log/borgbackup/'*
|
||||
/usr/bin/rm --force --recursive '/var/log/borgbackup/'.*
|
||||
/usr/bin/rm --force --recursive '/var/logrotate/borgbackup/'*
|
||||
/usr/bin/rm --force --recursive '/var/logrotate/borgbackup/'.*
|
||||
;;
|
||||
esac
|
||||
19
root/DEBIAN/prerm
Normal file
19
root/DEBIAN/prerm
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/sh
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
case "${1}" in
|
||||
remove)
|
||||
if [ -x '/usr/bin/deb-systemd-invoke' ]; then
|
||||
/usr/bin/deb-systemd-invoke stop 'borgbackup.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
/usr/bin/deb-systemd-invoke stop 'borgbackup.timer' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
/usr/bin/deb-systemd-invoke disable 'borgbackup.service' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
/usr/bin/deb-systemd-invoke disable 'borgbackup.timer' > '/dev/null' 2>&1 || \
|
||||
/usr/bin/true
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user