View Single Post
clasificado's Avatar
Posts: 466 | Thanked: 180 times | Joined on Feb 2010
#5
You need to exclude /sys & /proc at the very least. You probably also want to exclude other filesystems like /media/mmc1 and python bind mounts.
You can do that by bind mounting root (/) into a subfolder.

Try this
Code:
sudo gainroot
mount --bind / /mnt
tar -cvzf /media/mmc1/backup.tar.gz /mnt
This way, you will have in /mnt the clean root filesystem, without all that complex mounts that your system needs

Last edited by clasificado; 2010-09-15 at 05:58.
 

The Following User Says Thank You to clasificado For This Useful Post: