Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
A script that takes any number of directories as command line arguments and then lists the contents of each of these directories.
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.
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.
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?
I need to make a backup on my external hard drive. I looked both at rsync and incremental tar. The problem is that I want my backup to be compressed. With rsync I can only compress the data transfer, but not the result.
Just a short Tutorial today. It’s surprising how many people do not know this. To change the hostname under Linux, open a terminal window. Type the following code.
sudo nano /etc/hosts
and change the text to your new hostname. Changes will take effect on Restart.
I have a directory that is always going to be storing text files that are rarely (think weekly) used. Naturally this is a great place to use compression. However, rather than having to use tar ever time I want to access a file, I would love it if I could "mount a compressed folder".
I have a makefile that I use to compress pictures:
src=$(wildcard Photos/*.jpg) $(wildcard Photos/*.JPG)
out=$(subst Photos,Compressed,$(src))
all : $(out)
clean:
@rmdir -r Compressed
Compressed:
@mkdir Compressed
Compressed/%.jpg: Photos/%.jpg Compressed
@echo "Compressing $<"
@convert "$<" -scale 20% "$@"
Compressed/%.JPG: Photos/%.JPG Compressed
@echo "Compressin
Linux & Siblings(Android, WebOS, Maemo, etc)
0% (0 votes)
Microsoft Windows Mobile
0% (0 votes)
Symbian
0% (0 votes)
Apple iPhone OS
0% (0 votes)
BlackBerry OS
0% (0 votes)
Palm OS
0% (0 votes)
Other Propreitary OS
0% (0 votes)
Total votes: 0
Bookmark/Search this post with: