How to Write a Backup Shell Script using Tar and Gnu Zip

Happy New Year! As promised I made a rudimentary Linux shell script utilizing the tar and gzip commands to archive or make backups. If you’re new to shell scripting you might like to read this articles. http://www.dartmouth.edu/~rc/classes/ksh/print_pages.shtmlhttp://tldp.org/LDP/abs/html/ If you’re lazy like I am. Don’t worry I’ll explain parts of the code. Our goal is to make a shell script to create backups (in tar-gzip versions) of the folders we want unto a safe location on a disk. We want to be able to list all the folders and have the script loop through them. Now that’s settled, we can proceed …

Continue Reading