LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Backing up home dir with tar Ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/backing-up-home-dir-with-tar-ubuntu-4175660201/)

butcho 09-02-2019 05:44 AM

Backing up home dir with tar Ubuntu
 
Hello, I have one question? This is how I am planning to use Tar.

cd /
sudo tar -cvzf 2019-08-10-backup.tar.gz /home/butch/

Then after its made I will move to USB drive for safe keeping.
Then if I have to extract or use it. I have command as follows:

cd / move file from USB to root
sudo tar -xvzf 2019-08-10-backup.tar.gz /home/butch/

My question is when I go to extract, after doing cd / (root) Do I move file from USB drive to root or do I run extract from USB drive?

syg00 09-02-2019 05:46 AM

Duplicate; reported for closure.

butcho 09-02-2019 07:35 AM

Thanks, this doesn't answer question that I asked. Thats why I resubmitted! My question is when I go to extract, after doing cd / (root) Do I move file from USB drive to root or do I run extract from USB drive?

rtmistler 09-02-2019 08:06 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 10:13 AM.