Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] Setting Date Variable for Cron Job
- Date: Mon, 17 Jun 2002 16:46:12 +0900 (JST)
- From: Charles Muller <acmuller@example.com>
- Subject: [tlug] Setting Date Variable for Cron Job
I am now trying to learn to use Cron to do various kinds of backups. I have worked my way through all of the standard copying and TARing kinds of backups, but I wanted to go one step further and create regular dated backups of some of my key configuration files. After a considerable amount of delving through the Linux books I have on hand, I came up with this sort of command (as an example): cp -f /home/chuck/.emacs /home/chuck/Documents/programming/emacs-`date+"%Y%m%d"`.txt But it the "%Y%m%d" does not convert into a date. Perhap I need to do some kind of variable declaration in a prior line? Or do I simply have the wrong syntax? Thanks, Chuck
- Follow-Ups:
- Re: [tlug] Setting Date Variable for Cron Job
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Japanese and Perl
- Next by Date: Re: [tlug] Setting Date Variable for Cron Job
- Previous by thread: [tlug] rebel cursor!
- Next by thread: Re: [tlug] Setting Date Variable for Cron Job
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links