#!/bin/bash BACKUPDIR-/mnt/data/PUBLIC/debbu2/pkgbu dpkg --get-selections | grep -v deinstall > $BACKUPDIR/pkgbu-`date +%F-%H-%M`.txt