Re: dumb question about tar

2008-07-19 Thread James Youngman
On Thu, Jul 17, 2008 at 7:16 PM, David Denney <[EMAIL PROTECTED]> wrote: > Hello all, > When you tar a file (i.e. a backup) to a destination disk, does tar build > the file on the destination disk, or does it create it in a tmp file, > memory, etc then move it to the final destination? I have to t

Re: dumb question about tar

2008-07-17 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/17/08 13:16, David Denney wrote: > Hello all, > When you tar a file (i.e. a backup) to a destination disk, does tar build > the file on the destination disk, or does it create it in a tmp file, > memory, etc then move it to the final destination?

dumb question about tar

2008-07-17 Thread David Denney
Hello all, When you tar a file (i.e. a backup) to a destination disk, does tar build the file on the destination disk, or does it create it in a tmp file, memory, etc then move it to the final destination? I have to think it builds it in the destination location, but want to make sure. Thanks Da

Re: about tar backup

2007-12-04 Thread Ansgar Esztermann
On Tue, Dec 04, 2007 at 03:08:13AM -0800, Nevruz Mesut Sahin wrote: > tear friends I want to get all my directories backup by tar > > my directories : /www/abc/domains/ > > /www/abc/domains/there_so_many_files > > so I want to get all backup under /www then I tried > > tar cvf /www/

Re: about tar backup

2007-12-04 Thread Jochen Schulz
Nevruz Mesut Sahin: > > so I want to get all backup under /www then I tried > > tar cvf /www/ (but does not work gives error) > tar: Cowardly refusing to create an empty archive > Try `tar --help' or `tar --usage' for more information. The 'f' option has to be followed directly by the na

Re: about tar backup

2007-12-04 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/04/07 05:08, Nevruz Mesut Sahin wrote: > tear friends I want to get all my directories backup by tar > > my directories : /www/abc/domains/ > > /www/abc/domains/there_so_many_files > > so I want to get all backup under /www then I tried >

about tar backup

2007-12-04 Thread Nevruz Mesut Sahin
tear friends I want to get all my directories backup by tar my directories : /www/abc/domains/ /www/abc/domains/there_so_many_files so I want to get all backup under /www then I tried tar cvf /www/ (but does not work gives error) tar: Cowardly refusing to create an empty archive Try

Re: A silly question about tar

2007-03-20 Thread Douglas Allan Tutty
On Tue, Mar 20, 2007 at 12:45:51PM +, Tyler Smith wrote: > On 2007-03-17, Tyler Smith <[EMAIL PROTECTED]> wrote: > > On 2007-03-17, Douglas Allan Tutty <[EMAIL PROTECTED]> wrote: > >> > >> Within that directory I issued: > >> > >>$ls -1 | xargs -L 1 tar -xf > >> > >> and ended up with a tes

Re: A silly question about tar

2007-03-20 Thread Tyler Smith
On 2007-03-17, Tyler Smith <[EMAIL PROTECTED]> wrote: > On 2007-03-17, Douglas Allan Tutty <[EMAIL PROTECTED]> wrote: >> >> Within that directory I issued: >> >> $ls -1 | xargs -L 1 tar -xf >> >> and ended up with a test subdirectory containing all nine files. >> > > The argument to ls,

Re: A silly question about tar [solved]

2007-03-19 Thread Greg Folkert
On Mon, 2007-03-19 at 03:36 -0500, Adam Porter wrote: > So it looks like the ultimate solution is Greg Folkert's suggestion to > install the package "unp", which handles multiple archives and > automatically chooses the right extractor. Cameron Hutchison's shell > function is also handy, but unp

Re: A silly question about tar

2007-03-19 Thread Vincent Lefevre
On 2007-03-17 18:49:59 +0100, Joe Hart wrote: > unp, orange. Right. Never heard of either of them. I have now. unp doesn't do proper character escaping, though. So, never do things like "unp *.tar.bz2" on files that come from an external source, as I fear that this may execute arbitrary code on

Re: A silly question about tar [solved]

2007-03-19 Thread Adam Porter
So it looks like the ultimate solution is Greg Folkert's suggestion to install the package "unp", which handles multiple archives and automatically chooses the right extractor. Cameron Hutchison's shell function is also handy, but unp probably makes that unnecessary if you can install packages on

Re: A silly question about tar

2007-03-18 Thread Chanan Berler
ED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/A-silly-question-about-tar-tf3418581.html#a9537723 Sent from the Debian User mailing list archive at Nabble.com. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: A silly question about tar

2007-03-17 Thread Tyler Smith
On 2007-03-17, Douglas Allan Tutty <[EMAIL PROTECTED]> wrote: > > Within that directory I issued: > > $ls -1 | xargs -L 1 tar -xf > > and ended up with a test subdirectory containing all nine files. > Ok, I tried that out. The key seems to be the arguments to xarg, either "-L 1" as you sugge

Re: A silly question about tar

2007-03-17 Thread Douglas Allan Tutty
On Sat, Mar 17, 2007 at 01:23:02PM +, Tyler Smith wrote: > On 2007-03-17, Douglas Allan Tutty <[EMAIL PROTECTED]> wrote: > > > I have, and unfortunately it doesn't work. The result is the same as > the original problem with the regular * expansion: > > tyler:tar-> find ./ -name '*.tar.gz' |

Re: A silly question about tar

2007-03-17 Thread Tyler Smith
On 2007-03-17, Andrei Popescu <[EMAIL PROTECTED]> wrote: > Tyler Smith <[EMAIL PROTECTED]> wrote: >> >> I have, and unfortunately it doesn't work. The result is the same as >> the original problem with the regular * expansion: >> >> tyler:tar-> find ./ -name '*.tar.gz' | xargs echo >> ../one.tar.

Re: A silly question about tar

2007-03-17 Thread Joe Hart
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greg Folkert wrote: > On Sat, 2007-03-17 at 14:34 +0100, Joe Hart wrote: [snip] (script can be found in the previous message) >> Another handy little script. I just love this list. It's a lot easier >> to type x *.zip or x *.rar than it is to right

Re: A silly question about tar

2007-03-17 Thread cga2000
On Thu, Mar 15, 2007 at 02:59:01AM EST, Adam Porter wrote: > I've read the man page, googled this list and the rest of the Net, but I > still can't figure out why this doesn't work: > > $ tar xjf *.tar.bz2 > tar: beryl-core-0.2.0.tar.bz2: Not found in archive > tar: beryl-manager-0.2.0.tar.bz2: No

Re: A silly question about tar

2007-03-17 Thread Greg Folkert
On Sat, 2007-03-17 at 14:34 +0100, Joe Hart wrote: > Cameron Hutchison wrote: > [snip] > > > > > I have the following shell function defined in my .bashrc which I use to > > extract the various archives I come across. It handles multiple archives > > on the command line. Usage is simple: > > > >

Re: A silly question about tar

2007-03-17 Thread Andrei Popescu
Tyler Smith <[EMAIL PROTECTED]> wrote: > On 2007-03-17, Douglas Allan Tutty <[EMAIL PROTECTED]> wrote: > > > > You use find to spit out a list of the files you want (you _may_ be > > able to just use ls -1 .tar), pipe that through xargs. Something > > like this: > > > > ls -1 .tar.gz | xargs

Re: A silly question about tar

2007-03-17 Thread Andrei Popescu
Douglas Allan Tutty <[EMAIL PROTECTED]> wrote: > On Sat, Mar 17, 2007 at 02:35:01PM +0100, Thomas Jollans wrote: > > On Saturday 17 March 2007 13:58, Douglas Allan Tutty wrote: > > > On Sat, Mar 17, 2007 at 05:00:21AM -0500, Adam Porter wrote: > > > > > You use find to spit out a list of the file

Re: A silly question about tar

2007-03-17 Thread Thomas Jollans
On Saturday 17 March 2007 14:45, Douglas Allan Tutty wrote: > On Sat, Mar 17, 2007 at 02:35:01PM +0100, Thomas Jollans wrote: > > On Saturday 17 March 2007 13:58, Douglas Allan Tutty wrote: > > > On Sat, Mar 17, 2007 at 05:00:21AM -0500, Adam Porter wrote: > > > > > > You use find to spit out a lis

Re: A silly question about tar

2007-03-17 Thread Tyler Smith
On 2007-03-17, Douglas Allan Tutty <[EMAIL PROTECTED]> wrote: > > You use find to spit out a list of the files you want (you _may_ be able > to just use ls -1 .tar), pipe that through xargs. Something like this: > > ls -1 .tar.gz | xargs tar [tar options -f ] > > for each line of input it re

Re: A silly question about tar

2007-03-17 Thread Douglas Allan Tutty
On Sat, Mar 17, 2007 at 02:35:01PM +0100, Thomas Jollans wrote: > On Saturday 17 March 2007 13:58, Douglas Allan Tutty wrote: > > On Sat, Mar 17, 2007 at 05:00:21AM -0500, Adam Porter wrote: > > > You use find to spit out a list of the files you want (you _may_ be able > > to just use ls -1 .tar),

Re: A silly question about tar

2007-03-17 Thread Thomas Jollans
On Saturday 17 March 2007 13:58, Douglas Allan Tutty wrote: > On Sat, Mar 17, 2007 at 05:00:21AM -0500, Adam Porter wrote: > > Thanks for your replies, everyone. It seems to me that there might be a > > market for a simple script frontend to tar that would handle > > shell-expanded wildcards; perh

Re: A silly question about tar

2007-03-17 Thread Joe Hart
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cameron Hutchison wrote: [snip] > > I have the following shell function defined in my .bashrc which I use to > extract the various archives I come across. It handles multiple archives > on the command line. Usage is simple: > > $ x *.tar.gz > > x (

Re: A silly question about tar

2007-03-17 Thread Douglas Allan Tutty
On Sat, Mar 17, 2007 at 05:00:21AM -0500, Adam Porter wrote: > Thanks for your replies, everyone. It seems to me that there might be a > market for a simple script frontend to tar that would handle shell-expanded > wildcards; perhaps it could be included in Debian's package of tar. Would > that b

Re: A silly question about tar

2007-03-17 Thread Cameron Hutchison
Adam Porter wrote: >Thanks for your replies, everyone. It seems to me that there might be a >market for a simple script frontend to tar that would handle shell-expanded >wildcards; perhaps it could be included in Debian's package of tar. Would >that be a good idea? Does anything like that alrea

Re: A silly question about tar

2007-03-17 Thread Adam Porter
Thanks for your replies, everyone. It seems to me that there might be a market for a simple script frontend to tar that would handle shell-expanded wildcards; perhaps it could be included in Debian's package of tar. Would that be a good idea? Does anything like that already exist? -- To UNSUB

A silly question about tar

2007-03-17 Thread Adam Porter
I've read the man page, googled this list and the rest of the Net, but I still can't figure out why this doesn't work: $ tar xjf *.tar.bz2 tar: beryl-core-0.2.0.tar.bz2: Not found in archive tar: beryl-manager-0.2.0.tar.bz2: Not found in archive tar: beryl-plugins-0.2.0.tar.bz2: Not found in archi

Re: A silly question about tar

2007-03-15 Thread Celejar
On Thu, 15 Mar 2007 09:24:17 +0100 Florian Kulzer <[EMAIL PROTECTED]> wrote: [snip] > The wildcard (glob pattern) will be expanded to all the *.tar.bz2 > filenames in one line, separated by spaces. This is fed as the argument > to tar. It looks like the "extract" action interprets the first filen

Re: A silly question about tar

2007-03-15 Thread Florian Kulzer
On Thu, Mar 15, 2007 at 02:59:01 -0500, Adam Porter wrote: > I've read the man page, googled this list and the rest of the Net, but I > still can't figure out why this doesn't work: > > $ tar xjf *.tar.bz2 > tar: beryl-core-0.2.0.tar.bz2: Not found in archive > tar: beryl-manager-0.2.0.tar.bz2: No

Re: A silly question about tar

2007-03-15 Thread Kevin Mark
On Thu, Mar 15, 2007 at 02:59:01AM -0500, Adam Porter wrote: > I've read the man page, googled this list and the rest of the Net, but I > still can't figure out why this doesn't work: > > $ tar xjf *.tar.bz2 > tar: beryl-core-0.2.0.tar.bz2: Not found in archive > tar: beryl-manager-0.2.0.tar.bz2:

A silly question about tar

2007-03-14 Thread Adam Porter
I've read the man page, googled this list and the rest of the Net, but I still can't figure out why this doesn't work: $ tar xjf *.tar.bz2 tar: beryl-core-0.2.0.tar.bz2: Not found in archive tar: beryl-manager-0.2.0.tar.bz2: Not found in archive tar: beryl-plugins-0.2.0.tar.bz2: Not found in archi

Re: about tar works O.T.

2006-02-14 Thread Shawn Lamson
On Mon, 13 Feb 2006 12:46:36 -0600 David Berg <[EMAIL PROTECTED]> wrote: > This might not be related to your problem but I don't see any mention > of using -v twice in the man page. look in the examples section right at the top :) it increases verbosity. [EMAIL PROTECTED]:/tmp$ tar cvvf archiv

Re: about tar works

2006-02-13 Thread David Berg
On 2/13/06, Nevruz Mesut Sahin <[EMAIL PROTECTED]> wrote: > I wrote comand below to terminal > > tar -cvvf /disk1/data/xyz.tar /disk1/data/folders > > it works but created file (xyz.tar) is hidden. when I This might not be related to your problem but I don't see any mention of using -v twice in t

Re: about tar works

2006-02-13 Thread Mike McCarty
Nevruz Mesut Sahin wrote: I wrote comand below tar -cvvf /disk1/data/xyz.tar /disk1/data/folders Interesting. I wonder whether it tried to tar that file inside itself. Might lead to weirdness, like a completely full disc. What does $ df show? it works but created file (xyz.tar) is hidd

Re: about tar works

2006-02-13 Thread Jon Dowland
On Mon, Feb 13, 2006 at 07:31:47AM -0800, Nevruz Mesut Sahin wrote: > it works but created file (xyz.tar) is hidden. when I > use find /disk1/data -name xyz.tar system finds it. if > I write ls /disk1/data/xyz.tar system writes > /disk1/data/xyz.tar > it written is red What does $ file /disk1/d

about tar works

2006-02-13 Thread Nevruz Mesut Sahin
I wrote comand below to terminal tar -cvvf /disk1/data/xyz.tar /disk1/data/folders it works but created file (xyz.tar) is hidden. when I use find /disk1/data -name xyz.tar system finds it. if I write ls /disk1/data/xyz.tar system writes /disk1/data/xyz.tar it written is red also and if I conne

about tar works

2006-02-13 Thread Nevruz Mesut Sahin
I wrote comand below tar -cvvf /disk1/data/xyz.tar /disk1/data/folders it works but created file (xyz.tar) is hidden. when I use find /disk1/data -name xyz.tar system finds it but the written is red also I can!t copy it to another place. thanks __

Re: about tar

2006-02-13 Thread Olafur Jens Sigurdsson
Þann 2006-02-13, 05:41:18 (-0800) skrifaði Nevruz Mesut Sahin: > > > Dear Friends I wrote tar -czvf > /disk1/data/folders/disk1/data/xyz but gives error > below: The destination for the archive should be the first argument to tar from the man page: tar -cvvf foo.tar foo/

about tar

2006-02-13 Thread Nevruz Mesut Sahin
Dear Friends I wrote tar -czvf /disk1/data/folders/disk1/data/xyz but gives error below: tar (child): /disk1/data/folders : cannot open :is a directory tar (child): Error is not recoverable: exiting now tar : Child status return 2 tar : Error exit delayed from previous errors