Initialize Git Repository: 'Borgbackup-Schedule'
All checks were successful
Borgbackup Schedule (Bookworm) / Borgbackup Schedule [arm64] (push) Successful in 12s
Borgbackup Schedule (Bookworm) / Borgbackup Schedule [amd64] (push) Successful in 10s
Borgbackup Schedule (Noble) / Borgbackup Schedule [arm64] (push) Successful in 11s
Borgbackup Schedule (Noble) / Borgbackup Schedule [amd64] (push) Successful in 11s
Borgbackup Schedule (Trixie) / Borgbackup Schedule [arm64] (push) Successful in 11s
Borgbackup Schedule (Trixie) / Borgbackup Schedule [amd64] (push) Successful in 11s

This commit is contained in:
Cantibra
2026-01-26 06:09:56 +01:00
commit fe18d515c1
22 changed files with 1545 additions and 0 deletions

3
root/DEBIAN/conffiles Normal file
View File

@@ -0,0 +1,3 @@
/etc/borgbackup/config
/etc/borgbackup/exclude
/etc/cron.d/borgbackup

10
root/DEBIAN/control Normal file
View 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 <repository@privlab.it>
Description: Borgbackup schedule backup service

44
root/DEBIAN/postinst Normal file
View File

@@ -0,0 +1,44 @@
#!/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.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'borgbackup.service' > '/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/touch '/etc/borgbackup/password'
/usr/bin/install --directory --mode='750' '/var/cache/borgbackup'
/usr/bin/install --directory --mode='750' '/var/lib/borgbackup'
/usr/bin/install --directory --mode='750' '/var/log/borgbackup'
/usr/bin/install --directory --mode='750' '/var/logrotate/borgbackup'
/usr/bin/chmod '0640' '/etc/borgbackup/password'
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

38
root/DEBIAN/postrm Normal file
View File

@@ -0,0 +1,38 @@
#!/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.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper mask 'borgbackup.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
;;
purge)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper purge 'borgbackup.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper purge 'borgbackup.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'borgbackup.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'borgbackup.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
/usr/bin/rm --force '/etc/borgbackup/password'
;;
esac
/usr/bin/rm --force --recursive '/var/cache/borgbackup'
/usr/bin/rm --force --recursive '/var/lib/borgbackup'
/usr/bin/rm --force --recursive '/var/log/borgbackup'
/usr/bin/rm --force --recursive '/var/logrotate/borgbackup'

17
root/DEBIAN/prerm Normal file
View File

@@ -0,0 +1,17 @@
#!/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.timer' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-invoke stop '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