Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8EA8C475ADD; Sun, 19 Jan 2003 12:38:44 -0500 (EST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by postgresql.org (Postfix) with ESMTP id 5306B474E44; Sun, 19 Jan 2003 12:38:43 -0500 (EST) Received: from mail.otenet.gr (ftp.otenet.gr [195.170.0.21]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h0JHciSa020095; Sun, 19 Jan 2003 19:38:45 +0200 (EET) Received: from confuzio (athei53-c-167.otenet.gr [62.103.238.167]) by mail.otenet.gr (8.12.6/8.12.6) with ESMTP id h0JHcdXq008454; Sun, 19 Jan 2003 19:38:43 +0200 (EET) Content-Type: text/plain; charset="iso-8859-7" From: Alexandros Perdikomatis Organization: UNKNOWN ORGANIZATION To: pgsql-help@postgresql.org, "D'Arcy J.M. Cain" Subject: Re: Database backup Date: Sun, 19 Jan 2003 17:35:38 +0200 User-Agent: KMail/1.4.3 Cc: pgsql-help@postgresql.org, pgsql-interfaces@postgresql.org References: <200301181617.24700.menippos@otenet.gr> <200301182159.00497.darcy@druid.net> In-Reply-To: <200301182159.00497.darcy@druid.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200301191735.38054.menippos@otenet.gr> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/83 X-Sequence-Number: 3583 =D3=F4=E9=F2 =CA=F5=F1 19 =C9=E1=ED 2003 04:59, =EF/=E7 D'Arcy J.M. Cain = =DD=E3=F1=E1=F8=E5: > Redirecting to help list as it seems more appropriate. > > On Saturday 18 January 2003 09:17, Alexandros Perdikomatis wrote: > > Question: Am I too stupid to use tar? > > I'm sure not but you may misunderstand what tar does. Tar is for storing= a > collection of files into an archive. It expects to find the list of files > on the command line in one form or another. If you don't write to a file > first then all you have is a stream of data, not a file. > > > Some time I had no space on the filesystem to copy all the data in > > command mode (pg_dump) so I thought to pipe pg_dump to tar using a scsi > > tape archiver as output (/dev/rmt0). > > Why doesn't work? > > What exactly was the problem? You may just have a device selection issue. > What system is this on? Thanks for the reply. I think I understand what you mean, I just thought that instead of a file= =20 input, we could have a pipe input. It runs on a SuSE linux 6.4 (you may ask why this old version, I updated wh= at=20 was necesary, I like it becouse I have full greek support) and the archiver= =20 is an old conner DDS-2 scsi tape streamer which is known on the operating= =20 system as /dev/st0 by the kernel whith a symbolic link to /dev/rmt0. When I pg_dump on a file, of cource there's no problem. I restore also=20 correctly. But I would like to pipe this procces. For example: if we type the command:= =20 # tar cvf /dev/rmt0 *=20 we're going to have all the files in the tree below to the tape. How can I pipe the output of the pg_dump to it? Thank you one more time for your reply, I just feel that it must be a way w= ith=20 it. I face no problems in my C programs using postgresql, (I like it so muc= h)=20 so I also feel that this problem sould not be in this mailing list becouse= =20 maybe is a system-side question. If this is the case, sorry everybody. (one question: where (which mailing list, book or something) is going to he= lp=20 me installing postgresql to an IBM AiX 4.3 system (RS6000 architecture)?=20 (please) thanks again. Alexandros