[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] off topic but someone may know
- Subject: Re: [cobalt-developers] off topic but someone may know
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Sun Nov 11 15:00:59 2001
- Organization: Befriend Internet Services LLC
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
"Jamie Rossi" <jamie@xxxxxxxxx> wrote:
> I am running CMU as a cron job to backup a lot of sites. One of these
sites
> is very high hitting (500,000 + a month). CMU keeps failing because there
> are various files on the site that are hit every couple of seconds and are
> updated, (such as mailing lists). CMU reports errors and fails because the
> file changes as it atempts to back them up.
Perhaps you should consider stopping Apache and the mailserver temporarily
while generating the backups.
> Minds gone blank..how can I create a directory in a cronjob but add the
date
> as part of the directory name?
In the bash shell you can use the date program. mkdir something-`date
+%Y-%m-%d` for example.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/