30.sh

#/etc/backup.d/30.sh

# This script can run most any command normally run on the command line.
# Add anything usefull that you would like to do during a backup. But all it does as it stands
#is place files in /var/backup. So these will still need to be backed up by rdiff and friends

# (1) a list of all the packages installed and removed.
# this file can be used to restore the state of installed packages
# by running "dpkg --set-selections < dpkg-selections.txt"
dpkg --get-selections > /var/backups/dpkg-selections.txt

# (2) used with along with /etc/fstab and /var/backups/partitions.hdx.txt
# to decide on how to partition a new disk during a recovery.
# possibly by running #"sfdisk /dev/sdx < partitions.hdx.txt"
# (MAKE SURE YOU PARTITION THE CORRECT DISK!!!)

df > /var/backups/df.txt