tarring find results on hp-ux
$ find /tmp/a1 /tmp/a1 /tmp/a1/b2 /tmp/a1/b1 /tmp/a1/b1/x1 simply trying find /tmp/a1 -exec tar -cvf dirall.tar {} \; simply doesn't work any help ...
$ find /tmp/a1 /tmp/a1 /tmp/a1/b2 /tmp/a1/b1 /tmp/a1/b1/x1 simply trying find /tmp/a1 -exec tar -cvf dirall.tar {} \; simply doesn't work any help ...
I just learned that cpio has three modes: copy-out, copy-in and pass-through. I was wondering what are the advantages and disadvantages of cpio under copy-out and copy-in modes over tar. When is it better to use cpio and when to use tar? Similar question for cpio under pass-through mode versus cp. Thanks and regards! ...
I have an nascent iPad application, which stores "documents" internally on the device in the file system as a series of distinct files in a folder. I'd like to try incorporating an import/export function through iTunes, using the features for OS 3.2 for this. I want to put all the document pieces that I keep internally into one containe...
I've got many files that I want to store in a single archive file. My first approach was to store the files in a gzipped tarball. The problem is, that I've to rewrite the whole archive if a single file is added. I could get rid of the gzip compression, but adding a file would still be expensive. What other archive format would you sugge...
I need to come up with a file format for new application I am writing. This file will need to hold a bunch other text files which are mostly text but can be other formats as well. Naturally, a compressed tar file seems to fit the bill. The problem is that I want to be able to retrieve some data from the file very quickly and getting just...
Part of my build process is to create a tar file of an input directory, located at src/bundle/bundle. In src/bundle/SConscript: Import('*') bundleDir = Dir("bundle") jsontar = Command("bundle.tar", bundleDir, "/home/dbender/bin/mkvgconf $SOURCE $TARGET") in my SConstruct: SConscript(Split('src/bundle/SConscript'), ...
I like to keep my Makefiles flexible and multifunctional. One of the tasks I usually add to make command is tar, for example the following instruction does the job: tar: tar -cvf $(PROGNAME).tar $(SRCS) Makefile My question is: How can CMake be used to generate personalized commands like tar? I would like to see some code samples....
My source tree contains several directories which are using git source control and I need to tarball the whole tree excluding any references to the git metadata or custom log files. I thought I'd have a go using a combo of find/egrep/xargs/tar but somehow the tar file contains the .git directories and the *.log files. This is what I ha...
Greetings, By using Django, I want to generate a tar.gz which contains the files below, and render a tar.gz file: Content from an Ubuntu server: /home/user/myfolder /home/user/image.jpg an xml file from www.mysite.com/foo.xml (which is a dynamicly generated xml file. Rendered tar.gz file myfolder/ content/ ..... ...
I'm creating a tar file from a directory as such /home/user/bla/mydir/ Now I want to create a tar.gz file which starts from mydir/, not having directory list of the archieve content listing starting from /home/user/bla/mydir/. How can this be done? Here is my original one: tar = tarfile.open("/home/user/mytar.tar.gz", "w:gz") tar...
Given URL of an archive (e.g. a zip file) Full name (including path) of a file inside that archive I'm looking for a way (preferably in Java) to create a local copy of that file, without downloading the entire archive first. From my (limited) understanding it should be possible, though I have no idea how to do that. I've been using ...
I am running a PHP script that gets me the absolute paths of files I want to tar up. This is the syntax I have: tar -cf tarname.tar -C /www/path/path/file1.txt /www/path/path2/path3/file2.xls when I untar it create the absolute path to the files. I do I get just /path with everything under it to show? ...
i need to create a lzma file with the existing .tar file and another metadata file to further create a zip file. ...
Hi I would like some help in creating a loop that will take one of my files extension .tar.gz unzip it untar it and search the files inside (with extension .tlg) using grep -a >> output.text. In the outout.text i will require the matching data as well as the name of the file and parent tar it came from one this search has been perfo...
I am a fresher to .net. is that possible to create a tar.gz using .net enviroment ? if yes how ? ...
This is the code i'm using to untar a file grep on the contents of the files within the tar and then delete the untared files. I dont have enough space to untar all files at once. the issue i'm having is with the for f in `ls | grep -v *.gz line this is supposed to find the files that have come out of the tar and can be identified by no...
Hi, I'm writing a script that can tar any given folder and place it in my home/bkp. the script will read like this, tar czvf /home/me/bkp/`basename $1`.tar.gz $1 well now, to use it., backup-script.sh /home/me/folder/sub/to-be-backed-up/ Well and good. Now when I untar it, it creates home/me/folder/sub/to-be-backed-up/*file...
I'm struggling to deliver an project to a client. The job is to package files into an archive; simple, right? Well, the files have (and must have) french characters in their names. I'm archiving from the linux command line, she's opening from the desktop on windows. At first, I tried 'zip', and it didn't work out. Character support ap...
Hi! I want to run a cron and compress my /var/log directory every hour to a tar file.. so I can backup that file. What would happen to the log files the exact moment I run the tar command, will I miss those log lines or would the different softwares running and using /var/log wait, or will the tar be corrupt etc? I have a busy webserv...
I don't know if this actually belongs here, maybe this question is more suitable to superuser. Well, last week I've wrote a small shell-script, where I used the tar command. As I read the man on the opengroup page about tar, I saw that it was marked as legacy, and that it is recommended to not use it any more. Does anyone knows why? And ...