LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   tar file without remove existing data (https://www.linuxquestions.org/questions/linux-software-2/tar-file-without-remove-existing-data-733746/)

ust 06-17-2009 08:14 PM

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

billymayday 06-17-2009 08:20 PM

Try the -A or -r options. See man tar

ellappan 06-17-2009 08:50 PM

Quote:

Originally Posted by ust (Post 3577746)
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>

ust 06-18-2009 12:26 AM

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


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