Re: Pls help with little bash script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>
> 
-- 
Best regards

Joachim Backes <backes@xxxxxxxxxxxxxx>
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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux