Obviously, you'll have to change the file and directories. This is just an example.
[ryan@a564n cmpe646]$ cat cmpe646_backup.sh
#!/bin/sh
date=$(date +%s)
tar -cf /home/cmpe646/cmpe646_project_backup_$date.tar /home/cmpe646/*/*.h* /home/cmpe646/*/*.c* /home/cmpe646/*/*.bench*
bzip2 /home/cmpe646/cmpe646_project_backup_$date.tar
exit 0
No comments:
Post a Comment