Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: db backup  (Read 3140 times)

0 Members and 1 Guest are viewing this topic.

tommytomato

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
    • http://gallery.rockinghamgateway.com/
db backup
« on: December 20, 2003, 06:43:38 am »

can some one tell me a eay way to back the gallery database.

or do i have to do it the hard way.?


please any idea's


cheers TT

mery xmas every one...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
db backup
« Reply #1 on: December 20, 2003, 07:45:25 am »

Logged

tommytomato

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
    • http://gallery.rockinghamgateway.com/
db backup
« Reply #2 on: December 20, 2003, 08:15:20 am »

Ok thanks.

I use a linux OS here, and i only use the CLI.
looks like i'll have to back it up like that.


thanks TT i did read the links thanks..
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
db backup
« Reply #3 on: December 21, 2003, 01:06:59 pm »

if you're running your own server, you can create a cron job with some simple mySQL-commands. Please refer to the mySQL-manual: http://www.mysql.com/doc/en/Backup.html

GauGau
Logged

tommytomato

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
    • http://gallery.rockinghamgateway.com/
db backup
« Reply #4 on: December 21, 2003, 01:17:53 pm »

thanks.

I found the way for Win, and i'm getting the hang of the Linux way now.

thanks again

EG for win is


To back up all databases

C:\mysql\bin\mysqldump.exe --host=localhost --user=username --password=password --all-databases > \path_to_backup_dir\mysql.back

to back up a single database use the command

C:\mysql\bin\mysqldump.exe --host=localhost --user=user_name --password=password dbtest>c:\path_to_backup_dir\dbtest.back

note it dont have to be .back you can name it to dbtest.sql

thanks for your help

TT  8)
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.