Previous Thread
Next Thread
Print Thread
Rate Thread
#254970 07/29/2003 8:11 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I haven't used this one - but someone at Leoville posted it:
http://members.lycos.co.uk/wipe_out/automysqlbackup/

It automates and rotates MySQL backups.

Personally I have used phpMyBackup which can be setup as a cron task and can even FTP backups to another server.

http://www.normsland.co.uk/phpmybackup

Sponsored Links
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
For Windows users you can automate this process with a batch file and the Windows Scheduler or the AT command:

Below is the batch file. replace :
<username> with database user name
<password> with the user's password
<databasename> with the database name

Also change the paths to reflect where you want the logs to be dumped.

You will also need zip or some form of it. I use the DOS version downloaded from SimTel as well as blat.exe (downloadable from here which will email you the zipped file. You can skip the emailing bit and create a text file with FTP commands which will effectively FTP the data to your backup area.

@echo off

for /F "tokens=2,3,4 delims=/ " %%i in ("%date%") do set DateStamp=%%k%%i%%j

REM My Database
"c:\program files\mysql\bin\mysqldump.exe" -u<username> -p<password> <databasename> > c:\backup\%DateStamp%.dump
zip -9 c:\backup\%DateStamp%.zip c:\backup\%DateStamp%.dump
del c:\backup\%DateStamp%.dump
blat c:\backup\%DateStamp%.zip -subject "Database Backup for %DateStamp%" -to <[email protected]> -uuencode

set DateStamp=


Nikos

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)