LINUX.ORG.RU
решено ФорумAdmin

[tar] как слить --multi-volume архив в один архив

 


0

1

сабж, при том, в архив был заархивирован дважды

т.е

сначало был создан файл all.tar.bz2, затем была выполнена сия команда:

tar -L 570000 –Mcvf all.tar.bz2.tar all.tar.bz2

причом, каждый раз файл all.tar.bz2 «В ручную !!» записывалсо на болванку, т.е у меня есть 3 файла all.tar.bz2

когда я пытаюсь собрать разобрать обратно:

tar -C ../../newroot/ -Mxvf all.tar.bz2.tar

то получаю приглошение:

Prepare volume #2 for `all.tar.bz2.tar' and hit return:

собственно в каком формате вводить путь? (в нем есть русские буквы)

попробовал сделать трюк, и через mount --bind пытался подсунуть вторую часть архива, но не получается, все равно



Последнее исправление: Windos7 (всего исправлений: 2)

cat 1.tar 2.tar 3.tar > 123.tar

zolden ★★★★★
()
Ответ на: комментарий от Windos7

`--multi-volume' `-M' Informs `tar' that it should create or otherwise operate on a multi-volume `tar' archive. *Note Using Multiple Tapes::.

этого недостаточно?

anonymous
()

вопрос снят, оказывается после n, в случае пробелов не надо ставить символ '\'

Windos7
() автор топика
Ответ на: комментарий от Windos7

а этого:

9.6.3 Concatenate Volumes into a Single Archive -----------------------------------------------

Sometimes it is necessary to convert existing GNU `tar' multi-volume archive to a single `tar' archive. Simply concatenating all volumes into one will not work, since each volume carries an additional information at the beginning. GNU `tar' is shipped with the shell script `tarcat' designed for this purpose.

The script takes a list of files comprising a multi-volume archive and creates the resulting archive at the standard output. For example:

tarcat vol.1 vol.2 vol.3 | tar tf -

The script implements a simple heuristics to determine the format of the first volume file and to decide how to process the rest of the files. However, it makes no attempt to verify whether the files are given in order or even if they are valid `tar' archives. It uses `dd' and does not filter its standard error, so you will usually see lots of spurious messages.

drBatty ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.