Skip to main content
1 of 2

Backup entire linux system with tar to the partition that mounted in system itself

All my OS system is mounted in one partition, it's /dev/vda1.

Is there problem if I backup entire linux directory with this command

root@myOS:/# tar -cJpf /mnt/bax/myOS.tar.xz . 

So basically I backup entire system and save it in my second partition.

Where /mnt/bax has been mounted by /dev/vda2 (second partition).

I'm afraid if recursive backup happened, I mean since /dev/vda2 is mounted, thats mean recursive backup will happen?