Compress and Archive a file
Posted: Wed Sep 26, 2007 7:56 am
Hi,
I have a requirement where i after the Job is run successfully ,I have to compress the file and Archive it.
Right now i am just using a Execute command stage to Archive the file by using mv #Path#/file1.txt #ArchivePath#/file1.'date +"%Y%m%d"`.txt
without compressing it.
How can i compress the file and archive it with a date stamp.
Thanks in advance.
I have a requirement where i after the Job is run successfully ,I have to compress the file and Archive it.
Right now i am just using a Execute command stage to Archive the file by using mv #Path#/file1.txt #ArchivePath#/file1.'date +"%Y%m%d"`.txt
without compressing it.
How can i compress the file and archive it with a date stamp.
Thanks in advance.