LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-13-2015, 01:15 PM   #1
mike2010
Member
 
Registered: Jan 2009
Posts: 132

Rep: Reputation: 15
command to dump all DB's in their own sql files ?


I have another similar thread, but I added a lot of unneeded baggage to that thread.

Could I please get a command just to dump all my databases ( different domains) into their own sql backup files ?

I'd like to work with this cron syntax, since it already works fine for backing up individual sql files.

mysqldump -uadmin2 -p$(cat /etc/psa/psa.my/.psa.myshadow) MyActualDB > /var/www2/backup/mybackup1.sql

the above syntax is just for 1 sql file. But I need to add

all-databases

syntax in there somewhere.. Also, for each backup, to backup to their own SQL file . (preferably using their already established database name)

I really, really appreciate it.
 
Old 04-13-2015, 10:29 PM   #2
mike2010
Member
 
Registered: Jan 2009
Posts: 132

Original Poster
Rep: Reputation: 15
if anybody cares.. latest details are here -

http://www.linuxquestions.org/questi...4/#post5347021

nice little script there as well..for people that need to dump all databases at once and have them renamed intot their own .gz file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to dump SQL tables Alexrkkl Linux - Newbie 5 12-28-2011 11:10 AM
my sql to use less proecesses during a dump? z01krh Linux - Newbie 1 08-21-2009 02:25 PM
how to dump an sql table only data nephish Linux - Server 2 12-27-2007 01:55 PM
SQL: old sql dump not loading into new db BrianK Linux - Software 1 07-25-2006 11:55 PM
How do I get a dump file (.sql) into MySql? TreeDragon60 Linux - Software 4 03-21-2004 05:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration