Pls help with little bash script

Joachim Backes backes at rhrk.uni-kl.de
Tue Sep 13 07:04:48 UTC 2005


On Tue, 2005-09-13 at 07:58 +0100, Paul Howarth wrote:
> On Tue, 2005-09-13 at 13:25 +0700, Fajar Priyanto wrote:
> > Hi all,
> > I want to automate backup process into crontab.
> > What I usually manually do is:
> > tar zcvf filename-date.tar.gz /somedirectory

For example: tar zcvf filename-$(date --iso-8601).tar.gz ....

Additionally, you may use a date format generating date _and_ time.


> > 
> > Can anyone help me with the script needed that can include the date in the 
> > filename?
> 
> What format would you like the date to be in? Give an example.
> 
> Paul.
> -- 
> Paul Howarth <paul at city-fan.org>
> 
-- 
Best regards

Joachim Backes <backes at rhrk.uni-kl.de>
University of Kaiserslautern,Computer Center [RHRK],
Systems and Operations, High Performance Computing,
D-67653 Kaiserslautern, PO Box 3049, Germany
--------------------------------------------------
Phone: +49-631-205-2438, FAX: +49-631-205-3056
http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html




More information about the fedora-list mailing list