Rather than have your script "tar cvfj /home/ron/crap/" have the script do this:
cd /home/ron/ && tar cvfj ./crap/
I have a minor question. I am learning some shell scripting, and wrote a little thing to back up some directories as TAR archives. Let's say I want to back up /home/ron/crap/ (so I really only want the 'crap' directory backed up) for some reason, when I untar the archive, it does the whole tree, starting at /home/. Any ideas? Oh, the script uses 'tar -cvjf'.
Asus A8V Deluxe Mobo
AMD Athlon64 X2 4400 -939
2GB Crucial DDR3200 Dual-Channel
ATi AiW 9800 Pro 128DDR
Audigy2 ZS
Sony DRU-810 DVD+RW DL
3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
1 x Maxtor MaxLine SATA 120Gb 16Mb Cache
Rather than have your script "tar cvfj /home/ron/crap/" have the script do this:
cd /home/ron/ && tar cvfj ./crap/
Asus A8V Deluxe Mobo
AMD Athlon64 X2 4400 -939
2GB Crucial DDR3200 Dual-Channel
ATi AiW 9800 Pro 128DDR
Audigy2 ZS
Sony DRU-810 DVD+RW DL
3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
1 x Maxtor MaxLine SATA 120Gb 16Mb Cache
Bookmarks