I have two hard drives--a system drive and a data drive. The path to the data drive is /storage. Following this post, I went to the root of my filesytem and executed the following command:
tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys --exclude=/storage /
Note that I excluded the data drive (--exclude=/storage) from the backup.
Now I want to restore the system drive but keep the data drive as it is. I should execute:
tar xvpfz backup.tgz -C /
From the how-to instructions, I was given the impression that the excluded folders will be disappeared after the restoration because I will need to recreate the folders I excluded. I am worried that the restoration will erase everything in the data drive because there is no /storage in the tar backup file. Is this a valid concern?