Forum Moderators: bakedjake

Message Too Old, No Replies

cronjobs

help in entering dates

         

tozawacchi

1:35 am on Apr 3, 2002 (gmt 0)



Hello all,

I am trying to run a cronjob to take backup files of a directory every day which I had no trouble doing. What I want to do now is to have it automatically add the current date of when the backup was taken onto the filename. Is this possible? Below is the file that I have created.

-----------------------------------------------
#Execute backup files located in the following directory:
#/usr/home/files
* * * * * tar czvf BKSRC.tar.gz /usr/home/files

littleman

1:55 am on Apr 3, 2002 (gmt 0)



Check out Sugarkane's post in this thread [webmasterworld.com], he has a little shell script that you could probably barrow from to get what you need done.