Re: using tar

2020-06-16 Thread Teemu Likonen
mick crane [2020-06-15T19:01:32+01] wrote: > I think my memory has packed up. Mine too, and I like GNU's long-option style because I remember them easily. They are also kind of self-documenting code in shell scripts. tar --create --verbose --xz --file archive.tar.xz directory/to_archive

Re: using tar

2020-06-15 Thread Michael Stone
On Mon, Jun 15, 2020 at 07:30:31PM +0100, mick crane wrote: yes I see that now but without hyphen "f" can be anywhere Yes and no: any of the keys can be in any location, but their arguments must follow the key list in the order that the keys appear. For example: tar cbf 20 foo.tar

Re: using tar

2020-06-15 Thread Michael Stone
On Mon, Jun 15, 2020 at 02:34:24PM -0500, David Wright wrote: It appears you've also forgotten about man pages as well as google. The man page explains the difference between hyphenated and unhyphenated forms, and helpfully even gives a single example written in both forms: tar cfv a.tar

Re: using tar

2020-06-15 Thread David Wright
On Mon 15 Jun 2020 at 19:30:31 (+0100), mick crane wrote: > On 2020-06-15 19:17, Thomas Pircher wrote: > > mick crane wrote: > > > I thought you put the options after a hyphen with tar ? > > > > Tar accepts 3 styles of options. The style with a single dash is called > > the 'UNIX' or

Re: using tar

2020-06-15 Thread mick crane
On 2020-06-15 19:17, Thomas Pircher wrote: mick crane wrote: I thought you put the options after a hyphen with tar ? Tar accepts 3 styles of options. The style with a single dash is called the 'UNIX' or 'short-option' style in the man page. "tar -cfvz archive_file.tgz

Re: using tar

2020-06-15 Thread Brian
On Mon 15 Jun 2020 at 19:24:00 +0100, mick crane wrote: > On 2020-06-15 19:07, Brian wrote: > > On Mon 15 Jun 2020 at 19:01:32 +0100, mick crane wrote: > > > > > I think my memory has packed up. > > > > So has your ability to use a search engine. Try > > > > tar options hyphen > > Ok I see

Re: using tar

2020-06-15 Thread Greg Wooledge
On Mon, Jun 15, 2020 at 07:01:32PM +0100, mick crane wrote: > I think my memory has packed up. > I thought you put the options after a hyphen with tar ? > "tar -cfvz archive_file.tgz ./directory_to_archive" > doesn't work. > "tar cfvz archive_file.tgz ./directory_to_archive" > works Your

Re: using tar

2020-06-15 Thread mick crane
On 2020-06-15 19:07, Brian wrote: On Mon 15 Jun 2020 at 19:01:32 +0100, mick crane wrote: I think my memory has packed up. So has your ability to use a search engine. Try tar options hyphen Ok I see what the confusion was "f" has to be the last of the options if using hyphen mick --

Re: using tar

2020-06-15 Thread Thomas Pircher
mick crane wrote: > I thought you put the options after a hyphen with tar ? Tar accepts 3 styles of options. The style with a single dash is called the 'UNIX' or 'short-option' style in the man page. > "tar -cfvz archive_file.tgz ./directory_to_archive" > doesn't work. The `-f` option requires

Re: using tar

2020-06-15 Thread Tom Browder
On Mon, Jun 15, 2020 at 13:02 mick crane wrote: > I think my memory has packed up. > I thought you put the options after a hyphen with tar ? > "tar -cfvz archive_file.tgz ./directory_to_archive" You do for modern use, but the 'f' has to be the last arg in that incantation. -Tom

Re: using tar

2020-06-15 Thread Brian
On Mon 15 Jun 2020 at 19:01:32 +0100, mick crane wrote: > I think my memory has packed up. So has your ability to use a search engine. Try tar options hyphen -- Brian.

using tar

2020-06-15 Thread mick crane
I think my memory has packed up. I thought you put the options after a hyphen with tar ? "tar -cfvz archive_file.tgz ./directory_to_archive" doesn't work. "tar cfvz archive_file.tgz ./directory_to_archive" works mick -- Key ID4BFEBB31

Re: Using tar and gpg from Konqueror

2011-04-23 Thread Ken Heard
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Camaleón wrote: On Sat, 02 Apr 2011 12:38:05 +0700, Ken Heard wrote: While experimenting with tar and gpg files I discovered that right clicking on a file or directory name in Konqueror with gnugp installed behaves differently depending on its

Re: Using tar and gpg from Konqueror

2011-04-03 Thread Camaleón
On Sat, 02 Apr 2011 12:38:05 +0700, Ken Heard wrote: While experimenting with tar and gpg files I discovered that right clicking on a file or directory name in Konqueror with gnugp installed behaves differently depending on its location. If the file or directory is located on an ext3 or xfs

Re: Using tar and gpg from Konqueror

2011-04-03 Thread Ken Heard
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Camaleón wrote: On Sat, 02 Apr 2011 12:38:05 +0700, Ken Heard wrote: While experimenting with tar and gpg files I discovered that right clicking on a file or directory name in Konqueror with gnugp installed behaves differently depending on its

Using tar and gpg from Konqueror

2011-04-02 Thread Ken Heard
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 While experimenting with tar and gpg files I discovered that right clicking on a file or directory name in Konqueror with gnugp installed behaves differently depending on its location. If the file or directory is located on an ext3 or xfs hard

Using tar and gpg from Konqueror

2011-04-01 Thread Ken Heard
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 While experimenting with tar and gpg files I discovered that right clicking on a file or directory name in Konqueror with gnugp installed behaves differently depending on its location. If the file or directory is located on an ext3 or xfs hard

Using tar to extract files from tape

2006-07-13 Thread Haines Brown
I asked this question before, but received no answer. Sorry to post it again. The question is a simple one: can I use tar to extract a file from a tape backup made with a backup application? On a sarge machine, I have a WangDAT 3100 tape drive from the late 1990s. The tape from which I would

Re: Using tar to extract files from tape

2006-07-13 Thread Alec Berryman
Haines Brown on 2006-07-13 09:48:02 -0400: I tried: # tar xvf /dev/st0 *.xyz tar: /dev/st0: Cannot read: Input/output error tar: At beginning of tape, quitting now tar: Error is not recoverable: exiting now When I tried the tvf options for tar, I get the same result.

Re: Using tar to extract files from tape

2006-07-13 Thread Justin Piszcz
On Thu, 13 Jul 2006, Alec Berryman wrote: Haines Brown on 2006-07-13 09:48:02 -0400: I tried: # tar xvf /dev/st0 *.xyz tar: /dev/st0: Cannot read: Input/output error tar: At beginning of tape, quitting now tar: Error is not recoverable: exiting now When I tried the tvf

Re: Using tar to extract files from tape

2006-07-13 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Haines Brown wrote: I asked this question before, but received no answer. Sorry to post it again. The question is a simple one: can I use tar to extract a file from a tape backup made with a backup application? Depends on the format. Tape

Re: Using tar to extract files from tape

2006-07-13 Thread Rob Hensley
On Thu, 13 Jul 2006, Ron Johnson wrote: gpgkeys: HTTP fetch error 7: couldn't connect: eof Haines Brown wrote: I asked this question before, but received no answer. Sorry to post it again. The question is a simple one: can I use tar to extract a file from a tape backup made with a

moving fs to new disk using tar

2003-02-10 Thread Richard Hector
Hi all, I thought I was being very careful, but this didn't work like I'd hoped. Basically I want to move my /usr fs from one disk to another - the first will eventually be repartitioned, to use LVM and ReiserFS. Other filesystems will follow. So I used this command from / (in single user mode

Re: moving fs to new disk using tar

2003-02-10 Thread sean finney
heya, On Tue, Feb 11, 2003 at 05:11:08PM +1300, Richard Hector wrote: tar -c --atime-preserve -l usr |tar -C /spareide -x -v --atime-preserve --preserve --same-owner may i suggest a less confusing alternative: rsync -a usr/ /spareide it does for most intents and purposes the same thing.

Re: moving fs to new disk using tar

2003-02-10 Thread Richard Hector
On Tue, Feb 11, 2003 at 12:48:34AM -0500, sean finney wrote: heya, On Tue, Feb 11, 2003 at 05:11:08PM +1300, Richard Hector wrote: tar -c --atime-preserve -l usr |tar -C /spareide -x -v --atime-preserve --preserve --same-owner may i suggest a less confusing alternative: rsync -a

Re: backups using tar - /dev/ht0

2001-08-11 Thread Alvin Oga
hi ya bob... mt is complaining so you do NOT have /dev/ht0 as a device until mt worksand you can hear the tape rewind and/or eject... its NOT working yet... manually creaate a device called /dev/ht0 with mknod... and give it the type, and major and minor id if the device is made

Re: backups using tar - /dev/ht0

2001-08-11 Thread Bob Koss
Alvin == Alvin Oga [EMAIL PROTECTED] writes: Alvin so you do NOT have /dev/ht0 as a device Alvin manually creaate a device called /dev/ht0 with mknod... Alvin and give it the type, and major and minor id Alvin if the device is made properly... it should be like Alvin

Re: backups using tar - /dev/ht0

2001-08-11 Thread Bob Koss
Alvin == Alvin Oga [EMAIL PROTECTED] writes: Alvin if the device is made properly... it should be like Alvin crw-rw 1 root disk 37, 0 May 5 1998 /dev/ht0 Alvin until ls -la /dev/ht0 looks liek the above line... there Alvin is no point to doing any mt/tar commands.. Okay,

Re: backups using tar - /dev/ht0

2001-08-11 Thread Alvin Oga
hi ya bob ...beg/borrow/steal a (real) dds1, dds2, dds3 ide tape drive... - hp series, exabyte series, etc and try to read/write to that drive c ya alvin On 11 Aug 2001, Bob Koss wrote: Alvin == Alvin Oga [EMAIL PROTECTED] writes: Alvin if the device is made properly... it

backups using tar

2001-08-10 Thread Bob Koss
When this box was running RH, I would backup using my Onstream tape drive thusly: tar cvbf 64 /dev/ht0 /stuff /moreStuff With my recent Debian install, this no longer works, giving me a device full error. But, with the 2.2.19 kernel included with Debian, the Onstream driver is included in

Re: backups using tar

2001-08-10 Thread Michael Heldebrant
On 10 Aug 2001 16:39:29 -0400, Bob Koss wrote: When this box was running RH, I would backup using my Onstream tape drive thusly: tar cvbf 64 /dev/ht0 /stuff /moreStuff With my recent Debian install, this no longer works, giving me a device full error. But, with the 2.2.19 kernel

Re: backups using tar

2001-08-10 Thread Bob Koss
Michael == Michael Heldebrant [EMAIL PROTECTED] writes: Michael You may need to install the ide-tape module if it's not Michael in the kernel you are running already. [EMAIL PROTECTED]:/var/log$ grep OnStream dmesg hdc: OnStream DI-30, ATAPI TAPE drive [EMAIL PROTECTED]:/var/log$

Re: backups using tar

2001-08-10 Thread Alvin Oga
hi ya bob if the device is full... you have too much data - remove all the junk files... - core, /tmp, /var/log/ files you dont want - use 2 tapes instead for the various stuff - compress it instead tar zcvbf 64 /dev/ht0 /stuff /moreStuff - note the z

Re: backups using tar

2001-08-10 Thread Alvin Oga
hi ya bob you need to remove the file called /dev/ht0 that was created by the tar command when trying to write to tape that did not work... you need to create a tape decice called /dev/ht0 and/or ln -s /dev/hdc /dev/ht0 ( donno if it would work ) MAKEDEV /dev/ht0 should work now do

Re: backups using tar

2001-08-10 Thread Bob Koss
Alvin == Alvin Oga [EMAIL PROTECTED] writes: Alvin if the device is full... you have too much data The device isn't full. When I issued the tar command, it worked for a few seconds and then gave me the error message. Nothing went to tape. -- Robert Koss, Ph.D. | Training,

Re: backups using tar

2001-08-10 Thread Bob Koss
Alvin == Alvin Oga [EMAIL PROTECTED] writes: Alvin you need to remove the file called /dev/ht0 that was Alvin created by the tar command when trying to write to tape Alvin that did not work... Alvin you need to create a tape decice called /dev/ht0 and/or ln Alvin -s /dev/hdc

Re: backups using tar

2001-08-10 Thread Alvin Oga
hi ya bob you created a file called /dev/ht0 that filled up the available space in / causes device full to tar c ya alvin On 10 Aug 2001, Bob Koss wrote: Alvin == Alvin Oga [EMAIL PROTECTED] writes: Alvin if the device is full... you have too much data The device

Re: backups using tar - /dev/ht0

2001-08-10 Thread Alvin Oga
Alvin you need to create a tape decice called /dev/ht0 and/or ln Alvin -s /dev/hdc /dev/ht0 ( donno if it would work ) AlvinMAKEDEV /dev/ht0 should work MAKDEV: don't know hot to make device /dev/ht0 Now I seem to be screwed. did you try: cd /dev

Re: backups using tar

2001-08-10 Thread Bob Koss
Alvin == Alvin Oga [EMAIL PROTECTED] writes: Alvin hi ya bob Alvin you created a file called /dev/ht0 that filled up the Alvin available space in / causes device full to tar /dev/ht0 was supposed to go to my tape drive. Why didn't it??? -- Robert Koss, Ph.D. |

Re: backups using tar - /dev/ht0

2001-08-10 Thread Bob Koss
Alvin == Alvin Oga [EMAIL PROTECTED] writes: Alvin did you try: cd /dev ./MAKEDEV ht0 That's exactly what I did. Alvin = should work, if not... Alvin more info Alvin http://www-wsg.cso.uiuc.edu/resources/unixguide/devices.html Alvin you do it the hard way #

Re: Using tar saving Disk-space [was: apt-get offline]

2001-06-07 Thread Joerg Johannes
Thank you, this is exactly what I was looking for. Except the line tar -u $foo -f packages.tar has to be changed into tar uf packages.tar The script I was referring to is the one created by apt-get -qq -print-uris etc. I would have to add the above line to every downloaded package. I think

Using tar saving Disk-space [was: apt-get offline]

2001-05-30 Thread Joerg Johannes
Hi list Now that I can transfer my downloaded .debs in a .tar file, I wonder if I could create this .tar file saving disk space, e.g. in the following way pseudo-code create a tar file (touch packages.tar?) for *.deb in this directory 1.) add it to the tar file 2.) rm this .deb end

Re: Using tar saving Disk-space [was: apt-get offline]

2001-05-30 Thread Bart Martens
You can compress all .deb files into one zipped tar file with only one command. See the manual page of tar. You don't need to write code with a for-loop. I think it's tar czf packages.tar.gz debdir with debdir the directory containing all your .deb files, and packages.tar.gz the target zipped

Re: csh [was: Using tar saving Disk-space]

2001-05-30 Thread Andrew Suffield
On Wed, May 30, 2001 at 10:36:13AM +0200, Joerg Johannes wrote: How would this look for the csh? I'm going to assume you're just plain unaware of this: csh programming Considered Harmful Somebody can probably provide a link to a copy of the essay. csh scripts are a majorly Bad Idea[tm]. It has

Re: csh [was: Using tar saving Disk-space]

2001-05-30 Thread Joerg Johannes
Andrew Suffield wrote: On Wed, May 30, 2001 at 10:36:13AM +0200, Joerg Johannes wrote: How would this look for the csh? I'm going to assume you're just plain unaware of this: csh programming Considered Harmful Somebody can probably provide a link to a copy of the essay. csh scripts

Re: Using tar saving Disk-space [was: apt-get offline]

2001-05-30 Thread Joerg Johannes
Well, I know how to use tar in general. Zipping the .debs is not necessary because they are already zipped. What I meant is: The .tar file takes the same amount of space as the .debs themselves. So after having tarred them , I need twice the space as before. So I want to delete each .deb after

Re: csh [was: Using tar saving Disk-space]

2001-05-30 Thread Roy Culley
Andrew Suffield wrote: On Wed, May 30, 2001 at 10:36:13AM +0200, Joerg Johannes wrote: How would this look for the csh? I'm going to assume you're just plain unaware of this: csh programming Considered Harmful Somebody can probably provide a link to a copy of the essay. csh

Re: Using tar saving Disk-space [was: apt-get offline]

2001-05-30 Thread Matthew Gibbins
And yo was Joerg Johannes heard to yodel: Well, I know how to use tar in general. Zipping the .debs is not necessary because they are already zipped. What I meant is: The .tar file takes the same amount of space as the .debs themselves. So after having tarred them , I need twice the space as

Re: Using tar saving Disk-space [was: apt-get offline]

2001-05-30 Thread David Z. Maze
Joerg Johannes [EMAIL PROTECTED] writes: JJ Now that I can transfer my downloaded .debs in a .tar file, I wonder if JJ I could create this .tar file saving disk space, e.g. in the following JJ way JJ JJ pseudo-code JJ create a tar file (touch packages.tar?) JJ for *.deb in this directory JJ

Re: csh [was: Using tar saving Disk-space]

2001-05-30 Thread Dave Carrigan
Joerg Johannes [EMAIL PROTECTED] writes: The problem is: this box is not my own, in fact, it is not even a debian one (Sun Solaris) and, the worst of all: It only runs csh because the admin does not like bash (I hate csh, too) Solaris boxes have ksh, which is a pretty solid shell. I like

Re: Using tar saving Disk-space [was: apt-get offline]

2001-05-30 Thread John Galt
On Wed, 30 May 2001, Joerg Johannes wrote: Hi list Now that I can transfer my downloaded .debs in a .tar file, I wonder if I could create this .tar file saving disk space, e.g. in the following way pseudo-code create a tar file (touch packages.tar?) unnecessary, and in fact will break the

Re: split archives using tar

2000-01-05 Thread Michael W. Shaffer
You would need to handle this using the -prune option to find. I just wrote a script to do something like what you are talking about, and I *think* that it looks like this: cd /home/howard find . -path .netscape/cache/* -prune -path vmware/* -prune -o -print \ | cpio -ovH crc

Re: split archives using tar

2000-01-04 Thread pseelig
On Tue, 4 Jan 2000, John Davis wrote: I have a zip disk which I would like to use for archive in Linux. Can I run tar so that it will take a 500 Meg archive and split it into 5 100 Meg tar files? If so, how do I do this? Have you already tried man tar? To write a tar archive over multiple

Re: split archives using tar

2000-01-04 Thread Michael W. Shaffer
This is not exactly what you were asking for, but you might try something like: tar -cvMf /dev/sdz directories_to_archive where /dev/sdz is replaced by the device for your Zip drive. The 'M' option should (according to the man page) cause tar to prompt you for the next disk when it runs out of

Re: split archives using tar

2000-01-04 Thread Howard Mann
Michael W. Shaffer wrote: I highly recommend using cpio in preference to tar if the archives are for your own use and not public distribution to unknown platforms. The command to use cpio would be: find directories_to_archive | cpio -ovH crc /dev/sdz Cpio will automatically span