Quote |
I found this little piece of code that locates a back in time date. Would this be a better approach to delete the week old file? |
Code Sample |
tar zcvf /archive_folder/"my_backup_file_name-`date`" /folder_to_be_backed_up find /archive_folder/* -mtime +7 -exec rm {} \; |
Quote |
. I'm not sure what the date % options need to be to get an acceptable file name format with a complete date. |
Code Sample |
tar zcf /archive_folder/"my_backup_file_name-`date +%Y%j`".tar.gz /folder_to_be_backed_up find /archive_folder/* -mtime +7 -exec rm {} \; |
Quote (mikshaw @ Jan. 22 2008,07:37) |
That OSX script is terrible =o) |