User Tools

Site Tools


re-build_a_debian_based_machine

This is an old revision of the document!


Re-Build a Debian based machine

Things to do if you need to re-build a Debian based machine, assuming the older one can still be logged into.

# As root, on the old machine, get there how you will...
apt install debsums
mount <BackupsLocation> /mnt
# Get a list of changed files in /etc
find /etc -type f | grep -vFf <(debsums -e | grep OK$ | sed 's/[[:space:]]*OK$//') > /mnt/FileList.txt
# Copy those files over
rsync -avz --files-from=/mnt/FileList.txt /mnt/
re-build_a_debian_based_machine.1704308140.txt.gz · Last modified: by steve