NetBSD-Users archive

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

Re: pax and multiple volumes



Sad Clouds wrote:
> When archiving files with pax, it seems to stop after writing 2GB of
> data, after that in prompts for a name to be given to the next volume.
> 
> I need to archive about 24GB of data, and I don't want to type a
> volume name after every 2GB. Is there any way to automate this
> process?

Looking at the pax source code (first time for me) tty_read() calls
fgets(3).  Ergo, pax reads the archive name from standard input.  So,
something like this might do the trick:

        $ jot -w 'filename.%d.pax' 13 | pax ...

Season to taste.  HTH.  

--jkl


Home | Main Index | Thread Index | Old Index