LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


Reply
  Search this Thread
Old 07-15-2010, 02:48 PM   #1
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Rep: Reputation: 31
Bash out of control ?


Hi,

I created a system restore file.

code:

tar cvpzf sysrestor.tgz --exclude=/proc --exclude=/lost+found --exclude=/sysrestor.tgz --exclude=/mnt --exclude=/sys /


And hav tried out:

ctl alt F4

root@ desktop:# tar -cxvpfz sysrestor.tgz /

code has been streaming past for ages. Longer than a fresh install!
I'm wondering if i've done something to create a cycle?

How and should i interupt it? If i ctl alt F7, will it take me back to Desktop?

Thanks for your time
_________
 
Old 07-15-2010, 02:52 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,514

Rep: Reputation: 197Reputation: 197
Hit Ctrl-C to abort the command. Ctrl-Alt_F7 will return you to a graphical desktop on most distros.
 
Old 07-15-2010, 02:55 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
I've never tried what you are describing, but I wonder if the problem is the tarball you're creating is getting included in the tarball you're creating... (and so on).

Can you describe the end game? You want to take a full backup of your system for quick restores, right?
 
Old 07-15-2010, 03:23 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
You probably need to exclude /dev as well
 
Old 07-15-2010, 03:33 PM   #5
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
Thanks for your help.

I've been following advice without knowing much about the process.

the restore command from the gui terminal is a little different but fails to restore the sys, so i tried a modified one from ctl alt F4.

The tar file should be excluded from the restore.

I thought it was a sensible and convenient precaution to make this file have you not done the same or similar?
 
Old 07-15-2010, 03:40 PM   #6
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Was your current working directory / ? Also, exclude /proc
 
Old 07-15-2010, 03:44 PM   #7
nnjond
Member
 
Registered: Feb 2007
Distribution: Ubuntu 10.04
Posts: 281

Original Poster
Rep: Reputation: 31
[Hi,

I created a system restore file.

code:

tar cvpzf sysrestor.tgz --exclude=/proc --exclude=/lost+found --exclude=/sysrestor.tgz --exclude=/mnt --exclude=/sys /

QUOTE=Bratmon;4034541]Was your current working directory / ? Also, exclude /proc[/QUOTE]
 
  


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
[bash]how to control output style? holmes86 Programming 2 08-27-2009 08:36 AM
Using a variable to control a BASH for loop JohnE1 Programming 15 07-04-2009 03:37 AM
BASH: FOR control with two variables? fopetesl Linux - Software 3 12-08-2007 03:07 AM
LXer: Take Control in the Bash Shell LXer Syndicated Linux News 0 07-28-2006 08:54 PM
in bash does control-c = SIGINT or SIGTERM? walterbyrd Linux - General 2 05-09-2006 11:01 AM


All times are GMT -5. The time now is 06:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration