Welcome to WebmasterWorld Guest from 54.167.185.18

Forum Moderators: bakedjake

Message Too Old, No Replies

cronjobs

help in entering dates

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

10+ Year Member



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

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

WebmasterWorld Senior Member littleman is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.