LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 09-02-2019, 05:44 AM   #1
butcho
LQ Newbie
 
Registered: Aug 2019
Location: Florida
Distribution: Ubuntu
Posts: 9

Rep: Reputation: Disabled
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?
 
Old 09-02-2019, 05:46 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Duplicate; reported for closure.
 
Old 09-02-2019, 07:35 AM   #3
butcho
LQ Newbie
 
Registered: Aug 2019
Location: Florida
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: Disabled
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?
 
Old 09-02-2019, 08:06 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
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.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backing up home dir with tar Ubuntu butcho Linux - Newbie 14 09-03-2019 11:24 AM
copying files from home dir to another dir from another dir in a lower dir chomito44 Linux - General 5 10-19-2013 06:18 PM
tar dir and sub dir removing files but not existing not empty dir j-me Linux - General 2 08-12-2013 11:37 AM
Command to display /dir, /dir/sub, /dir/sub/files knockout_artist Linux - Newbie 9 10-25-2007 02:57 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration