Need a quick Script - TechRepublic
General discussion
June 6, 2000 at 11:33 AM
pcammuso

Need a quick Script

by pcammuso . Updated 26 years ago

I am not familiar with Unix Shell scripting so I was hoping someone could help me create a simple script.

I need to tar the entire contents of directory /usr/local/backup into a file.
I would like the file to be named
date_backup.tar (ie 06jun2000_backup.tar)
Then take that filename and compress it to a .Z file then move that filename onto another filesystem /disk1_backup

That’s it! Also, if you could recommend a good, easy to understand Unix Shell Scripting Book.

For you guru’s, I’m sure this isn’t tough, so it’s a quick way to get 250 points

Thanks
Paul

This discussion is locked

All Comments