How would you go about backing up just some files and subdirectories of a given directory to a compressed archive so that the tree structure could then easily be recreated from that archive.
Basically, rsync, with a little bit of scripting around (to select the files and folders I need) does the job, except I don't want to just copy.
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
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?
Howdy,
So what I am looking to do is combine an archive and a script file.
Well, I've never worked with .wav files, so the following may be incorrect; you'll have to verify this on your own.As I read things, .wav files may be compressed but the python Wave module only supports uncompressed files, so you should test that your file is uncompressed.if 'NONE' != musicfile.getcomptype(): sys.exit()If 'getcomptype' instead returns something like &
Hello
Yesterday in WindowsXP I compressed some files with 7-zip
Today in Ubuntu I can't open them.
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 ?
Hello!
After grabbing a cup of coffee and browsing my desktop, i quickly figured out that it is kind of messy here and there.
So I was wondering what tricks YOU have up your sleves for organizing files, what is your way of managing the eternal clutter of new files of gazziliion different types.
How do you archive files, do you need to archive files in your computer?
So many questions,