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 06-17-2009, 08:14 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
tar file without remove existing data


I want to use tar command to backup file ,( tar -cvf device file ) , but I found that if I use this command , it will overwrite / remove the existing data in the tape ( the data is created by other tools , not tar ) , can advise how can I keep the existing data if I use tar backup ? thx
 
Old 06-17-2009, 08:20 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try the -A or -r options. See man tar
 
Old 06-17-2009, 08:50 PM   #3
ellappan
LQ Newbie
 
Registered: May 2009
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by ust View Post
I want to use tar command to backup file ,( tar -cvf device file ) , but I found that if I use this command , it will overwrite / remove the existing data in the tape ( the data is created by other tools , not tar ) , can advise how can I keep the existing data if I use tar backup ? thx
try tar -xvf <your tar file>
 
Old 06-18-2009, 12:26 AM   #4
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
thx reply ,

but the existing is made by other backup tool , the -A -r is to append new backup file to the tar file ? if yes , what can I append the new backup file to existing data ? thx
 
  


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
tar file without remove existing data ust Linux - Newbie 3 06-10-2009 01:55 AM
inserting data into an existing file Magius363 Linux - Newbie 2 03-12-2008 07:10 PM
remove directory info from tar file splunk Linux - Software 2 08-22-2007 03:24 PM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM

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

All times are GMT -5. The time now is 02:28 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