From my tests so far on OSX 10.8 and CentOS 5.5, it looks like tar automatically deduces the compression type of an archive, i.e., I could do tar -xf <compressed archive> instead of doing tar -jxf <bzip2 compressed archive> or tar -zxf <gzip compressed archive>.
I would like to know if I can depend on this automatic compression detection feature of tar, or is this feature new?
How can I ensure the folder that I tar and compress is good to be archive in DVD or tape? Must I uncompress and untar the file, or there is any way to tell the integerity of the compressed file before send to archive? I have bad experience on this, which the archive compressed file cold not be opened, the error message is unexpected EOF. I guess it could be incomplete archive process.
I have just installed Free Arc utility for compression from : http://www.freearc.org/Download.aspx
and it works smoothly but in command Line mode.
Commands:
a add files to archive
c add comment to archive
ch modify archive (recompress, encrypt and so on)
create create new archive
cw write archive comment to file
d delete files from archive
e
I have to handle files that come as uncompressed text files or in various archive types (.gz, .zip, .tar.gz, bz2...). I want to process their content piped to another command. Is there a tool that detects whether a file is compressed and prints it content uncompressed? The best I could find is a combination of zcat (some archive types) and cat (non-compressed files).
Howdy,
So what I am looking to do is combine an archive and a script file.
This tutorial describes how to back up and restore your BIG-IP version 11.0.0 configuration data using a UCS configuration archive.
File Archive is your personal File Manager with simple UI and affable featuresÂ….
Creating and storing the files within the smartphone is longer a tedious process. File Archive will let you find, create and store up files and folders within seconds.
If you are looking for a potent file manager that can copy, move, rename, create files and folders, including multi-selection, ZIP etc.
I was taking a backup of a folder, where I used the following command :
sudo tar -zcvf www.tar.gz /var/www/
It successfully compressed, just for verifying the number of files in the compressed archive, and the directory I ran the following commands :
sudo tar -ztvf www.tar.gz | wc -l -> 186364
ls -R /var/www | wc -l -> 196440
How come the count is different, what am I missing ?
I have the followin directory structure:
base/
files/
archives/
scripts/
I want a script to run from scripts/, compress files that match results.*.log in files/ into a gzipped tar archive in archives/.
I'm trying the following command:
tar czfC ../archives/archive.tar.gz ../files results.*.log
But I get
tar: results.*.log: Cannot stat: No such file or directory
tar: Exiting with f