Previous Thread
Next Thread
Print Thread
Rate Thread
#267372 01/17/2004 10:25 PM
Joined: Oct 2001
Posts: 213
Member
Member
Offline
Joined: Oct 2001
Posts: 213
I'd like to automate daily backups of all of our forum tables. Config is:

Linux 7.3
MySQL 3.23
Threads 6.3.2 (going to 6.4 within a few days)

Speak slowly - I am not a server admin! We do not have phpMyadmin or whatever it's called.

I'm thinking the backup needs to be in cron. But I thought the forums had to be closed to do a full backup of everything? I'd like to make a tarball out of it too so I can dl or ftp daily.

Anyway, I'm rambling. I hope what I want to do is clear, and any help is appreciated.

Sponsored Links
JoshPet #267373 01/18/2004 12:33 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
No I don't believe the forum needs to be closed to do a mysqldump. (yes if you're going to optimize).

I use phpMyBackup and setup a cron to backup the databases nightly.

You can even set it up to FTP them to another server.

This just does the database, you'd need to tar/backup your threads directory via commandline and download.

Daine #267374 01/18/2004 11:05 AM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
There are many auto backup utilities out there

I use something called automysqlbackup.sh

which tar/gz's them

It is a freeware program and you can search for it by name

Joined: Oct 2001
Posts: 213
Member
Member
Offline
Joined: Oct 2001
Posts: 213
Thank you guys for the help. While searching before posting, I found that phpmybackup and will give that a shot.

Thanks again!

Daine #267376 01/28/2004 9:16 AM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Could you share with us the cron file?

Sponsored Links
eslmix #267377 01/28/2004 11:01 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It's that link I posted above for phpMyBackup - instructions are in the docs at sourceforge.

http://sourceforge.net/docman/?group_id=87466

Daine #267378 01/29/2004 5:31 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Ahhh. .so it's a case of RTFM.

Joined: Nov 2000
Posts: 210
Member
Member
Offline
Joined: Nov 2000
Posts: 210
I run this in Cron daily on Fedora Core 1
Code
 /bin/nice -n 6 mysqldump --opt MySQLUSERNAME -pMySQLPassword | gzip > /PathTo/backupDirectory/`date +%Y.%m.%d-%H.%M.%S`-Mydatabasename-db.sql.gz 
This gets a dump and compresses it to a file using the YearMonthDayHourMinuteSecond-myDatabsename-db.sql.gz as the filename so it is easy to get the latest backup and it is compressed etc. My Backup directory is stored below the document root and is on a name based virtual host. I run the Cron Job as the website user. Hope this might help someone maybe.

Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
[]Omegatron said:
There are many auto backup utilities out there

I use something called automysqlbackup.sh

which tar/gz's them

It is a freeware program and you can search for it by name [/]
Chuck,

This is the one that you setup for me and I really like it

Is there a way to have it email the backup verse storing it on the server so that if something happens again at vertex hosting, like earlier this week, I can pull the backup out of my email?

Thanks,

BWilliams

vajraman #267381 02/02/2004 11:41 AM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I use the phpmybackup like Josh #1 suggested. It has a feature that will FTP the backup to any server you specify. I setup an FTP server on my home computer and I have it FTP the backup here every morning when it runs. Now THAT'S off-site storage!

Sponsored Links
eslmix #267382 02/02/2004 3:47 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
automysqlbackup.sh does not ftp the backups


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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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)