[LBo] howto generate file names with dates for TAR backups?
Andrew Henry
adhenry at bredband.net
Mon Feb 5 12:54:23 CET 2007
I don't know if this is covered in the course as I'm only on chapter 3
but I have a question about incremental backups with TAR.
I want to create a backup file using the current date and I know that I
can assign a variable to 'date' with the following in a script:
$timestamp=date (I think)
but I only want a portion of the date without spaces so that I can later
concatenate it to the file name:
backup-level0-[date].tar.
1. How to I truncate the date command?
2. How do I concatenate it to the end of my file name?
--andrew
--
GnuPG Key ID: ECB18ABA
Fingerprint: FDF3 91FC F5BC 1164 E217 315E 337E 219B ECB1 8ABA
More information about the QnA
mailing list