xUbuntu_22.04 \
xUbuntu_22.10 \
xUbuntu_23.04 \
- xUbuntu_23.10
+ xUbuntu_23.10 \
+ xUbuntu_24.04
RASPBIAN_FLAVOURS = \
Raspbian_10 \
- Raspbian_11
+ Raspbian_11 \
+ Raspbian_12
show-debian:
@echo "Debian flavors: $(DEBIAN_FLAVOURS)"
[Timer]
OnBootSec=10m
-OnUnitActiveSec=1d
+OnUnitActiveSec=1h
[Install]
WantedBy=timers.target
dh_auto_install
install -D -m 644 data/sysconfig.snapper $$(pwd)/debian/tmp/etc/sysconfig/snapper
mv $$(pwd)/debian/tmp/etc/cron.hourly/suse.de-snapper $$(pwd)/debian/tmp/etc/cron.hourly/snapper
- mv $$(pwd)/debian/tmp/etc/cron.daily/suse.de-snapper $$(pwd)/debian/tmp/etc/cron.daily/snapper
-etc/cron.daily/snapper
etc/cron.hourly/snapper
etc/logrotate.d/snapper
usr/bin/snapper
# will not need this.
if [ "$action" = upgrade ]; then
- # move /etc/cron.daily/snapper/suse.de-snapper to the correct location
- if [ -e /etc/cron.daily/snapper/suse.de-snapper ]; then
- mv /etc/cron.daily/snapper/suse.de-snapper /etc/cron.daily/snapper.cron
- rm -rf /etc/cron.daily/snapper
- mv /etc/cron.daily/snapper.cron /etc/cron.daily/snapper
- fi
# move /etc/cron.hourly/snapper/suse.de-snapper to the correct location
if [ -e /etc/cron.hourly/snapper/suse.de-snapper ]; then
mv /etc/cron.hourly/snapper/suse.de-snapper /etc/cron.hourly/snapper.cron
<title>Cleanup Algorithms</title>
<para>Snapper provides several algorithms to clean up old snapshots. The
- algorithms are executed in a daily cronjob or systemd timer. This can be configured in the
+ algorithms are executed in an hourly cronjob or systemd timer. This can be configured in the
corresponding configurations files along with parameters for every
algorithm.</para>
+-------------------------------------------------------------------
+Wed Apr 17 15:00:13 CEST 2024 - aschnell@suse.com
+
+- run cleanup service every hour (gh#openSUSE/snapper#885)
+
-------------------------------------------------------------------
Tue Apr 16 17:59:58 CEST 2024 - aschnell@suse.com
endif
-EXTRA_DIST = snapper-hourly snapper-daily bash-completion.bash zsh-completion.zsh $(pam_snapper_SCRIPTS)
+EXTRA_DIST = snapper-hourly bash-completion.bash zsh-completion.zsh $(pam_snapper_SCRIPTS)
install-data-local:
install -D snapper-hourly $(DESTDIR)/etc/cron.hourly/suse.de-snapper
- install -D snapper-daily $(DESTDIR)/etc/cron.daily/suse.de-snapper
install -D --mode a+r,u+w bash-completion.bash $(DESTDIR)/usr/share/bash-completion/completions/snapper
install -D --mode a+r,u+w zsh-completion.zsh $(DESTDIR)/usr/share/zsh/site-functions/_snapper
+++ /dev/null
-#!/bin/sh
-
-#
-# paranoia settings
-#
-umask 022
-PATH=/sbin:/bin:/usr/sbin:/usr/bin
-export PATH
-
-
-#
-# get information from /etc/sysconfig/snapper
-#
-if [ -f /etc/sysconfig/snapper ] ; then
- . /etc/sysconfig/snapper
-fi
-
-
-#
-# run snapper for all configs
-#
-for CONFIG in $SNAPPER_CONFIGS ; do
-
- NUMBER_CLEANUP="no"
- TIMELINE_CLEANUP="no"
- EMPTY_PRE_POST_CLEANUP="no"
-
- . /etc/snapper/configs/$CONFIG
-
- if [ "$NUMBER_CLEANUP" = "yes" ] ; then
- snapper --config=$CONFIG --quiet cleanup number
- fi
-
- if [ "$TIMELINE_CLEANUP" = "yes" ] ; then
- snapper --config=$CONFIG --quiet cleanup timeline
- fi
-
- if [ "$EMPTY_PRE_POST_CLEANUP" = "yes" ] ; then
- snapper --config=$CONFIG --quiet cleanup empty-pre-post
- fi
-
-done
-
-exit 0
#
-# run snapper for all configs
+# run snapper timeline for all configs
#
for CONFIG in $SNAPPER_CONFIGS ; do
done
+#
+# run snapper cleanup for all configs
+#
+for CONFIG in $SNAPPER_CONFIGS ; do
+
+ NUMBER_CLEANUP="no"
+ TIMELINE_CLEANUP="no"
+ EMPTY_PRE_POST_CLEANUP="no"
+
+ . /etc/snapper/configs/$CONFIG
+
+ if [ "$NUMBER_CLEANUP" = "yes" ] ; then
+ snapper --config=$CONFIG --quiet cleanup number
+ fi
+
+ if [ "$TIMELINE_CLEANUP" = "yes" ] ; then
+ snapper --config=$CONFIG --quiet cleanup timeline
+ fi
+
+ if [ "$EMPTY_PRE_POST_CLEANUP" = "yes" ] ; then
+ snapper --config=$CONFIG --quiet cleanup empty-pre-post
+ fi
+
+done
+
exit 0
%make_install
rm -f "%{buildroot}/%{_libdir}"/*.la "%{buildroot}/%{pam_security_dir}/pam_snapper.la"
rm -f %{buildroot}/etc/cron.hourly/suse.de-snapper
-rm -f %{buildroot}/etc/cron.daily/suse.de-snapper
%if 0%{?suse_version}
install -D -m 644 data/sysconfig.snapper "%{buildroot}%{_fillupdir}/sysconfig.snapper"
systemctl preset snapper-timeline.timer || :
systemctl is-enabled -q snapper-timeline.timer && systemctl start snapper-timeline.timer || :
fi
-if [ -f /etc/cron.daily/suse.de-snapper ]; then
- systemctl preset snapper-cleanup.timer || :
- systemctl is-enabled -q snapper-cleanup.timer && systemctl start snapper-cleanup.timer || :
-fi
%service_add_post snapper-boot.service snapper-boot.timer snapper-cleanup.service snapper-cleanup.timer snapper-timeline.service snapper-timeline.timer snapperd.service
%endif