Make full tar copy of entire linux machine
Jump to navigation Jump to search
NB: There are better ways for doing this, for example LVM snapshots or full DD of the block device. This is more of a hacky way to get the stuff.
- Stop as many applications as possible
- dev, proc, sys, tmp, lost+found - not needed, are generated during boot time.
- the backup will be put to /mnt/backup and /mnt is not included in the backup.
cd /mnt/backup && tar -cvpzf full_backup.tar.gz --exclude=/mnt --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/lost+found /