backup-server-state: release 22.03.2
Some checks reported errors
continuous-integration/drone/push Build was killed

update documentation for --dpkg-full vs. --dpkg-status
This commit is contained in:
Jérémy Lecour 2022-03-17 10:45:44 +01:00 committed by Jérémy Lecour
parent 8a9faa0250
commit fb41c81e99
2 changed files with 7 additions and 5 deletions

View file

@ -15,7 +15,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Changed
* evocheck: upstream release 22.03
* evolinux-base: backup-server-state release 22.03
* evolinux-base: backup-server-state release 22.03.2
* evolinux-base: Add non-free repos & install non-free firmware on dedicated hardware
* generate-ldif: Add services check for bkctld
* minifirewall: upstream release 22.03.2 and use includes directory

View file

@ -2,7 +2,7 @@
PROGNAME="backup-server-state"
VERSION="22.03"
VERSION="22.03.2"
readonly VERSION
backup_dir=
@ -34,8 +34,10 @@ Options
-f, --force keep existing backup directory and its content
--etc backup copy of /etc
--no-etc no backup copy of /etc (default)
--dpkg backup copy of /var/lib/dpkg
--no-dpkg no backup copy of /var/lib/dpkg (default)
--dpkg-full backup copy of /var/lib/dpkg
--no-dpkg-full no backup copy of /var/lib/dpkg (default)
--dpkg-status backup copy of /var/lib/dpkg/status (default)
--no-dpkg-status no backup copy of /var/lib/dpkg/status
--apt-states backup copy of apt extended states (default)
--no-apt-states no backup copy of apt extended states
--apt-config backup copy of apt configuration (default)
@ -471,7 +473,7 @@ backup_sysctl() {
sysctl_bin=$(command -v sysctl)
if [ -n "${sysctl_bin}" ]; then
last_result=$(${sysctl_bin} -a | sort -h > "${backup_dir}/sysctl.txt")
last_result=$(${sysctl_bin} -a --ignore 2>/dev/null | sort -h > "${backup_dir}/sysctl.txt")
last_rc=$?
if [ ${last_rc} -eq 0 ]; then