LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-18-2007, 03:14 PM   #1
homy
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
using tar for backup - error permission denied


Hi,

I'm using tar to backup the whole hard drive with root as username.
But having problem with permission denied.
my command was
tar clSf - . | (cd /mnt/newmount; tar xpSf -)

my current directory was /
even when I moved to ~/ still have same problem with these files ./.bashrc ...
I changed the permission to those files to 777 still have permission denied.

tar:./.bashrc: Cannot open: Permission denied
tar: Error exit delayed from previous errors

Please show me.

Thanks,
 
Old 06-18-2007, 03:23 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,978
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Hmm...I don't know what the problem could be....but I've always done that command like this:

Code:
tar -cf - . | (cd /destination/directory ; cat -xf -)
Also the destination directory must exist before performing that command...it won't create it for you.
 
Old 06-18-2007, 04:01 PM   #3
homy
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Original Poster
Rep: Reputation: 0
I'm using RedHat 9.0.
That was the problem.
I tried on Fedora Core 6.0 and it works.
But I really want RedHat 9.0.
 
  


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
Permission Denied Error ckurowic Linux - Server 7 05-18-2007 04:33 AM
permission denied installing tar-1.14 at chapter 5.27 status1 Linux From Scratch 7 10-31-2006 08:06 PM
sasldb Permission denied error shino Linux - Networking 0 01-15-2004 04:55 PM
permission denied error endezeichen Linux - General 5 12-20-2003 07:59 PM
Problems unzipping a *.tar.gz file --permission denied? mfarley Linux - Newbie 3 07-22-2003 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:11 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
Open Source Consulting | Domain Registration