I would like to encrypt my hard drive, but I have a lot of packages installed and configured already, so I was wandering whether it is possible to save a backup state and then restore it to the system.
My current take is this:
tar
everything on my system with a command such as in here:
sudo tar czf /backup.tar.gz \
--exclude=/backup.tar.gz \
--exclude=/dev \
--exclude=/mnt \
--exclude=/proc \
--exclude=/sys \
--exclude=/tmp \
--exclude=/lost+found /
- Then load from USB-drive, format and install new system, while encrypting my partitions.
- Then untar everything back to the new system.
My questions are: will that work? are there any more convenient ways to encrypt a hard drive while preserving packages and configuration? Are there some caveats I should know about? Can you share your experience?
Thanks in advance.