[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: "KAMRY" <kamry1888@xxxxxxxxx>
- Date: Sun Nov 11 12:57:35 2001
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
I've never done it before, but this is what I would try if I had a similar
situation:
For question one:
Create a temp directory
cp -R targetFiles to the above temp destination
BKUP
Clean the mess :) by rm -r the temp directory
For question two:
I haven't done any shell scripting for a long time, but I almost certain
that if you assign date to a variable right before creating that directory,
then you append it to the directory name.
Just look on how you set a variable and just say:
variableName/Syntax = date
then
mkdir /home/backups/backupvariableName/Syntax although I prefer
mkdir /home/backups/backup-variableName/Syntax
or
mkdir /home/backups/backup_variableName/Syntax
Kal
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of Jamie Rossi
Sent: Sun, November 11, 2001 2:10 PM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: [cobalt-developers] off topic but someone may know
Hi
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.
Anyone had similar problems, and if so how to resolve them?
Question 2.
Minds gone blank..how can I create a directory in a cronjob but add the date
as part of the directory name?
I want to do this so I can automatically create date related backups which
are the then ftp'd to a remote sever.
so I go mkdir /home/backups/backup%date% whats the syntax to make %date%
print the current date and write this to te directory name.
Any help would be appreciated.
Jamie Rossi
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com