After some trial and error, I've managed to backup my Ubuntu 10.04 workstation and it's time for my Laptop. It also runs 10.04, but has an encrypted /home
folder.
Running the below snippet as root
clearly doesn't work well with encryption, so how should I do this?
sudo -i
cd /
tar -cvpzf sysbackup-20110821.tar.gz \
--exclude=/sysbackup-20110821.tar.gz \
--exclude=/proc \
--exclude=/lost+found \
--exclude=/sys \
--exclude=/mnt \
--exclude=/media \
--exclude=/dev /
From the ecryptfs man page, try to mount it somewhere as a regular folder, and then execute your tar command.
Note above that I removed the
--exclude /mnt
and also created the directory/mnt/usermount
just in case you don't have it.