Basically, I want to be able to back up my all of my files on my current home directory, but when it backs them up, I would like the script to put the backups into different directories. I just need to know how to make the tar command back up my home directory contents, and then incorporate the date function into it. I was thinking it would be something like
#!/bin/bash
tar -zcf#Insert command to back up home directory here#.tar.gz
if [# Any file made in may of 2006 is found]
then
#Put it in a directory called may 06
and have that same setup for each month, if I can do this would it just be a bunch of if elif statements? Or would it be something completly different? thanks agian for all the help you are all giving.
