Adding Time Stamp to the Directory
The following code will be used to record the time stamp while the archive is created. Time stamp is the time on which the the event has been recorded by the computer. In this function the date, year, month details will be added to the archived file details that is the time on which the archive is createdPerl Code to Create Time Stamped Archive
$ tar cvzf `date +%Y%m%d`_mydir.tar.gz mydir
