Re: interface for tar
I'm not sure what you're saying here. It seems more appropriate to use a database instead of files in this case. On Wednesday 20 August 2008 15:05, Ron Johnson wrote: Databases aren't filesystems, and they shouldn't be treated as such. Especially if the text BLOBs need to be analyzed, summarized, etc. On 08/20/08 06:34, Shachar Or wrote: After solving the problem in the immediate consider telling the developer of that simulation software to use a database! On Wednesday 20 August 2008 03:40, Mag Gam wrote: At my university we run fluid dynamic simulations. These simulations create many small files (30,000) per hour. Their size is very small (20k to 200k). Instead of having this on the filesystem since it take up inode space, I would like to tar them per day into one tar file. I would then like an interface similar to zsh/ksh to cd tar.file and use it as a typeical shell. Do tools like that exist? That would be very benefical for us and our system admin does not have to yell at us. Any thoughts or ideas? -- Ron Johnson, Jr. Jefferson LA USA Do not bite at the bait of pleasure till you know there is no hook beneath it. -- Thomas Jefferson -- Shachar Or | שחר אור http://ox.freeallweb.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: interface for tar
On Wed, Aug 20, 2008 at 02:34:59PM +0300, Shachar Or wrote: After solving the problem in the immediate consider telling the developer of that simulation software to use a database! Err... I guess you meant: tell the developer of the application to use a zip archive, as it allows random access to files in it. -- Tzafrir Cohen | [EMAIL PROTECTED] | VIM is http://tzafrir.org.il || a Mutt's [EMAIL PROTECTED] || best ICQ# 16849754 || friend -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: interface for tar
I've been a DBA for 10 (11?) years, but I know that they aren't good for everything. 30,000file/hr * 6 hrs/day * 6 days = 1.08*10^6 files. *Many* more, if the simulations run for weeks. Hierarchical structures are much better at storing such data than RDBMSs. (I don't know how MySQL stores them, but PostgreSQL puts them all in one directory.) Maybe if you port IMS to Linux... http://en.wikipedia.org/wiki/Information_Management_System On 08/20/08 07:12, Shachar Or wrote: I'm not sure what you're saying here. It seems more appropriate to use a database instead of files in this case. On Wednesday 20 August 2008 15:05, Ron Johnson wrote: Databases aren't filesystems, and they shouldn't be treated as such. Especially if the text BLOBs need to be analyzed, summarized, etc. On 08/20/08 06:34, Shachar Or wrote: After solving the problem in the immediate consider telling the developer of that simulation software to use a database! On Wednesday 20 August 2008 03:40, Mag Gam wrote: At my university we run fluid dynamic simulations. These simulations create many small files (30,000) per hour. Their size is very small (20k to 200k). Instead of having this on the filesystem since it take up inode space, I would like to tar them per day into one tar file. I would then like an interface similar to zsh/ksh to cd tar.file and use it as a typeical shell. Do tools like that exist? That would be very benefical for us and our system admin does not have to yell at us. Any thoughts or ideas? -- Ron Johnson, Jr. Jefferson LA USA Do not bite at the bait of pleasure till you know there is no hook beneath it. -- Thomas Jefferson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: interface for tar
Le Wednesday 20 August 2008 vers 02:40, Mag Gam(Mag Gam [EMAIL PROTECTED]) a écrit: Hello, I would like to tar them per day into one tar file. I would then like an interface similar to zsh/ksh to cd tar.file and use it as a typeical shell. Try fuse[1]. It has a driver for tar(ArchiveFileSystems) files[2]. 1: http://fuse.sourceforge.net/ 2: http://fuse.sourceforge.net/wiki/index.php/FileSystems -- http://www.glennie.fr The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: interface for tar
Thank you all. I am very interested in the fuse AND the fs image solution. Is it possible to integrate that into auto mounter or autofs type solution? I don't want too many open mounts. If the /tmp/mountpoint it not open, I would like to automatically disregard the mount point. On Wed, Aug 20, 2008 at 11:06 AM, Glennie Vignarajah [EMAIL PROTECTED] wrote: Le Wednesday 20 August 2008 vers 02:40, Mag Gam(Mag Gam [EMAIL PROTECTED]) a écrit: Hello, I would like to tar them per day into one tar file. I would then like an interface similar to zsh/ksh to cd tar.file and use it as a typeical shell. Try fuse[1]. It has a driver for tar(ArchiveFileSystems) files[2]. 1: http://fuse.sourceforge.net/ 2: http://fuse.sourceforge.net/wiki/index.php/FileSystems -- http://www.glennie.fr The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: interface for tar
On Wednesday 20 August 2008 13:50, Mag Gam wrote: David: Do you have some sort of script to manage this? I am a little hesitate to give professors mkfs and mount sudo access. Is there a way around this? You can specify the 'user' option in fstab so that usres can mount the relevant filesystem. If you precreate the files with the filesystems in them, it may cover it. On Wed, Aug 20, 2008 at 12:13 AM, Mag Gam [EMAIL PROTECTED] wrote: WOW! Very nice ideas. I like the dd idea. What command would I use for that? Also, the files are coming from NFS; how can I help this? Any ideas for this? On Tue, Aug 19, 2008 at 10:24 PM, David Fox [EMAIL PROTECTED] wrote: On Tue, Aug 19, 2008 at 5:40 PM, Mag Gam [EMAIL PROTECTED] wrote: At my university we run fluid dynamic simulations. These simulations create many small files (30,000) per hour. Their size is very small (20k to 200k). Instead of having this on the filesystem since it take My approach: make a sufficiently-sized file using dd if=/dev/zero of=/bigfile bs=1m count=1000 size so that you have enough room, and room for growth, of course Make a filesystem inside of that file (reiserfs might be a good choice since it is well-designed to handle lots of smallish files, although small by that definition may be much smaller than 200k) Mount that file in loopback mode prior to running your simulations, and (after moving the files over to the new filesystem) direct all filesystem traffic to use that 'filesystem' which may entail only something simple as cd'ing into the 'filesystem' and starting work. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Shachar Or | שחר אור http://ox.freeallweb.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
interface for tar
At my university we run fluid dynamic simulations. These simulations create many small files (30,000) per hour. Their size is very small (20k to 200k). Instead of having this on the filesystem since it take up inode space, I would like to tar them per day into one tar file. I would then like an interface similar to zsh/ksh to cd tar.file and use it as a typeical shell. Do tools like that exist? That would be very benefical for us and our system admin does not have to yell at us. Any thoughts or ideas? TIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: interface for tar
2008/8/20 Mag Gam [EMAIL PROTECTED]: At my university we run fluid dynamic simulations. These simulations create many small files (30,000) per hour. Their size is very small (20k to 200k). Instead of having this on the filesystem since it take up inode space, I would like to tar them per day into one tar file. I would then like an interface similar to zsh/ksh to cd tar.file and use it as a typeical shell. Do tools like that exist? That would be very benefical for us and our system admin does not have to yell at us. Any thoughts or ideas? TIA Hey, There are a few fuse drivers that can do what you're after[0]. There's an article showing how one of them, archivemount, works on linux.com[1]. cheers, Owen. [0] http://fuse.sourceforge.net/wiki/index.php/ArchiveFileSystems [1] http://www.linux.com/feature/132196 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: interface for tar
You can browse tar archives with Midnight Commander (mc). -- John Hasler -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: interface for tar
On Tue, Aug 19, 2008 at 5:40 PM, Mag Gam [EMAIL PROTECTED] wrote: At my university we run fluid dynamic simulations. These simulations create many small files (30,000) per hour. Their size is very small (20k to 200k). Instead of having this on the filesystem since it take My approach: make a sufficiently-sized file using dd if=/dev/zero of=/bigfile bs=1m count=1000 size so that you have enough room, and room for growth, of course Make a filesystem inside of that file (reiserfs might be a good choice since it is well-designed to handle lots of smallish files, although small by that definition may be much smaller than 200k) Mount that file in loopback mode prior to running your simulations, and (after moving the files over to the new filesystem) direct all filesystem traffic to use that 'filesystem' which may entail only something simple as cd'ing into the 'filesystem' and starting work. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: interface for tar
WOW! Very nice ideas. I like the dd idea. What command would I use for that? Also, the files are coming from NFS; how can I help this? Any ideas for this? On Tue, Aug 19, 2008 at 10:24 PM, David Fox [EMAIL PROTECTED] wrote: On Tue, Aug 19, 2008 at 5:40 PM, Mag Gam [EMAIL PROTECTED] wrote: At my university we run fluid dynamic simulations. These simulations create many small files (30,000) per hour. Their size is very small (20k to 200k). Instead of having this on the filesystem since it take My approach: make a sufficiently-sized file using dd if=/dev/zero of=/bigfile bs=1m count=1000 size so that you have enough room, and room for growth, of course Make a filesystem inside of that file (reiserfs might be a good choice since it is well-designed to handle lots of smallish files, although small by that definition may be much smaller than 200k) Mount that file in loopback mode prior to running your simulations, and (after moving the files over to the new filesystem) direct all filesystem traffic to use that 'filesystem' which may entail only something simple as cd'ing into the 'filesystem' and starting work. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: dumb question about tar
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 think it builds it in the destination location, but want to make sure. FWIW you can find out the answer yourself by using strace. James. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
dumb question about tar
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 David -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: dumb question about tar
-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? I have to think it builds it in the destination location, but want to make sure. Builds in at the destination. Remember (if you are old enough!) that tar means Tape ARchive, and that tape drives are sequential devices and also that Way Back When tape drives were cheaper than disk drives. (Even now, LTO3 400/800GB tapes are less than US$35, whereas SATA 400GB drives are US$100 at NewEgg. Much more when you buy from a Tier 1 vendor. And I'd rather drop a tape than a hard drive.) - -- Ron Johnson, Jr. Jefferson LA USA Kittens give Morbo gas. In lighter news, the city of New New York is doomed. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkh/oe8ACgkQS9HxQb37XmelbQCeK7dHvn1r9PRKf39nrls6B9gh 12EAoK7LHy3Qo860NtVWJILxmn1eeAOy =01+i -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Scripting Question - tar
On Thu, 10 Jul 2008 17:04:38 -0500, Kent West wrote: tar -cvzf - --one-file-system /home | split -b 2000m - Side note since the problem has been solved. You might want to look into dar, which will do splitting for you automatically, as well as many other desired features for backup (incremental, has catalog for fast search restore, and many many others...). dar - Disk ARchive: Backup directory tree and files -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Scripting Question - tar
I have this script (stripped down to basics): #!/bin/bash sourceDir='/home/'# Directory you're backing up targetDir='/TERASTATIONBACKUP/GOSHEN/'$(date +%Y)# Destination directory for the tarball targFileBase='GoshensHome'# Desired base part of the tarball's filename targetFile=$targetDir/`date +%Y-%b-%e`.tgz echo Tarring up source into target echo $targetFile tar -czvf - --one-file-system $sourceDir | split -b 2000m $targetFile The script fails with this output: Tarring up source into target /TERASTATIONBACKUP/GOSHEN/2008/2008-Jul-10.tgz split: cannot open `/TERASTATIONBACKUP/GOSHEN/2008/2008-Jul-10.tgz' for reading: No such file or directory tar: Removing leading `/' from member names But, if I comment out the tar line above and replace it with this line: tar -cvzf - --one-file-system /home | split -b 2000m - /TERASTATIONBACKUP/GOSHEN/2008/2008-Jul-10.tgz the script works. Am I just not seeing a typo somewhere? Why is my script failing? Thanks! -- Kent West *))) http://kentwest.blogspot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Scripting Question - tar
tar -cvzf - --one-file-system /home | split -b 2000m - /TERASTATIONBACKUP/GOSHEN/2008/2008-Jul-10.tgz vs tar -czvf - --one-file-system $sourceDir | split -b 2000m $targetFile Am I just not seeing a typo somewhere? Why is my script failing? Thanks! Hey, You're missing the '-' for stdin tar -czvf - --one-file-system $sourceDir | split -b 2000m - $targetFile :) cheers, Owen. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Scripting Question - tar
Owen Townend wrote: Kent West wrote: Am I just not seeing a typo somewhere? Why is my script failing? Hey, You're missing the '-' for stdin tar -czvf - --one-file-system $sourceDir | split -b 2000m - $targetFile Ah, thank you! -- Kent West ))) Westing Peacefully - http://kentwest.blogspot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: compilar .tar
2008/6/24 Maximiliano Marin Bustos [EMAIL PROTECTED]: 2008/6/23 Moises Brenes [EMAIL PROTECTED]: 2008/6/23 Moises Brenes [EMAIL PROTECTED]: O tambien pueden bajar el paquete para Debian: http://log.damog.net/2008/06/firefox-3-for-debian-lenny.html Pasos: (como root) echo deb http://debian.axiombox.com/ testing main /etc/apt/sources.list; apt-get update; apt-get install iceweasel -- シャカ mbrenes.blogspot.com | sibu.homelinux.org debian gnu/linux Para que no se me olvide http://wiki.debian.org/Normas_Lista_Gmail -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Yo estoy usando iceweasel 3 rc2 desde los repos de sid y anda excelente. -- Atte, Maximiliano Marin http://maximilinux.wordpress.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Quizá es cosa mía... pero preguntar cómo se compila un archivo sin saber siquiera que está comprimido, indica muy muy poco interés. De hecho personalmente me dice que ni ha hecho una sóla búsqueda al respecto... Un saludo.
Re: compilar .tar
2008/6/24 Abraham Pérez [EMAIL PROTECTED]: 2008/6/24 Maximiliano Marin Bustos [EMAIL PROTECTED]: 2008/6/23 Moises Brenes [EMAIL PROTECTED]: 2008/6/23 Moises Brenes [EMAIL PROTECTED]: O tambien pueden bajar el paquete para Debian: http://log.damog.net/2008/06/firefox-3-for-debian-lenny.html Pasos: (como root) echo deb http://debian.axiombox.com/ testing main /etc/apt/sources.list; apt-get update; apt-get install iceweasel -- シャカ mbrenes.blogspot.com | sibu.homelinux.org debian gnu/linux Para que no se me olvide http://wiki.debian.org/Normas_Lista_Gmail -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Yo estoy usando iceweasel 3 rc2 desde los repos de sid y anda excelente. -- Atte, Maximiliano Marin http://maximilinux.wordpress.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Quizá es cosa mía... pero preguntar cómo se compila un archivo sin saber siquiera que está comprimido, indica muy muy poco interés. De hecho personalmente me dice que ni ha hecho una sóla búsqueda al respecto... Un saludo. Tambien indica que esta perdido, pero no por eso es de poco interes... -- Atte ItZtLi ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Nahui Tonalli Icniuhtli. ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸
Re: compilar .tar
2008/6/24 Abraham Pérez [EMAIL PROTECTED]: 2008/6/24 Maximiliano Marin Bustos [EMAIL PROTECTED]: 2008/6/23 Moises Brenes [EMAIL PROTECTED]: 2008/6/23 Moises Brenes [EMAIL PROTECTED]: O tambien pueden bajar el paquete para Debian: http://log.damog.net/2008/06/firefox-3-for-debian-lenny.html Pasos: (como root) echo deb http://debian.axiombox.com/ testing main /etc/apt/sources.list; apt-get update; apt-get install iceweasel -- シャカ mbrenes.blogspot.com | sibu.homelinux.org debian gnu/linux Para que no se me olvide http://wiki.debian.org/Normas_Lista_Gmail -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Yo estoy usando iceweasel 3 rc2 desde los repos de sid y anda excelente. -- Atte, Maximiliano Marin http://maximilinux.wordpress.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Quizá es cosa mía... pero preguntar cómo se compila un archivo sin saber siquiera que está comprimido, indica muy muy poco interés. De hecho personalmente me dice que ni ha hecho una sóla búsqueda al respecto... Un saludo. Quizás se trata de que en el país en el que esta no tiene la libertad de pasarse horas buscando en internet la respuesta y por eso acude a la lista; donde es probable que la gente este consciente de ese hecho y le manden ayuda teniendo en mente esta circunstancia. Marcos Delgado.
compilar .tar
He leido que para compilar un paquete tengo que hacer esto, cd /home/paquete.tar.bz2 ./configure make make install Pero eso no me funciona(dentro de mis cosas hay un .tar.bz2 y no puedo compilarlo) que me estara faltando Reiniel:/home/reiniel# cd /home/reiniel/Desktop/Mis_Cosas/ Reiniel:/home/reiniel/Desktop/Mis_Cosas# ./configure bash: ./configure: No existe el fichero o el directorio Reiniel:/home/reiniel/Desktop/Mis_Cosas# Reiniel:/home/reiniel/Desktop/Mis_Cosas# -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: compilar .tar
2008/6/23 Reiniel Gonzalez Martinez [EMAIL PROTECTED]: He leido que para compilar un paquete tengo que hacer esto, cd /home/paquete.tar.bz2 ./configure make make install Pero eso no me funciona(dentro de mis cosas hay un .tar.bz2 y no puedo compilarlo) que me estara faltando Reiniel:/home/reiniel# cd /home/reiniel/Desktop/Mis_Cosas/ Reiniel:/home/reiniel/Desktop/Mis_Cosas# ./configure bash: ./configure: No existe el fichero o el directorio Reiniel:/home/reiniel/Desktop/Mis_Cosas# Reiniel:/home/reiniel/Desktop/Mis_Cosas# Posiblemente no tenga ese archivo que chequea las dependencias, puedes darle make y luego make install, a no ser que se especifique lo contrario en el README y/o en el INSTALL. Cual paquete es? -- シャカ mbrenes.blogspot.com | sibu.homelinux.org debian gnu/linux Para que no se me olvide http://wiki.debian.org/Normas_Lista_Gmail -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: compilar .tar
2008/6/23 Reiniel Gonzalez Martinez [EMAIL PROTECTED]: He leido que para compilar un paquete tengo que hacer esto, cd /home/paquete.tar.bz2 ./configure make make install Pero eso no me funciona(dentro de mis cosas hay un .tar.bz2 y no puedo compilarlo) que me estara faltando Reiniel:/home/reiniel# cd /home/reiniel/Desktop/Mis_Cosas/ Reiniel:/home/reiniel/Desktop/Mis_Cosas# ./configure bash: ./configure: No existe el fichero o el directorio Reiniel:/home/reiniel/Desktop/Mis_Cosas# Reiniel:/home/reiniel/Desktop/Mis_Cosas# -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Primero necesitas descomprimirlo luego destararearlo y finalmente compilarlo, te hace falta: cd /home/ bunzip2 paquete.tar.bz2 tar xvf paquete.tar ./configure make make install si cuando le hagas bunzip2 te sale un error es porque no lo tienes instalado, con el aptitude baja el paquete bzip2, como root: aptitude install bzip2 ciao. -- Atte ItZtLi ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Nahui Tonalli Icniuhtli. ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: compilar .tar
2008/6/23 Victor H De la Luz [EMAIL PROTECTED]: 2008/6/23 Reiniel Gonzalez Martinez [EMAIL PROTECTED]: He leido que para compilar un paquete tengo que hacer esto, cd /home/paquete.tar.bz2 ./configure make make install Pero eso no me funciona(dentro de mis cosas hay un .tar.bz2 y no puedo compilarlo) que me estara faltando Reiniel:/home/reiniel# cd /home/reiniel/Desktop/Mis_Cosas/ Reiniel:/home/reiniel/Desktop/Mis_Cosas# ./configure bash: ./configure: No existe el fichero o el directorio Reiniel:/home/reiniel/Desktop/Mis_Cosas# Reiniel:/home/reiniel/Desktop/Mis_Cosas# -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Primero necesitas descomprimirlo luego destararearlo y finalmente compilarlo, te hace falta: cd /home/ bunzip2 paquete.tar.bz2 tar xvf paquete.tar ./configure make make install si cuando le hagas bunzip2 te sale un error es porque no lo tienes instalado, con el aptitude baja el paquete bzip2, como root: aptitude install bzip2 ciao. -- Atte ItZtLi ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Nahui Tonalli Icniuhtli. ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Pdt: Todos los pasos los puedes hacer como usuario normal. El ultimo paso make install lo necesitas hacer como root o en su caso pasarle un directorio de instalacion en tu propio home. -- Atte ItZtLi ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Nahui Tonalli Icniuhtli. ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: compilar .tar
El día 23 de junio de 2008 14:43, Reiniel Gonzalez Martinez [EMAIL PROTECTED] escribió: He leido que para compilar un paquete tengo que hacer esto, cd /home/paquete.tar.bz2 ./configure make make install Pero eso no me funciona(dentro de mis cosas hay un .tar.bz2 y no puedo compilarlo) que me estara faltando Descomprimirlo y desempaquetarlo: cuando un archivo tiene la extension bz2 significa que fue comprimido con bzip2, para descomprimirlo, puedes usar el comando bunzip2.Si, ademas, tiene la extension tar, significa que esta empaquetado. Lo que debes hacer es: tar xvjf archivo.tar.bz2 y luego, si , lo que indicas mas abajo. Te recomiendo leer man bzip2 y man tar. Reiniel:/home/reiniel# cd /home/reiniel/Desktop/Mis_Cosas/ Reiniel:/home/reiniel/Desktop/Mis_Cosas# ./configure bash: ./configure: No existe el fichero o el directorio Reiniel:/home/reiniel/Desktop/Mis_Cosas# Reiniel:/home/reiniel/Desktop/Mis_Cosas# -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Ricardo A.Frydman Administrador Senior de Sistemas Unix http://unix-argentina.blogspot.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: compilar .tar
2008/6/23 Reiniel Gonzalez Martinez [EMAIL PROTECTED]: cuando ejecute ./configure me mostro Reiniel:/home/reiniel/Desktop/Mis_Cosas# ./configure bash: ./configure: No existe el fichero o el directorio Reiniel:/home/reiniel/Desktop/Mis_Cosas# -Original Message- From: Victor H De la Luz [mailto:[EMAIL PROTECTED] Sent: Tue 24/06/2008 4:02 To: Reiniel Gonzalez Martinez Cc: Lista. Debian Subject: Re: compilar .tar 2008/6/23 Reiniel Gonzalez Martinez [EMAIL PROTECTED]: He leido que para compilar un paquete tengo que hacer esto, cd /home/paquete.tar.bz2 ./configure make make install Pero eso no me funciona(dentro de mis cosas hay un .tar.bz2 y no puedo compilarlo) que me estara faltando Reiniel:/home/reiniel# cd /home/reiniel/Desktop/Mis_Cosas/ Reiniel:/home/reiniel/Desktop/Mis_Cosas# ./configure bash: ./configure: No existe el fichero o el directorio Reiniel:/home/reiniel/Desktop/Mis_Cosas# Reiniel:/home/reiniel/Desktop/Mis_Cosas# -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Primero necesitas descomprimirlo luego destararearlo y finalmente compilarlo, te hace falta: cd /home/ bunzip2 paquete.tar.bz2 tar xvf paquete.tar ./configure make make install si cuando le hagas bunzip2 te sale un error es porque no lo tienes instalado, con el aptitude baja el paquete bzip2, como root: aptitude install bzip2 ciao. -- Atte ItZtLi ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Nahui Tonalli Icniuhtli. ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Manda lo que te salio cuando pusiste bunzip2 paquete.tar.bz2 -- Atte ItZtLi ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Nahui Tonalli Icniuhtli. ¤º°°º¤ø,¸¸,ø¤º°°º¤ø,¸¸,ø¤º°`°º¤ø,¸ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: compilar .tar
2008/6/23 Reiniel Gonzalez Martinez [EMAIL PROTECTED]: firefox 3.0 qeu me baje de internet Entonces no tienes porque compilarlo, porque lo que viene alli es el binario. Solo descomprimelo como te dijeron, accedes al directorio creado y lo corres: $ cd firefox $ ./firefox O tambien pueden bajar el paquete para Debian: http://log.damog.net/2008/06/firefox-3-for-debian-lenny.html -- シャカ mbrenes.blogspot.com | sibu.homelinux.org debian gnu/linux Para que no se me olvide http://wiki.debian.org/Normas_Lista_Gmail -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: compilar .tar
2008/6/23 Moises Brenes [EMAIL PROTECTED]: O tambien pueden bajar el paquete para Debian: http://log.damog.net/2008/06/firefox-3-for-debian-lenny.html Pasos: (como root) echo deb http://debian.axiombox.com/ testing main /etc/apt/sources.list; apt-get update; apt-get install iceweasel -- シャカ mbrenes.blogspot.com | sibu.homelinux.org debian gnu/linux Para que no se me olvide http://wiki.debian.org/Normas_Lista_Gmail -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: compilar .tar
2008/6/23 Moises Brenes [EMAIL PROTECTED]: 2008/6/23 Moises Brenes [EMAIL PROTECTED]: O tambien pueden bajar el paquete para Debian: http://log.damog.net/2008/06/firefox-3-for-debian-lenny.html Pasos: (como root) echo deb http://debian.axiombox.com/ testing main /etc/apt/sources.list; apt-get update; apt-get install iceweasel -- シャカ mbrenes.blogspot.com | sibu.homelinux.org debian gnu/linux Para que no se me olvide http://wiki.debian.org/Normas_Lista_Gmail -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Yo estoy usando iceweasel 3 rc2 desde los repos de sid y anda excelente. -- Atte, Maximiliano Marin http://maximilinux.wordpress.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: problems with tar for backup (maximum tar file size?)
Jimmy Wu wrote: I haven't been backing up any of my stuff, and yesterday I decided to start doing that I want to use tar with bz2, and I wrote this little script to hopefully automate this process (attached) The script works, but tar doesn't. The logs show no errors until somewhere near the end, when it says tar: Error exit delayed from previous errors but no other errors. I've been searching online, and the only thing I can think of that's wrong is the directory is too big. From what I read, the way tar works, the tar archive can't be bigger than 8GB. My home directory is about that much, maybe a little more. The largest file I have is a 2+ GB dvd iso. So I was wondering: (1) Is it true that tar files can't be bigger than 8GB, and (2) If so, what should I use to backup directories bigger than 8GB? I wanted to stick with tar because I can open those on other platforms. If directory size isn't the problem, then what could be going on? Thanks! -- Jimmy Wu Registered Linux User #454138 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments I use backup2l and it makes backups using tar and bz2. My initial backup is about 16G. #ll /mnt/backup/backup/backup.1.tar.bz2 #-rw-r--r-- 1 root root 17991855331 2008-05-05 15:22 /mnt/backup/backup/backup.1.tar.bz2 Maybe a filesystem restriction in the same way vfat is restricted to 4G? HTH Wackojacko -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: problems with tar for backup (maximum tar file size?)
On Thu, May 29, 2008 at 10:46:10PM -0400, Jimmy Wu wrote: I haven't been backing up any of my stuff, and yesterday I decided to start doing that I want to use tar with bz2, and I wrote this little script to hopefully automate this process (attached) The script works, but tar doesn't. The logs show no errors until somewhere near the end, when it says tar: Error exit delayed from previous errors but no other errors. I've been searching online, and the only thing I can think of that's wrong is the directory is too big. From what I read, the way tar works, the tar archive can't be bigger than 8GB. My home directory is about that much, maybe a little more. The largest file I have is a 2+ GB dvd iso. So I was wondering: (1) Is it true that tar files can't be bigger than 8GB, and (2) If so, what should I use to backup directories bigger than 8GB? I wanted to stick with tar because I can open those on other platforms. If directory size isn't the problem, then what could be going on? Read the tar info docs (tar-doc is contrib or non-free, I forget which, and is in info format so you either need info or pinfo to read it). The maximum archive size depends on the archive format you are creating, however neither gnu or posix format has this limitation so this shouldn't be a problem. I get that error if I have a hanging symlink (a symlink that points to a non-existant file) which I am telling tar to backup. Check in the directories which you are backing up for such links. However, even with the error, I get a functional tarball at the end. What happens if you add the -v verbose option? Do you see more detail? Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
problems with tar for backup (maximum tar file size?)
I haven't been backing up any of my stuff, and yesterday I decided to start doing that I want to use tar with bz2, and I wrote this little script to hopefully automate this process (attached) The script works, but tar doesn't. The logs show no errors until somewhere near the end, when it says tar: Error exit delayed from previous errors but no other errors. I've been searching online, and the only thing I can think of that's wrong is the directory is too big. From what I read, the way tar works, the tar archive can't be bigger than 8GB. My home directory is about that much, maybe a little more. The largest file I have is a 2+ GB dvd iso. So I was wondering: (1) Is it true that tar files can't be bigger than 8GB, and (2) If so, what should I use to backup directories bigger than 8GB? I wanted to stick with tar because I can open those on other platforms. If directory size isn't the problem, then what could be going on? Thanks! -- Jimmy Wu Registered Linux User #454138 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments backup.sh Description: Bourne shell script
Re: nautilus problème archive tar
Le dimanche 23 décembre 2007 à 02:17 +0900, Charles Plessy a écrit : Le Fri, Dec 21, 2007 at 05:32:33PM +0100, nono a écrit : Je crée l'archive en faisant: clic-droit-sur-un-dossier - Créer-une-archive (ensuite je choisi le type d'archive tar ou zip, etc..) Avec Nautilus j'ai un message d'erreur lorsque je crée un archive tar, tar.gz ou tar.bz2 (pas d'erreur avec zip) Bonjour à tous, je viens de rapporter le bug, son numéro est 457474. merci car je n'y suis pas parvenu. nono -- .-. .-. / 0o\ nono at jabber-fr dot net/0o \ ` .\/ `http://zenith.noel.free.fr/ ` \/. ` (` .) http://www.linux-france.org/~jcnoel/ (. `) === `=--= == =--=` === signature.asc Description: Ceci est une partie de message numériquement signée
Re: nautilus problèm e archive tar
Le Fri, Dec 21, 2007 at 05:32:33PM +0100, nono a écrit : Je crée l'archive en faisant: clic-droit-sur-un-dossier - Créer-une-archive (ensuite je choisi le type d'archive tar ou zip, etc..) Avec Nautilus j'ai un message d'erreur lorsque je crée un archive tar, tar.gz ou tar.bz2 (pas d'erreur avec zip) Bonjour à tous, je viens de rapporter le bug, son numéro est 457474. -- Charles Plessy http://charles.plessy.org Wakō, Saitama, Japan -- Lisez la FAQ de la liste avant de poser une question : http://wiki.debian.net/?DebianFrench Vous pouvez aussi ajouter le mot ``spam'' dans vos champs From et Reply-To: To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
nautilus problème archive tar
Salut Sous Nautilus 2.18.3 en Debian/Lenny. Je crée l'archive en faisant: clic-droit-sur-un-dossier - Créer-une-archive (ensuite je choisi le type d'archive tar ou zip, etc..) Avec Nautilus j'ai un message d'erreur lorsque je crée un archive tar, tar.gz ou tar.bz2 (pas d'erreur avec zip) Le message d'erreur : tar: Ceci ne ressemble pas à une archive de type « tar » tar: Statut d'erreur reporté d'erreurs précédentes. En console aucune erreur, «tar cvzf toto.tar.gz toto» fonctionne très bien. L'erreur de Nautilus ne se produit qu'à la création de l'archive pas à l'extraction. Un bug, une idée ? nono signature.asc Description: Ceci est une partie de message numériquement signée
Re: nautilus problèm e archive tar
Bonjour, Le vendredi 21 décembre 2007, nono a écrit... Avec Nautilus j'ai un message d'erreur lorsque je crée un archive tar, tar.gz ou tar.bz2 (pas d'erreur avec zip) Le message d'erreur : tar: Ceci ne ressemble pas à une archive de type « tar » tar: Statut d'erreur reporté d'erreurs précédentes. Un bug, une idée ? Ce n'est pas une archive de type tar, si c'est un tar.gz, puisqu'elle est gzipée. Serait ce cela ? -- jm A.E.L. Sarl (R.C.S CASTRES 490843240) http://www.spidboutic.fr -- Lisez la FAQ de la liste avant de poser une question : http://wiki.debian.net/?DebianFrench Vous pouvez aussi ajouter le mot ``spam'' dans vos champs From et Reply-To: To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: nautilus problème archive tar
Le Fri, 21 Dec 2007 17:32:33 +0100 nono [EMAIL PROTECTED] a écrit: Salut Sous Nautilus 2.18.3 en Debian/Lenny. Je crée l'archive en faisant: clic-droit-sur-un-dossier - Créer-une-archive (ensuite je choisi le type d'archive tar ou zip, etc..) Avec Nautilus j'ai un message d'erreur lorsque je crée un archive tar, tar.gz ou tar.bz2 (pas d'erreur avec zip) Le message d'erreur : tar: Ceci ne ressemble pas à une archive de type « tar » tar: Statut d'erreur reporté d'erreurs précédentes. En console aucune erreur, «tar cvzf toto.tar.gz toto» fonctionne très bien. L'erreur de Nautilus ne se produit qu'à la création de l'archive pas à l'extraction. Un bug, une idée ? nono Oui j'ai aussi ce message mais l'archive est quand même créée... Gaëtan -- Lisez la FAQ de la liste avant de poser une question : http://wiki.debian.net/?DebianFrench Vous pouvez aussi ajouter le mot ``spam'' dans vos champs From et Reply-To: To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: nautilus problème archive tar
C'est pas comme dans le fil Nautilus problème tar de nono (19/12/07) ? Moins seul ? Bon week-end ! Jean-Michel OLTRA a écrit : Bonjour, Le vendredi 21 décembre 2007, nono a écrit... Avec Nautilus j'ai un message d'erreur lorsque je crée un archive tar, tar.gz ou tar.bz2 (pas d'erreur avec zip) Le message d'erreur : tar: Ceci ne ressemble pas à une archive de type « tar » tar: Statut d'erreur reporté d'erreurs précédentes. Un bug, une idée ? Ce n'est pas une archive de type tar, si c'est un tar.gz, puisqu'elle est gzipée. Serait ce cela ? -- Lisez la FAQ de la liste avant de poser une question : http://wiki.debian.net/?DebianFrench Vous pouvez aussi ajouter le mot ``spam'' dans vos champs From et Reply-To: To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: nautilus problèm e archive tar
Bonjour, Le vendredi 21 décembre 2007, Marc JEAN a écrit... C'est pas comme dans le fil Nautilus problème tar de nono (19/12/07) ? Moins seul ? Ben non, car, en fait, je lui répondais. J'utilise WindowMaker depuis toujours…Et je fais mes archives à la main, comme un dino. -- jm A.E.L. Sarl (R.C.S CASTRES 490843240) http://www.spidboutic.fr -- Lisez la FAQ de la liste avant de poser une question : http://wiki.debian.net/?DebianFrench Vous pouvez aussi ajouter le mot ``spam'' dans vos champs From et Reply-To: To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Nautilus problème tar
J'ai le même problème de message intempestif. Le plus fort, c'est que l'archive est créée quand même ! Apparemment, il n'y a aucun bug enregistré sur bugs.debian.org pour ce problème. Je suis en testing, avec Gnome 2.14.3.6 et Nautilus 2.18.3-3 Bernard. nono a écrit : Le mercredi 19 décembre 2007 à 10:02 +0100, nono a écrit : Salut Sous Nautilus 2.18.3 en Debian/Lenny. Je crée l'archive en faisant: clic-droit-sur-un-dossier - Créer-une-archive (ensuite je choisi le type d'archive tar ou zip, etc..) Avec Nautilus j'ai un message d'erreur lorsque je crée un archive tar, tar.gz ou tar.bz2 (pas d'erreur avec zip) Le message d'erreur : tar: Ceci ne ressemble pas à une archive de type « tar » tar: Statut d'erreur reporté d'erreurs précédentes. En console aucune erreur, «tar cvzf toto.tar.gz toto» fonctionne très bien. L'erreur de Nautilus ne se produit qu'à la création de l'archive pas à l'extraction. Un bug, une idée ? nono Sur le forum de Gnome-fr, le problème n'est pas connu. Ils me conseillent de voir du côté de Debian si un bug ne serait pas recensé. Où puis-je aller consulter cela ? En attendant je vais essayer certains live-cd utilisant Gnome. Si vous aussi vous avez ce problème, merci de me le faire savoir en précisant la version de Debian, Gnome, Nautilus. merci nono
Re: Nautilus problème tar
Le Thu, Dec 20, 2007 at 09:06:18AM +0100, Bernard Isambert a écrit : J'ai le même problème de message intempestif. Le plus fort, c'est que l'archive est créée quand même ! Apparemment, il n'y a aucun bug enregistré sur bugs.debian.org pour ce problème. Un volontaire pour écrire un rapport ? Bonne journée, -- Charles Plessy http://charles.plessy.org Wakō, Saitama, Japan -- Lisez la FAQ de la liste avant de poser une question : http://wiki.debian.net/?DebianFrench Vous pouvez aussi ajouter le mot ``spam'' dans vos champs From et Reply-To: To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Nautilus problème tar
Salut Sous Nautilus 2.18.3 en Debian/Lenny. Je crée l'archive en faisant: clic-droit-sur-un-dossier - Créer-une-archive (ensuite je choisi le type d'archive tar ou zip, etc..) Avec Nautilus j'ai un message d'erreur lorsque je crée un archive tar, tar.gz ou tar.bz2 (pas d'erreur avec zip) Le message d'erreur : tar: Ceci ne ressemble pas à une archive de type « tar » tar: Statut d'erreur reporté d'erreurs précédentes. En console aucune erreur, «tar cvzf toto.tar.gz toto» fonctionne très bien. L'erreur de Nautilus ne se produit qu'à la création de l'archive pas à l'extraction. Un bug, une idée ? nono -- .-. .-. / 0o\ nono at jabber-fr dot net/0o \ ` .\/ `http://zenith.noel.free.fr/ ` \/. ` (` .) http://www.linux-france.org/~jcnoel/ (. `) === `=--= == =--=` === signature.asc Description: Ceci est une partie de message numériquement signée
Re: Nautilus problème tar
Le mercredi 19 décembre 2007 à 10:02 +0100, nono a écrit : Salut Sous Nautilus 2.18.3 en Debian/Lenny. Je crée l'archive en faisant: clic-droit-sur-un-dossier - Créer-une-archive (ensuite je choisi le type d'archive tar ou zip, etc..) Avec Nautilus j'ai un message d'erreur lorsque je crée un archive tar, tar.gz ou tar.bz2 (pas d'erreur avec zip) Le message d'erreur : tar: Ceci ne ressemble pas à une archive de type « tar » tar: Statut d'erreur reporté d'erreurs précédentes. En console aucune erreur, «tar cvzf toto.tar.gz toto» fonctionne très bien. L'erreur de Nautilus ne se produit qu'à la création de l'archive pas à l'extraction. Un bug, une idée ? nono Sur le forum de Gnome-fr, le problème n'est pas connu. Ils me conseillent de voir du côté de Debian si un bug ne serait pas recensé. Où puis-je aller consulter cela ? En attendant je vais essayer certains live-cd utilisant Gnome. Si vous aussi vous avez ce problème, merci de me le faire savoir en précisant la version de Debian, Gnome, Nautilus. merci nono -- .-. .-. / 0o\ nono at jabber-fr dot net/0o \ ` .\/ `http://zenith.noel.free.fr/ ` \/. ` (` .) http://www.linux-france.org/~jcnoel/ (. `) === `=--= == =--=` === signature.asc Description: Ceci est une partie de message numériquement signée
Re: Nautilus problème tar
Salut, Voir si y a un bug recensé : $ reportbug nautilus ou $ reportbug-ng nautilus Le cas échéant faire un rapport de bug ... Guy nono a écrit : Le mercredi 19 décembre 2007 à 10:02 +0100, nono a écrit : Salut Sous Nautilus 2.18.3 en Debian/Lenny. Je crée l'archive en faisant: clic-droit-sur-un-dossier - Créer-une-archive (ensuite je choisi le type d'archive tar ou zip, etc..) Avec Nautilus j'ai un message d'erreur lorsque je crée un archive tar, tar.gz ou tar.bz2 (pas d'erreur avec zip) Le message d'erreur : tar: Ceci ne ressemble pas à une archive de type « tar » tar: Statut d'erreur reporté d'erreurs précédentes. En console aucune erreur, «tar cvzf toto.tar.gz toto» fonctionne très bien. L'erreur de Nautilus ne se produit qu'à la création de l'archive pas à l'extraction. Un bug, une idée ? nono Sur le forum de Gnome-fr, le problème n'est pas connu. Ils me conseillent de voir du côté de Debian si un bug ne serait pas recensé. Où puis-je aller consulter cela ? En attendant je vais essayer certains live-cd utilisant Gnome. Si vous aussi vous avez ce problème, merci de me le faire savoir en précisant la version de Debian, Gnome, Nautilus. merci nono
about tar backup
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 `tar --help' or `tar --usage' for more information. what is my mistake please tell me - Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Re: about tar backup
-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 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. what is my mistake please tell me Where are you sending the output? - -- Ron Johnson, Jr. Jefferson LA USA %SYSTEM-F-FISH, my hovercraft is full of eels -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHVZRZS9HxQb37XmcRAgA2AKCwXQlBO0Xuxh14oSmanMZFXLsOWACfdHKI 8vJgqEsQ4c1NWaqGlDK2jdg= =QIS0 -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: about tar backup
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 name of the filename of the tar archive. Just like tar cvf /srv/backup/www-backup.tar /www J. -- I am getting worse rather than better. [Agree] [Disagree] http://www.slowlydownward.com/NODATA/data_enter2.html signature.asc Description: Digital signature
Re: about tar backup
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/ (but does not work gives error) tar: Cowardly refusing to create an empty archive Try `tar --help' or `tar --usage' for more information. what is my mistake please tell me You need to give two arguments to tar cvf: the name of the archive, and the name of the directory you want to backup. I do not quite understand what you are trying to accomplish, but this will backup the my_data directory to my_backup.tar: tar cvf my_backup.tar my_data/ A. -- Ansgar Esztermann Researcher Sysadmin http://www.mpibpc.mpg.de/groups/grubmueller/start/people/aeszter/index.shtml pgpOffTgMBTtD.pgp Description: PGP signature
comando tar
Hola, me gustaría saber y después de leerme el man y el help de tar no lo encuentro o es que no lo entiendo, ¿como hacer una tar de un directorio sin que meta los enlaces ? ¿cual es el modificador o bandera ? Intento hacer un tar del /home, pero hay unos enlaces a windows, claro hay muchos gigas allí y no me cabe donde lo quiero poner. Muchas Gracias
Re: comando tar
¿has probado a evitar esos enlaces? O sea tar cvf /directorio/nombre.tar /home/directorio1 /home/directorio2, Así te creará el fichero.tar con los directorios del home que le indicas... Seguramente haya otra forma pero yo lo hago así El día 8/11/07, Nuria Perez [EMAIL PROTECTED] escribió: Hola, me gustaría saber y después de leerme el man y el help de tar no lo encuentro o es que no lo entiendo, ¿como hacer una tar de un directorio sin que meta los enlaces ? ¿cual es el modificador o bandera ? Intento hacer un tar del /home, pero hay unos enlaces a windows, claro hay muchos gigas allí y no me cabe donde lo quiero poner. Muchas Gracias
Re: comando tar
On Thu, Nov 08, 2007 at 02:45:58PM +0100, Aurelio Díaz-Ufano wrote: El día 8/11/07, Nuria Perez [EMAIL PROTECTED] escribió: Hola, me gustaría saber y después de leerme el man y el help de tar no lo encuentro o es que no lo entiendo, ¿como hacer una tar de un directorio sin que meta los enlaces ? ¿cual es el modificador o bandera ? Intento hacer un tar del /home, pero hay unos enlaces a windows, claro hay muchos gigas allí y no me cabe donde lo quiero poner. Mira las opciones --exclude y --one-file-system. La primera te permite excluir las cosas que quieras del tar. La segunda evita que se incluyan en el tar cosas que no están en le sistema da archivos local, es decir, cosas que están en otra partición, otro disco o algún volumen montado por red. -- Blu. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: comando tar
Nuria Perez escribió: Hola, me gustaría saber y después de leerme el man y el help de tar no lo encuentro o es que no lo entiendo, ¿como hacer una tar de un directorio sin que meta los enlaces ? ¿cual es el modificador o bandera ? Intento hacer un tar del /home, pero hay unos enlaces a windows, claro hay muchos gigas allí y no me cabe donde lo quiero poner. Muchas Gracias Googleando un poco encontre esto que por ahi te sirve, si bien no es exactamente lo que estas buscando pero puede ser algo, # find / -print0 http://www.esdebian.org/article.php/20050925122958155#opt_--null -depth | grep -zZ http://www.esdebian.org/article.php/20050925122958155#opt_--nullEvf /excluirDirectorios.txt | cpio -o -0 http://www.esdebian.org/article.php/20050925122958155#opt_--null-vV -H crc | bunzip2 -cz9 | split -b680m - /mnt/D/IntanciaDebian/Debian_raiz_unafecha.cpio.bz2.split. en ese comando que te pase lo que tenes que hacer es por ejemplo: en el archivo llamado excluirDirectorios.txt tenes que escribir los directorios y/o enlaces a excluir del targz en el diguiente formato cat /excluirDirectorios.txt ^/cdrom ^/floppy ^/mnt/C ^/mnt/D ^/mnt/cdrw ^/mnt/hda1 ^/mnt/hdc1 ^/mnt/hdc7 ^/home/lost+found ^/home ^/tmp ^/root/.mozilla/firefox/cyu2b861.default/Cache ^/root/.opera/cache4 ^/var/cache/apt/archives ^/proc ^/sys ^/usr/src/MisCompilaciones otra altarnativa lo que podes hacer por ejemplo: tar -czvf /home/Backup/sistema.tar.gz /home --exclude=/home/Backup/ --exclude=/home/dir-enlace1 --exclude=/home/dir-enlace2 --exclude=/home/dir-enlace3 --exclude=/home/Backup/sistema.tar.gz se que ninguna de las dos es la respuesta exacta, pero espero que te puedan a llegar a ser utiles... Saludos begin:vcard fn:Federico Juarez n:Juarez;Federico org:Xtech (Soluciones Linux para Empresas) adr:;;Av. 25 de Mayo;Capital Federal;Buenos Aires;;Argentina email;internet:[EMAIL PROTECTED] tel;fax:(02254) 48-5582 tel;home:(011) tel;cell:(011) 15 68582727 x-mozilla-html:FALSE url:http://www.xtech.com.ar/ version:2.1 end:vcard
Re: comando tar
El 8/11/07, Nuria Perez [EMAIL PROTECTED] escribió: Hola, me gustaría saber y después de leerme el man y el help de tar no lo encuentro o es que no lo entiendo, ¿como hacer una tar de un directorio sin que meta los enlaces ? ¿cual es el modificador o bandera ? Intento hacer un tar del /home, pero hay unos enlaces a windows, claro hay muchos gigas allí y no me cabe donde lo quiero poner. Muchas Gracias Hola Nuria, Acabo de revisar el comportamiento de tar y si consigue un enlace lo que hace es meter el enlace y no el archivo al cual apunta, si quieres que tome el archivo apuntado por el enlace lo estableces con la opción -h. Si quieres ver las opciones por defecto lo haces con la opción --show-defaults. De todas maneras te recomiendo instalar el paquete tar-doc y luego en la consola hacer info tar que te da una documentación más completa que el man del mismo comando. -- Saludos, Roberto D'Oliveira
Re: Regarding tar and split
Take a look at rsnapshot. It uses rsync --link-dest and/or cp - al to do exactly what you like about cp --backup=t. It maintains a series of snapshots of the filesystem with separate copies of changed files but only one copy of unchanged files. rsnapshot overlays all that with a simple automatic way of pruning the older snapshots after they have aged appropriately. You may like it. Rick PS: This has gotten a bit far afield from tar and split... On Oct 13, 2007, at 1:11 PM, Paul E Condon wrote: It doesn't appear from the man page that rsync has the equivalent of cp --backup=t -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
Sean Zimmermann [EMAIL PROTECTED]: Paul E Condon pecondon at mesanetworks.net writes: The difference is that afio compresses each input file individually, so if there is a read/write error, only one file is lost from the archive. I have one final question: some people have brought up the strength of programs like afio that compress files individually to protect against corruption. Most of the things I archive are large image or movie files (which typically don't compress well). I read through most of both tar's and afio's man pages, and afio seems to have some interesting features (like the ability to seek to blocks in an archive). If I am not compressing the archive, does afio and/or cpio still have benefits that make it more appealing than tar? afio does notice that certain file types are already compressed and doesn't bother trying to compress them again. You can also choose a minimum file size to compress (if little will be gained from compressing it). And, -P lets you choose the compression program. I use bzip2. I've seen others pipe it through gpg for encryption. I've been using afio for close to a decade and never lost anything, but I'm sure others can say the same for tar. -- Any technology distinguishable from magic is insufficiently advanced. (*)http://blinkynet.net/comp/uip5.html Linux Counter #80292 - -http://www.faqs.org/rfcs/rfc1855.htmlPlease, don't Cc: me. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
On Fri, Oct 12, 2007 at 10:07:28PM -0600, Paul E Condon wrote: On Sat, Oct 13, 2007 at 02:59:32AM +, Sean Zimmermann wrote: snip... I have one final question: some people have brought up the strength of programs like afio that compress files individually to protect against corruption. Most of the things I archive are large image or movie files (which typically don't compress well). I read through most of both tar's and afio's man pages, and afio seems to have some interesting features (like the ability to seek to blocks in an archive). If I am not compressing the archive, does afio and/or cpio still have benefits that make it more appealing than tar? I have about 80 GB of various stuff on my computer. I have a second computer for backups. I use 'cp -au --backup=t ...' to copy new versions of files onto the backup computer early every morning, and keep all prior versions of the changed files. No archive format, No compression. I've written backup script that keeps track of file deletions. Mostly I have used by backup to recover things that I have damaged by user error. I've not yet ever had a hardware error that lost my data. The directory tree on the backup machine grows slowly as I work on things. Some day I'll have to work on a script to strip out really old versions of some files. Or maybe I'll just buy a newer bigger HD for the backup. I also buy an external USB drive from Costco when they have a expecially good price and copy a whole image onto it and put it away for safe keeping. I was following this thread to see if I was missing any good tricks. I think I'll stick with what I'm doing already. IMO, what you need depends on what you do with your computer, what kind of error that leads to, and what kind of loss you would find really painful. I don't backup the Debian software. Its better for me to just reinstall from a repository. Instead of cp, you may want to look at rsync. You can either go plain over the network to the rsync server on the other box, or rsync can use ssh as a tunnel so that everything on the network is encryted. The advantage of rsync is that it only sends the difference so is very fast for daily small changes. If you have a spare computer (OK, that will at least install/run Debian Etch), you can put some drives in it, set it up for raid1, and use it as a dedicated backup server. Turn it on to do backups then turn it off and (perhaps) disconnect it from everything to decrease the risk of environmental damage (e.g. power surge). Or, on the one box, set up raid1 pairs with one drive internal and the other external. To take a backup off-site, remove a drive from the array. If something bad happens, put that drive in a bare-metal box and boot it, then add a second drive to the array and you're back in business. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
On Sat, Oct 13, 2007 at 10:16:03AM -0400, Douglas A. Tutty wrote: On Fri, Oct 12, 2007 at 10:07:28PM -0600, Paul E Condon wrote: On Sat, Oct 13, 2007 at 02:59:32AM +, Sean Zimmermann wrote: snip... I have one final question: some people have brought up the strength of programs like afio that compress files individually to protect against corruption. Most of the things I archive are large image or movie files (which typically don't compress well). I read through most of both tar's and afio's man pages, and afio seems to have some interesting features (like the ability to seek to blocks in an archive). If I am not compressing the archive, does afio and/or cpio still have benefits that make it more appealing than tar? I have about 80 GB of various stuff on my computer. I have a second computer for backups. I use 'cp -au --backup=t ...' to copy new versions of files onto the backup computer early every morning, and keep all prior versions of the changed files. No archive format, No compression. I've written backup script that keeps track of file deletions. Mostly I have used by backup to recover things that I have damaged by user error. I've not yet ever had a hardware error that lost my data. The directory tree on the backup machine grows slowly as I work on things. Some day I'll have to work on a script to strip out really old versions of some files. Or maybe I'll just buy a newer bigger HD for the backup. I also buy an external USB drive from Costco when they have a expecially good price and copy a whole image onto it and put it away for safe keeping. I was following this thread to see if I was missing any good tricks. I think I'll stick with what I'm doing already. IMO, what you need depends on what you do with your computer, what kind of error that leads to, and what kind of loss you would find really painful. I don't backup the Debian software. Its better for me to just reinstall from a repository. Instead of cp, you may want to look at rsync. You can either go plain over the network to the rsync server on the other box, or rsync can use ssh as a tunnel so that everything on the network is encryted. The advantage of rsync is that it only sends the difference so is very fast for daily small changes. It doesn't appear from the man page that rsync has the equivalent of cp --backup=t I use this and it is important to me. Nothing ever is deleted from my backup until I do a clean-up sweep on it (which I have never yet done). My post was done mainly to suggest to Sean that he is unlikely to find consensus on how best to do periodic backups, and that he should think about what really worries him and how to address that. For some backup strategies that I have seen discussed, it seems to me visiting a psychiatrist would be more healthy. ;-) My second reason for responding was to encourage others to respond with descriptions of what they do. I'd be interested in reading them, too. If you have a spare computer (OK, that will at least install/run Debian Etch), you can put some drives in it, set it up for raid1, and use it as a dedicated backup server. Turn it on to do backups then turn it off and (perhaps) disconnect it from everything to decrease the risk of environmental damage (e.g. power surge). Or, on the one box, set up raid1 pairs with one drive internal and the other external. To take a backup off-site, remove a drive from the array. If something bad happens, put that drive in a bare-metal box and boot it, then add a second drive to the array and you're back in business. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Paul E Condon [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
On Sat, Oct 13, 2007 at 11:11:35AM -0600, Paul E Condon wrote: [snip: remote backups] It doesn't appear from the man page that rsync has the equivalent of cp --backup=t I use this and it is important to me. Nothing ever is deleted from my backup until I do a clean-up sweep on it (which I have never yet done). The workaround would be to rsync to the other box, and do the cp --backup=t there. Costs more disk space, but saves network bandwidth. [That may or may not be advantageous, of course] Alternatively, you could commit everything to version control; I do something like that for most of my files. Jon Leonard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
On Oct 11, 2007, at 2:53 PM, Carl Johnson wrote: Are you sure that you are not talking about afio? I looked at the documentation for cpio, and there is no mention of compression (for etch). You're probably right. I tend to conflate the two in my mind. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
On Thu, Oct 11, 2007 at 11:09:04PM -0400, Celejar wrote: On Thu, 11 Oct 2007 20:48:10 +0200 Manon Metten [EMAIL PROTECTED] wrote: Hi Sean, You might consider using Lha. It does the same as tar and bzip2 together Tar itself integrates bzip2 via the 'j' switch. Manon. Celejar -- The difference is that afio compresses each input file individually, so if there is a read/write error, only one file is lost from the archive. (Actually, there are a lot more differences - to start with the options are totally different syntax and symantics.) -- Paul E Condon [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
Paul E Condon pecondon at mesanetworks.net writes: The difference is that afio compresses each input file individually, so if there is a read/write error, only one file is lost from the archive. (Actually, there are a lot more differences - to start with the options are totally different syntax and symantics.) Thanks everyone for all of your help. I have one final question: some people have brought up the strength of programs like afio that compress files individually to protect against corruption. Most of the things I archive are large image or movie files (which typically don't compress well). I read through most of both tar's and afio's man pages, and afio seems to have some interesting features (like the ability to seek to blocks in an archive). If I am not compressing the archive, does afio and/or cpio still have benefits that make it more appealing than tar? Regards, Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
On Sat, Oct 13, 2007 at 02:59:32AM +, Sean Zimmermann wrote: snip... I have one final question: some people have brought up the strength of programs like afio that compress files individually to protect against corruption. Most of the things I archive are large image or movie files (which typically don't compress well). I read through most of both tar's and afio's man pages, and afio seems to have some interesting features (like the ability to seek to blocks in an archive). If I am not compressing the archive, does afio and/or cpio still have benefits that make it more appealing than tar? I have about 80 GB of various stuff on my computer. I have a second computer for backups. I use 'cp -au --backup=t ...' to copy new versions of files onto the backup computer early every morning, and keep all prior versions of the changed files. No archive format, No compression. I've written backup script that keeps track of file deletions. Mostly I have used by backup to recover things that I have damaged by user error. I've not yet ever had a hardware error that lost my data. The directory tree on the backup machine grows slowly as I work on things. Some day I'll have to work on a script to strip out really old versions of some files. Or maybe I'll just buy a newer bigger HD for the backup. I also buy an external USB drive from Costco when they have a expecially good price and copy a whole image onto it and put it away for safe keeping. I was following this thread to see if I was missing any good tricks. I think I'll stick with what I'm doing already. IMO, what you need depends on what you do with your computer, what kind of error that leads to, and what kind of loss you would find really painful. I don't backup the Debian software. Its better for me to just reinstall from a repository. YMMV -- Paul E Condon [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
Douglas A. Tutty dtutty at porchlight.ca writes: Tar archive isn't designed for this, since its designed for sequential devices. Have you considered using another archive format? Perhaps iso? You can split and join iso files, mount them with loop mount, compress, burn, whatever. Doug. If I ignored the indexing issue (since most of my work with tar is large, non-incremental backups where I typically restore the entire contents - it would be nice if there was indexing, but is not a huge problem), should I still use something other than tar? Right now, I use it to backup large files over multiple media, and tar's multipart feature allows me to do this without having to duplicate all of the files on my hard disk (though I have enough room to do this if I needed to). But if I were to use split instead of tar -M, and I don't need the archives indexed, should I still switch to another archive format (cpio, ar, iso)? Also, if I give tar the --posix flag with -M, doesn't that make it so the archive does not use the gnu extensions and follows the standard format? Thanks everyone for all of your help, Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
On Oct 11, 2007, at 5:01 AM, Sean Zimmermann wrote: If I ignored the indexing issue (since most of my work with tar is large, non-incremental backups where I typically restore the entire contents - it would be nice if there was indexing, but is not a huge problem), should I still use something other than tar? The answer is a resounding maybe. cpio has some advantages over tar when doing compressed backups. It compresses each file individually, instead of compressing the entire archive. This makes a big difference for data recovery. If part of a compressed tar archive gets corrupted, you'll probably lose the whole thing. If part of a compressed cpio archive gets corrupted, you'll lose only the individual files affected by the corruption. This was probably more of a concern back in the days when we all backed up to tape, but bad hard disk sectors and scratched DVD-Rs do happen. cpio has a really horrid command line syntax, though. ;) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
Hi Sean, You might consider using Lha. It does the same as tar and bzip2 together (although you can disable compression). It has a simple syntax. You can also view the contents of the archive and even extract one single file from it. Example (suppose I have a 'work' dir with a.o. the file 'abc' in it): cd ~ lha a work.lha work/ (pack and compress entire dir incl. sub dirs) lha v work.lha ( view contents) lha x work.lha work/abc(extract only the file work/abc from the archive). Manon.
Re: Regarding tar and split
On Thu, 11 Oct 2007 20:48:10 +0200 Manon Metten [EMAIL PROTECTED] wrote: Hi Sean, You might consider using Lha. It does the same as tar and bzip2 together Tar itself integrates bzip2 via the 'j' switch. Manon. Celejar -- mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
David Brodbeck [EMAIL PROTECTED] writes: On Oct 11, 2007, at 5:01 AM, Sean Zimmermann wrote: If I ignored the indexing issue (since most of my work with tar is large, non-incremental backups where I typically restore the entire contents - it would be nice if there was indexing, but is not a huge problem), should I still use something other than tar? The answer is a resounding maybe. cpio has some advantages over tar when doing compressed backups. It compresses each file individually, instead of compressing the entire archive. This makes a big difference for data recovery. If part of a compressed tar archive gets corrupted, you'll probably lose the whole thing. If part of a compressed cpio archive gets corrupted, you'll lose only the individual files affected by the corruption. This was probably more of a concern back in the days when we all backed up to tape, but bad hard disk sectors and scratched DVD-Rs do happen. cpio has a really horrid command line syntax, though. ;) Are you sure that you are not talking about afio? I looked at the documentation for cpio, and there is no mention of compression (for etch). -- Carl Johnson[EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Regarding tar and split
Hello. I frequently work with large tar archives that often need to be split into smaller pieces. Up until now, I've used tar -m to create multi-part archives. I recently read that I can use split to do the same thing. Is there an advantage or disadvantage to using split over tar -m? Also, is there some way to index a large tar file, so if I want to extract a file at the end of a large archive, tar doesn't have to seek through the entire archive to get the file? Thank you for any help. Regards, Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/10/2007 11:43 AM, Sean Zimmermann wrote: Hello. Hi Sean I frequently work with large tar archives that often need to be split into smaller pieces. Up until now, I've used tar -m to create multi-part archives. I recently read that I can use split to do the same thing. Is there an advantage or disadvantage to using split over tar -m? One reason is portability to other Unices. Debian packages the GNU tool chain, which have advanced and enhanced features. IMHO Solaris native tar can't extract multi-part tar archives. But split is installed on most derivate. cheers Simon -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHDLxeEMN/lNE/wrwRAra5AKCJAmfl0J1A92rM0T+nRPyqULhIRACghes0 Zbz8kVeCJM/N9/mBIL2JPdk= =AADE -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/10/07 04:43, Sean Zimmermann wrote: Hello. I frequently work with large tar archives that often need to be split into smaller pieces. Up until now, I've used tar -m to create multi-part archives. I - -M recently read that I can use split to do the same thing. Is there an advantage or disadvantage to using split over tar -m? Since split(1) can take it's input from stdin, ISTM that compati- bility should be a driving force in your decision. Also, is there some way to index a large tar file, so if I want to extract a file at the end of a large archive, tar doesn't have to seek through the entire archive to get the file? tar(1) means Tape ARchive. Since tape drives are sequential beasts, there's not much purpose in indexing tarballs. OTOH, ar-balls appears to create internal indexes. Thank you for any help. - -- Ron Johnson, Jr. Jefferson LA USA Give a man a fish, and he eats for a day. Hit him with a fish, and he goes away for good! -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHDMQNS9HxQb37XmcRAgIBAKDGoild3yvehP4INaU1o9yNZNHJrgCgyohe MVGQnw5s5KBJ6+gyrRCtgBo= =R5Nv -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Regarding tar and split
On Wed, Oct 10, 2007 at 09:43:33AM +, Sean Zimmermann wrote: Also, is there some way to index a large tar file, so if I want to extract a file at the end of a large archive, tar doesn't have to seek through the entire archive to get the file? Tar archive isn't designed for this, since its designed for sequential devices. Have you considered using another archive format? Perhaps iso? You can split and join iso files, mount them with loop mount, compress, burn, whatever. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
serveur sous sarge: problème de tar sur le contenu d'un LV
Bonjour, J'ai un serveur sous debian sarge (pas encore eu le temps de le passer sous etch lol). J'utilise raid + lvm et donc j'ai un LV en reiserfs dédié aux mails. J'ai voulu faire un tar du contenu de ce LV, pour sauvegarder l'ensemble de mes mails. J'ai fait comme ceci: Création d'un snapshot de mon LV Mail lvcreate --snapshot --size 200M --name Sauvegarde_Mails /dev/VG0/Mail Montage de ce LV: mount /dev/mapper/VG0-Sauvegarde_Mails /mnt/sauvegarde_mails/ Je me place à l'endoit où est monté le snapshot cd /mnt/sauvegarde_mails/ Je fais mon tar et je stocke le tar.gz dans /mnt/sauvegardes_systeme tar -czvf /mnt/sauvegardes_systeme/Mails.tgz . Mais vers la fin du tar, voila un exemple de ce que j'obtiens: tar: ./xxx/joelle/Maildir/.CB News/cur: ne peut stat: Permission non acco rdée tar: ./xxx/joelle/Maildir/.CB News/new: ne peut stat: Permission non acco rdée tar: ./xxx/joelle/Maildir/.CB News/tmp: ne peut stat: Permission non acco rdée tar: ./xxx/joelle/Maildir/.CB News/courierimapuiddb: ne peut stat: Permis sion non accordée tar: ./xxx/joelle/Maildir/.CB News/courierimapkeywords: ne peut stat: Per mission non accordée tar: ./xxx/joelle/Maildir/.CB News/courierimapacl: ne peut stat: Permissi on non accordée tar: ./xxx/joelle/Maildir/.CB News/maildirfolder: ne peut stat: Permissio n non accordée Je précise que lors de la création du snapshot, et de la sauvegarde, je ne démonte pas mon LV Mail, car il me semble bien qu'un snapshot, ca soit fait pour ca. Sinon j'ai quand même démonté mon LV Mail, et j'ai fait un: reiserfsck /dev/VG0/Mail mais ca se termine en disant: No corruptions found There are on the filesystem: Leaves 41641 Internal nodes 278 Directories 820 Other files 145754 Data block pointers 893582 (0 of them are zero) Safe links 0 ### reiserfsck finished at Sun Sep 2 15:38:26 2007 Au final, j'ai bien mon tar.gz, mais bon c'est pas normal, je pense d'avoir tous ces messages d'erreurs non? Merci :-) -- Lisez la FAQ de la liste avant de poser une question : http://wiki.debian.net/?DebianFrench Vous pouvez aussi ajouter le mot ``spam'' dans vos champs From et Reply-To: To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Remover alguns tipos de arquivos do backup-tar(--exclude-from)
Pois é, depois de algum tempo percebí que alguns tipos de arquivos não estavam sendo removidos do backup, eu uso como parametro no tar a opção --exclude-from=/listas/de/arquivos_a_serem_removidos.txt para retirar do .tar.gz arquivos como mp3, avi,temporarios,etc... Para isso o /listas/de/arquivos_a_serem_removidos.txt tem esse conteudo : *.KEY* *.exe *.zip *.flc *.SMF *.tmp *.$* *.~* *.bak *.dcu *.box *.swp *.ac$ *.iso *.mp3 SWAP swap ~*.* *.log */upload/* */amostra/* backup/* Mas simplesmente não está funcionando, por exemplo, ao restaurar um backup recente, notei que haviam arquivos .mp3 lá, e não deveriam ter existido. Onde foi que errei ? Alguem saberia me dizer ?
Re: Remover alguns tipos de arquivos do backup-tar(--exclude-from)
Em 03/09/07, hamacker[EMAIL PROTECTED] escreveu: Pois é, depois de algum tempo percebí que alguns tipos de arquivos não estavam sendo removidos do backup, eu uso como parametro no tar a opção --exclude-from=/listas/de/arquivos_a_serem_removidos.txt para retirar do .tar.gz arquivos como mp3, avi,temporarios,etc... Para isso o /listas/de/arquivos_a_serem_removidos.txt tem esse conteudo : *.KEY* *.mp3 SWAP swap ~*.* *.log */upload/* */amostra/* backup/* Mas simplesmente não está funcionando, por exemplo, ao restaurar um backup recente, notei que haviam arquivos .mp3 lá, e não deveriam ter existido. Onde foi que errei ? Alguem saberia me dizer ? Você rodou o tar por linha de comando ou em um script ? Eu tive um problema, uma certa vez, porque o tar não achava o exclude corretamente (tinha posto em ~/bin e o exclude não achava o ~). Só rodando o tar na linha de comando é que via o erro :( -- Thadeu Penna Prof.Associado - Instituto de Física Universidade Federal Fluminense http://profs.if.uff.br/tjpp/blog
Re: Remover alguns tipos de arquivos do backup-tar(--exclude-from)
Rodo a partir dum script, e o caminho usado para o exclude é literal. a permissão está certa, já olhei as manpages, google e parece tudo OK. Uma unica diferença é que vejo em alguns lugares algo como \*.mp3 com uma barra no inicio, até fiz com ela na frente como simulação e deu o mesmo resultado. []'s Em 03/09/07, Thadeu Penna[EMAIL PROTECTED] escreveu: Você rodou o tar por linha de comando ou em um script ? Eu tive um problema, uma certa vez, porque o tar não achava o exclude corretamente (tinha posto em ~/bin e o exclude não achava o ~). Só rodando o tar na linha de comando é que via o erro :(
Re: splitting tar files and zero padding
On 06/12/2007 11:09 PM, Michael Gilbert wrote: hello, Hello Michael. my goal is to eliminate (or split out) the last file from a tar archive, and i'm having trouble understanding the extra bytes added and zero padding that is done to tar files. let me illustrate what i'm doing. [...] but the bigger concern is why do 1k files have 536 extra bytes, but 100k files have 864 extra bytes? is there a linear relation? and how can i automate the process of splitting out the last file in the tar archive? What is the larger problem that you're trying to solve? Why can't you just use the tar utility (man tar) to do this? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
splitting tar files and zero padding
hello, my goal is to eliminate (or split out) the last file from a tar archive, and i'm having trouble understanding the extra bytes added and zero padding that is done to tar files. let me illustrate what i'm doing. first, i'll create some sample files $ dd if=/dev/urandom of=file1 count=100 bs=1000 $ dd if=/dev/urandom of=file2 count=100 bs=1000 $ dd if=/dev/urandom of=file3 count=100 bs=1000 $ dd if=/dev/urandom of=file4 count=100 bs=1000 and add them to a tar file $ tar cf test.tar file1 file2 file3 file4 $ tar tf test.tar -rw-r--r-- a/a 10 2007-06-12 23:07 file1 -rw-r--r-- a/a 10 2007-06-12 23:07 file2 -rw-r--r-- a/a 10 2007-06-12 23:07 file3 -rw-r--r-- a/a 10 2007-06-12 23:06 file4 i can now use a hex editor to find that file2 starts at byte 100864 (864 bytes more than file1 originally occupied), so file4 should start at 302592, and if i want to eliminate it, i can use gnu split $ split -b 302592 test.tar $ tar tf xaa -rw-r--r-- a/a 10 2007-06-12 23:07 file1 -rw-r--r-- a/a 10 2007-06-12 23:07 file2 -rw-r--r-- a/a 10 2007-06-12 23:07 file3 which is exactly what i want. the last file is no longer a part of the tar archive. as a check, if i extract these files and diff them with the originals, i see that they are the same, so that is good. my question is, how can i automate this? at first i assumed that all files would have 864 extra bytes, but that isn't true. if i start with 1000 byte files, the extra size is instead 536 bytes $ dd if=/dev/urandom of=file1 count=1 bs=1000 $ dd if=/dev/urandom of=file2 count=1 bs=1000 $ dd if=/dev/urandom of=file3 count=1 bs=1000 $ dd if=/dev/urandom of=file4 count=1 bs=1000 $ tar cf test.tar file1 file2 file3 file4 to get the first three files, i split at 1536*3 = 4608 $ split -b 4608 test.tar $ tar tvf xaa -rw-r--r-- a/a 1000 2007-06-12 23:42 file1 -rw-r--r-- a/a 1000 2007-06-12 23:42 file2 -rw-r--r-- a/a 1000 2007-06-12 23:42 file3 again, i can extract and diff these files and find that they match. another strange observation is that this file should only be of size 1536*4 = 6144 bytes, but instead it is zero padded to 10240 bytes. $ ls -l test.tar -rw-r--r-- 1 a a 10240 2007-06-12 23:07 test.tar maybe the tar file block size is 10240 and the hence the total size must always be a multiple of that? this is confirmed for the larger file -- the tar file ended up being 409600 bytes, which is a multiple of 10240, even though it only needed to be 100864*4 = 403456 bytes. i don't understand what is going on here with the zero padding. why are there extra zeros padded to the end of the tar file? are they necessary? but the bigger concern is why do 1k files have 536 extra bytes, but 100k files have 864 extra bytes? is there a linear relation? and how can i automate the process of splitting out the last file in the tar archive? i know that this isn't really debian-specific, but any ideas or suggestions would be greatly appreciated. thanks. mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: keeping tar quiet in script
Le samedi 31 mars 2007 21:55, Jorge Peixoto de Morais Neto a écrit : I'm using a simple script for making backups with tar. I can't make tar quiet, so cron keeps mailing me 'Removing leading `/' from member names' . Adding /dev/null doesn't help. What can I do to catch tar's output and keep it from shouting all over the place? a /dev/null redirects stdout to /dev/null, but stderr is left untouched. a /dev/null redirects both stdout and stderr to /dev/null. redirecting stderr is good but will also discard other possibly helpful error messages if something goes wrong. You can simply avoid this particular one with something like this : tar -cf archive -C/ . another trick is to redirect the whole script to some log file (or /dev/null if you're fearless) by putting this at its beggining : LOGFILE=... exec $LOGFILE 21 -- Cédric Lucantis
keeping tar quiet in script
Hi all, I'm using a simple script for making backups with tar. I can't make tar quiet, so cron keeps mailing me 'Removing leading `/' from member names' . Adding /dev/null doesn't help. What can I do to catch tar's output and keep it from shouting all over the place? Tnx, Peter -- Never argue with idiots; they'll drag you down to their own level and beat you on experience.
Re: keeping tar quiet in script
Scribit Peter Teunissen dies 31/03/2007 hora 21:48: Adding /dev/null doesn't help. What can I do to catch tar's output and keep it from shouting all over the place? What about the classical 1 /dev/null 21? Quicky, Pierre -- [EMAIL PROTECTED] OpenPGP 0xD9D50D8A signature.asc Description: Digital signature
Re: keeping tar quiet in script
I'm using a simple script for making backups with tar. I can't make tar quiet, so cron keeps mailing me 'Removing leading `/' from member names' . Adding /dev/null doesn't help. What can I do to catch tar's output and keep it from shouting all over the place? a /dev/null redirects stdout to /dev/null, but stderr is left untouched. a /dev/null redirects both stdout and stderr to /dev/null. A google search for redirection bash brings you here: Tnx, Peter -- Never argue with idiots; they'll drag you down to their own level and beat you on experience. -- Software is like sex: it is better when it is free.
Re: keeping tar quiet in script
On 3/31/07, Jorge Peixoto de Morais Neto [EMAIL PROTECTED] wrote: I'm using a simple script for making backups with tar. I can't make tar quiet, so cron keeps mailing me 'Removing leading `/' from member names' . Adding /dev/null doesn't help. What can I do to catch tar's output and keep it from shouting all over the place? a /dev/null redirects stdout to /dev/null, but stderr is left untouched. a /dev/null redirects both stdout and stderr to /dev/null. A google search for redirection bash brings you here: I'm sorry, hit send by accident. I meant: A google search for [redirection bash] brings you here: http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html Tnx, Peter -- Never argue with idiots; they'll drag you down to their own level and beat you on experience. -- Software is like sex: it is better when it is free. -- Software is like sex: it is better when it is free.
Re: keeping tar quiet in script
What about the classical 1 /dev/null 21? This probably has identical behavior identical to /dev/null, but is longer to type. /dev/null seems less portable. Here I have bash and dash, and /dev/null does not work under dash. 1 /dev/null 21 works everywhere. -- Software is like sex: it is better when it is free.
Re: keeping tar quiet in script
On 31-mrt-2007, at 21:56, Jorge Peixoto de Morais Neto wrote: On 3/31/07, Jorge Peixoto de Morais Neto [EMAIL PROTECTED] wrote: I'm using a simple script for making backups with tar. I can't make tar quiet, so cron keeps mailing me 'Removing leading `/' from member names' . Adding /dev/null doesn't help. What can I do to catch tar's output and keep it from shouting all over the place? a /dev/null redirects stdout to /dev/null, but stderr is left untouched. a /dev/null redirects both stdout and stderr to /dev/null. Yep, that did the trick A google search for [redirection bash] brings you here: http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html Will look at this, looks better than the howto I used until now. Tnx, Peter
Re: keeping tar quiet in script
On Sat, Mar 31, 2007 at 05:01:31PM -0300, Jorge Peixoto de Morais Neto wrote: What about the classical 1 /dev/null 21? This probably has identical behavior identical to /dev/null, but is longer to type. /dev/null seems less portable. Here I have bash and dash, and /dev/null does not work under dash. 1 /dev/null 21 works everywhere. The latter is POSIX-compliant. I believe that the notation is a bashism. Regards, -Roberto -- Roberto C. Sánchez http://people.connexer.com/~roberto http://www.connexer.com signature.asc Description: Digital signature
Re: A silly question about tar
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, ls -1 is not necessary. Did some reading on this, and it turns out that when standard output of ls is anything but a terminal it automatically defaults to 'ls -1'. So as soon as you put a pipe at the end of ls the -1 is assumed. -- Regards, Tyler Smit -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: A silly question about tar
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 test subdirectory containing all nine files. The argument to ls, ls -1 is not necessary. Did some reading on this, and it turns out that when standard output of ls is anything but a terminal it automatically defaults to 'ls -1'. So as soon as you put a pipe at the end of ls the -1 is assumed. I just didn't want to assume anything. I wanted one line at a time, so I specified it. Otherwise, an undocumented change to ls could cause a problem that isn't apparent. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: A silly question about tar [solved]
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 the system you're using. Thanks, list! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: tar syntax and backing up
Le dimanche 18 mars 2007 17:14, Tyler Smith a écrit : Hi, Related to another post concerning the possible demise of my harddrive, I thought I'd better confirm with wiser people that my backup plan is doing what I think it's doing. I've got a full backup of all my important data in tar.gz files on my harddrive and burned onto cds. I want to backup everything that has been modified since the last full backup, so I use: tar --newer-mtime ../mail4Mar07.tar.gz -cvzf 18Mar2007.tar.gz \ /home/tyler/bibtex/ /home/tyler/thesis/ /home/tyler/analysis/ \ /home/tyler/grassdata/ /home/tyler/Mail/ As far as I can tell from the output and tar -t this is correct, but I'd hate to find out after my drive dies that I'm mistaken... I'd rather suggest to use incremental backups, because they also check for other metadatas (file size, dev inode...) as the date is not always enough, and also because they will remove deleted files when restoring (I don't think newer-mtime does it, but I never used it so I may be wrong). To do it, choose a location to store snapshot files and: # do a level 0 (full dump) rm -f snapshot0 tar --listed-incremental=snapshot0 -czf dump0.tar.gz ... # do a level 1 cp -f snapshot0 snapshot1 tar --listed-incremental=snapshot1 -czf dump1.tar.gz ... # do a level 2 cp -f snapshot1 snapshot2 tar --listed-incremental=snapshot2 -czf dump2.tar.gz ... # ... And to restore: tar --listed-incremental=/dev/null -xzf dump0.tar.gz tar --listed-incremental=/dev/null -xzf dump1.tar.gz tar --listed-incremental=/dev/null -xzf dump2.tar.gz There are many backup tools which can do this for you, I personnaly choose Amanda because it has a good estimation feature to decide automatically which level should be done, but there are probably many other good choices. If you want to do it by hand anyway, also read the tar docs for some useful parameters, like --preserve-permissions, --numeric-owner and things like that. The funny thing about tar is that some docs are in the man page but not in the info and vice versa, so it's probably a good idea to read them both. Enjoy :) -- Cédric Lucantis
Re: A silly question about tar
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 your machine. I don't know about orange. -- Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ 100% accessible validated (X)HTML - Blog: http://www.vinc17.org/blog/ Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: A silly question about tar [solved]
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 probably makes that unnecessary if you can install packages on the system you're using. Thanks, list! Watch out you'll get addicted to unp. You will long for it on all platforms. -- greg, [EMAIL PROTECTED] Novell's Directory Services is a competitive product to Microsoft's Active Directory in much the same way that the Saturn V is a competitive product to those dinky little model rockets that kids light off down at the playfield. -- Thane Walkup -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: A silly question about tar
i think it's best to use the find command - something like that find . -type f -name *.tar.bz2 -exec tar xjf {} \; ps: try this first to check u get the filelist u wanted: find . -type f -name *.tar.bz2 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: Not found in archive tar: beryl-plugins-0.2.0.tar.bz2: Not found in archive tar: beryl-plugins-unsupported-0.2.0.tar.bz2: Not found in archive tar: beryl-settings-0.2.0.tar.bz2: Not found in archive tar: beryl-settings-bindings-0.2.0.tar.bz2: Not found in archive tar: beryl-settings-simple-0.2.0.tar.bz2: Not found in archive tar: emerald-0.2.0.tar.bz2: Not found in archive tar: emerald-themes-0.2.0.tar.bz2: Not found in archive tar: heliodor-0.2.0.tar.bz2: Not found in archive tar: Error exit delayed from previous errors Not only did it completely fail, but it skipped the first file in the directory, aquamarine-0.2.0.tar.bz2. But if I run the same command on a single file instead of a wildcard, it works fine. Am I doing something wrong? Why can't tar handle a wildcard list like that? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] 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]
tar syntax and backing up
Hi, Related to another post concerning the possible demise of my harddrive, I thought I'd better confirm with wiser people that my backup plan is doing what I think it's doing. I've got a full backup of all my important data in tar.gz files on my harddrive and burned onto cds. I want to backup everything that has been modified since the last full backup, so I use: tar --newer-mtime ../mail4Mar07.tar.gz -cvzf 18Mar2007.tar.gz \ /home/tyler/bibtex/ /home/tyler/thesis/ /home/tyler/analysis/ \ /home/tyler/grassdata/ /home/tyler/Mail/ As far as I can tell from the output and tar -t this is correct, but I'd hate to find out after my drive dies that I'm mistaken... Thanks! -- Regards, Tyler Smit -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: tar syntax and backing up
On Sun, Mar 18, 2007 at 04:14:39PM +, Tyler Smith wrote: Hi, Related to another post concerning the possible demise of my harddrive, I thought I'd better confirm with wiser people that my backup plan is doing what I think it's doing. I've got a full backup of all my important data in tar.gz files on my harddrive and burned onto cds. I want to backup everything that has been modified since the last full backup, so I use: tar --newer-mtime ../mail4Mar07.tar.gz -cvzf 18Mar2007.tar.gz \ /home/tyler/bibtex/ /home/tyler/thesis/ /home/tyler/analysis/ \ /home/tyler/grassdata/ /home/tyler/Mail/ If you have more than one machine on your LAN, this is what you want: http://www.mikerubel.org/computers/rsync_snapshots/ Have machine A take snapshots of B and vice versa. Regards, -Roberto -- Roberto C. Sánchez http://people.connexer.com/~roberto http://www.connexer.com signature.asc Description: Digital signature
Re: tar syntax and backing up
On Sun, Mar 18, 2007 at 04:14:39PM +, Tyler Smith wrote: Hi, Related to another post concerning the possible demise of my harddrive, I thought I'd better confirm with wiser people that my backup plan is doing what I think it's doing. I've got a full backup of all my important data in tar.gz files on my harddrive and burned onto cds. I want to backup everything that has been modified since the last full backup, so I use: I would suggest, from painful experience, that in addition to your full backup, you backup in plain text to some removeable media: /boot/grub/menu.lst /etc/ (if going to something big like USB stick) or if going to a floppy: /etc/fstab /etc/modules /etc/hosts /etc/inittab /etc/network/interfaces /etc/modutils/ (except arch) /etc/modprobe.d/ /etc/resolv.conf if using ppp: /etc/ppp/ /etc/chatscripts/ output of: /sbin/fdisk -lu for each drive /sbin/sfdisk -d for each drive /usr/bin/dpkg --get-selections Then last (just incase drive dies now) output of: /bin/df --si /usr/bin/du -c --si --max-depth=1 /* Personally, I have /boot/grub/menu.lst printed out. Good luck. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
A silly question about tar
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 archive tar: beryl-plugins-unsupported-0.2.0.tar.bz2: Not found in archive tar: beryl-settings-0.2.0.tar.bz2: Not found in archive tar: beryl-settings-bindings-0.2.0.tar.bz2: Not found in archive tar: beryl-settings-simple-0.2.0.tar.bz2: Not found in archive tar: emerald-0.2.0.tar.bz2: Not found in archive tar: emerald-themes-0.2.0.tar.bz2: Not found in archive tar: heliodor-0.2.0.tar.bz2: Not found in archive tar: Error exit delayed from previous errors Not only did it completely fail, but it skipped the first file in the directory, aquamarine-0.2.0.tar.bz2. But if I run the same command on a single file instead of a wildcard, it works fine. Am I doing something wrong? Why can't tar handle a wildcard list like that? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: A silly question about tar
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 UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: A silly question about tar
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 already exist? 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 () { for archive in $@; do case $archive in *.tar* | *.t?z) case $archive in *.gz | *tgz | *.Z) TARFLAGS=--use-compress-prog gzip ;; *.bz | *.bz2 | *tbz) TARFLAGS=--use-compress-prog bzip2 ;; *) TARFLAGS= ;; esac; tar xf $archive ${TARFLAGS} ;; *.zip | *.ZIP) unzip -q $archive ;; *.deb) dpkg-deb -x $archive . ;; *.rar) unrar x $archive ;; *.cpio) cpio --extract --make-directories --file=$archive ;; *.cpio.gz) gzip -dc $archive | cpio --extract --make-directories ;; *) echo Unknown archive format 12 ;; esac; done } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: A silly question about tar
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 be a good idea? Does anything like that already exist? 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 receives, xargs will tack it to the end of the command line you give it (in the example, it will be tacked on after the -f). I have not tested this, YMMV. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]