M
Matthew Lincoln
I would like to create a tar archive with the well known tar command
tar czvf "/usr/local/user234/bkp.tar.gz" /home/users/pmiller/
It works. However I would like to automatically append a timestamp whenever I call this command
in a (perl) script.
The created archive file name should look like
bkp-20071109-1523.tar.gz
Where the format is preferred as YYYYMMDD-HHMM
Does Gnu-tar offer such an automatic timestamp appending?
If not: Is there a (short) work around (in perl) which let me create such a timestamp?
Thank you
Matthew
tar czvf "/usr/local/user234/bkp.tar.gz" /home/users/pmiller/
It works. However I would like to automatically append a timestamp whenever I call this command
in a (perl) script.
The created archive file name should look like
bkp-20071109-1523.tar.gz
Where the format is preferred as YYYYMMDD-HHMM
Does Gnu-tar offer such an automatic timestamp appending?
If not: Is there a (short) work around (in perl) which let me create such a timestamp?
Thank you
Matthew