I have to backup /home/dev/ directory, add new disk, create LVM, mount and restore backup to the new mounted volume.
It should look like this at the end:
/dev/mapper/vg00-home--dev 22G 3.6G 18G 17% /home/dev
To backup I will use:
sudo tar -cpzf mybackup.tar.gz \ --exclude=mybackup.tar.gz\ --exclude=jenkins --warning=no-file-changed .
But where should I store backup when adding disk, LVM and so on?
Secondly, to restore should I just go to new /home/dev/ directory and use:
tar xvpfz mybackup.tgz
or should I did it in a different way? What are the best practices?