LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-05-2004, 10:26 AM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,655

Rep: Reputation: Disabled
tar to restore backup -- goes to sleep?!?


I successfully tarred my home and root directories to a spare partition and then reinstalled my system. When I wanted to restore things I used from /home
Code:
tar -xvpPT /work/restore-home /work/root+home.tar
Upon hitting return the cursor just blinks in the next line and nothing happens, no output, no hd-activity, nothing. ps gives the status of tar as "S" (sleeping?). Why? How do I wake it?

Explanation: the File /work/restore-home contains just one line, i.e. /home to extract only home out of the archive into /home proper. Any ideas??
 
Old 05-05-2004, 10:53 AM   #2
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
Re: tar to restore backup -- goes to sleep?!?

Quote:
Originally posted by JZL240I-U
I successfully tarred my home and root directories to a spare partition and then reinstalled my system. When I wanted to restore things I used from /home
Code:
tar -xvpPT /work/restore-home /work/root+home.tar
Upon hitting return the cursor just blinks in the next line and nothing happens, no output, no hd-activity, nothing. ps gives the status of tar as "S" (sleeping?). Why? How do I wake it?

Explanation: the File /work/restore-home contains just one line, i.e. /home to extract only home out of the archive into /home proper. Any ideas??
The command :

tar -xvpPT /work/restore-home /work/root+home.tar

is missing the -f thingy.

AFAIK tar will then asume it must read from std-in,
handy if you want to use tar in a situation using pipes.....

I think it should read:

tar -xvpPT /work/restore-home -f work/root+home.tar

You could also just untar the whole tar somewhere where you have enough space,
and then just move the newly created dirs whereever you like.

By the way, this is a very practical example why it could be usefull to have /home on a different partition .-)

By the way(2) don't use things like + in filenames,
it will give you headaches some day.....
 
Old 05-05-2004, 11:56 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,655

Original Poster
Rep: Reputation: Disabled
Re: Re: tar to restore backup -- goes to sleep?!?

Quote:
Originally posted by pankrat
The command is missing the -f thingy....
Uargh I knew it had to be something simple, I mean I read the man page forward, backward, from both sides and from behind ... everything so simple and clear ...

Btw. home has its own partition in a LVM volume group named /dev/vg/home but that didn't help. (I reinstalled via Konqueror btw. but that doesn't care for the permissions so I had to "chown" and "chgrp" as root but no sweat here.

Btw. why is a "+" in file names dangerous? The system does it all the while (like in lost+fount etc.)

Thanks for your -fast- help .
 
Old 05-06-2004, 08:18 AM   #4
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
Plus signs..

Hi,

I can't realy say + signs are dangerous,
but I consider them 'bad style'.

I'm a Java / Oracle / Web / Bash whatever developer
coding in a mixed Linux and win32 enviroment

AFAIK a + must be urlencoded when used in links,
our documents are often linked,
so not using these kind of characters in the first place
saves a lot of headaches later.

(I dont use spaces in my filenames either,
for pretty much the same reasons)

I wouldn't say it is dangerous,
but mark my words:
one day you will understand what I have told you
 
Old 05-10-2004, 02:55 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,655

Original Poster
Rep: Reputation: Disabled
Re: Plus signs..

Quote:
Originally posted by pankrat
... AFAIK a + must be urlencoded when used in links, our documents are often linked, so not using these kind of characters in the first place saves a lot of headaches later. ...
Ah, understood. Thanks again and bye .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Backup and Restore with TAR jay2809 Linux - Newbie 7 08-25-2004 04:47 PM
Backup & Restore plan using tar markcasazza Linux - Newbie 1 04-14-2004 01:11 PM
tar backup & restore of current directory wishbone42 Linux - General 3 02-09-2004 02:30 AM
backup and restore using tar AZDAVE Linux - General 6 11-28-2003 08:40 PM
how can I restore a tar backup len snelly Linux - Newbie 1 04-30-2002 12:29 PM


All times are GMT -5. The time now is 08:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration