November 2010 Archives
You may want to add the day’s date to a backup file, especially if you are running it as a cron job. The following code example will Gzip Tar the files into a compressed archive with the date inserted:
tar czvf /backups/backup-date +%y%m%d.tgz /files-to-backup/.
where:
%d = day (2 digit) %m = month (2 digit) %y = year (2 digit)