Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 08-16-2012, 10:38 PM
Website's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 11-15-10
Posts: 316
iTrader: 0 / 0%
Exclamation Untar Command

When i enter this command, it just goes to the next line and stays like that for hours. I assume because the file is about 100gb and it tries to untar it right?

tar -xf /root/folder/backupfolder/15.august.2012-.tar

Now the real question is where does it untar it to? Maybe i cut the process in the middle of it but i dont see the untar`ed files in the same folder.

I just want to untar this file in the same folder and thas all. Can somebody help me please?
 
Reply With Quote
  #2 (permalink)  
Old 08-16-2012, 11:03 PM
Member
 
Join Date: 06-21-12
Posts: 44
iTrader: 0 / 0%
Try adding the "v" flag like this:

tar -xvf /root/folder/backupfolder/15.august.2012-.tar

The -v flag is for "verbose". You should see a list of files being extracted as they are being extracted.

Quote:
Now the real question is where does it untar it to? Maybe i cut the process in the middle of it but i dont see the untar`ed files in the same folder.
It will untar it into your current working directory (try "pwd" command).
__________________
AtomicVPS Cloud Hosting
Interested in seeing how we started?
 
Reply With Quote
  #3 (permalink)  
Old 08-16-2012, 11:17 PM
Website's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 11-15-10
Posts: 316
iTrader: 0 / 0%
Exclamation

Quote:
Originally Posted by cmpe View Post
Try adding the "v" flag like this:

tar -xvf /root/folder/backupfolder/15.august.2012-.tar

The -v flag is for "verbose". You should see a list of files being extracted as they are being extracted.
It will untar it into your current working directory (try "pwd" command).
Worked well thx.
But when i go to ftp and look at the folder. I dont see the untar`ed ones yet. Does it not show them until it finished completely?

How can i see/access them before it finishes? Because like i said, its a 100gb file it take hours to complete.

Also one more thing, i have killed the process in the middle many times, would it leave any files etc in anywhere (like temp folders or something) i should delete before i start untaring again?
 
Reply With Quote
  #4 (permalink)  
Old 08-17-2012, 02:45 AM
Website's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 11-15-10
Posts: 316
iTrader: 0 / 0%
Well the process worked well but it ended up with opt/ and then went to the regular command line. But when i refresh the folder in ftp, i dont see the untarred files or folders. So command either didnt work, or didnt work all the way through or put the files somewhere else.

Can somebody please help me?
 
Reply With Quote
  #5 (permalink)  
Old 08-17-2012, 08:39 AM
Member
 
Join Date: 06-21-12
Posts: 44
iTrader: 0 / 0%
Copy paste what it shows in the standard output when you run the tar command with -xvf flag. You don't have to show the whole output, just a snippet so we can see where the files are being extracted to.
__________________
AtomicVPS Cloud Hosting
Interested in seeing how we started?
 
Reply With Quote
  #6 (permalink)  
Old 08-19-2012, 02:12 AM
Website's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 11-15-10
Posts: 316
iTrader: 0 / 0%
After i put the command it shows only the files are being untar`ed. It doesnt show where does it extract them to.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply

Tags
untar folder backup


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron job command WebcsPeter Web Hosting Forum 2 11-29-2011 02:28 AM
Command & Conquer: Red Alert 3 dWhite Tech Talk 1 12-23-2008 05:20 AM
Link command,,,, a3196 Google Forum 3 01-22-2005 11:34 AM
Best SE for LINK: command steeling Johan007 Google Forum 4 11-09-2004 12:45 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 10:20 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.