Joined: July 2006
||Posted: Jan. 22 2008,19:53
If I get what you mean, it can be something like (using easy-to-read/change variables to see what it does):
Basically this will use filenames based on the day of the week... and will remove last week's if it exists before making a .tar.gz out of your specified folder.
|Code Sample |
rm -f "$backup_name"
tar zcvf "$backup_name" "$folder_to_backup"
At first glance, I think it was a reference to the if-statements.
|For instance I have no idea why the OSX script would be bad.|
fyi: this seems more of a scripting thread than a mydsl one...?