bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Scripted Backup overwriting its own tar file


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] Scripted Backup overwriting its own tar file
Date: Tue, 03 Jul 2007 12:21:25 +0300

Serge <address@hidden> ha escrit:

> Executing the command backup, I finally got a successful completion,
> that is RC0 for the backup of the two directories, and of the
> Miscellaneous Files.  But it seems that every successive sub-routine
> overwrites the previous one.  The end result is that my BACKUP_FILE
> only includes the files of the Miscellaneous only.  Should not the Tar
> operation be --append instead of --create ?

No, it should not. What happens is that your tape device is in automatic
rewind mode, so it rewinds back after tar finishes writing the archive
and, consequently, the next write overwrites the previous one.

The solution is: make sure the device is in `no rewind' mode. How to
do that depends on the device itself and on the OS you are using. Often
the same hardware device has two device files associated with it: one
for autorewind mode and another one for `no rewind'. For example:
/dev/st0a and /dev/nst0a, correspondingly.

Regards,
Sergey






reply via email to

[Prev in Thread] Current Thread [Next in Thread]