[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
RE: Nearline backup options
- Subject: RE: Nearline backup options
- From: "Paul Smith" <ukha@xxxxxxxxxxxxx>
- Date: Mon, 30 Aug 2004 14:43:25 +0100
Here you go,
This is the full script that runs, it syncs a remote web server folder
with=
a local copy. Thus backing up the website.
It then zips up the log file created and mails it to me. Then zips up the
d=
ownloaded folder to save space. Renames this to the date which the scripts
=
run.
It uses wsftppro, winzip and blat.
Any questions shout. I use this script for backing up websites for which I
=
charge =A310 a month. So please feel free to ask questions.
Here it is.
mkdir "d:\Backups\AF\AF-tmp"
"c:\Program Files\WS_FTP Pro\ftpsync.exe" AF.ctl
xcopy /e "d:\Backups\AF\AF\*.*" "d:\Backups\AF\AF-tmp"
"c:\program files\winzip\wzzip" af.zip af.log
"d:\Backups\blat" done.txt -to paul@xxxxxxx -s "Monthly
Backup Comple=
ted" -attach af.zip -i backups@xxxxxxx
move AF.zip "d:\Backups\AF\AF-tmp\_AAABackUp-Log.zip"
del af.log
@ECHO OFF
FOR /F "TOKENS=3D1* DELIMS=3D " %%A IN ('DATE/T') DO SET
DATE=3D%%B
ECHO It's %DATE% today
SET STRING=3D%DATE%
SET STRING=3D%STRING:/=3D%
ECHO String: %STRING%
SET year=3D%STRING:~4,4%
SET month=3D%STRING:~2,2%
SET day=3D%STRING:~0,2%
ECHO String: %Year%%Month%%Day%
set DATE=3D%Year%%Month%%Day%
"c:\program files\winzip\wzzip" -P -r -m
"d:\Backups\AF\AF-%DATE%.zip" "d:\=
Backups\AF\AF-tmp\*.*"
Regards
Paul
-----Original Message-----
From: Mark McCall [mailto:lists@xxxxxxx]=20
Sent: 30 August 2004 13:29
To: ukha_d@xxxxxxx
Subject: RE: [ukha_d] Nearline backup options
> I use this from a batch file
Thanks Paul. Can you share your batch file please?
M.
=20
UKHA_D Main Index |
UKHA_D Thread Index |
UKHA_D Home |
Archives Home
|