From 3128ae3e21d4398441cd19fe16ea416f1232519c Mon Sep 17 00:00:00 2001 From: mainboarder Date: Thu, 20 Jul 2017 00:43:14 +0200 Subject: [PATCH] save names of installed packages --- backup-server.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backup-server.sh b/backup-server.sh index df98e2d..8fa1672 100644 --- a/backup-server.sh +++ b/backup-server.sh @@ -87,6 +87,9 @@ if [ $ip6tables = true ]; then $IP6TABLESEXEC > "$temp/ip6tables" fi +# save names of installed packages +dpkg --get-selections | awk '!/deinstall|purge|hold/ {print $1}' > "$temp/packages.list" + ### Backup if [ $ALGO ]; then