Previous Thread
Next Thread
Print Thread
Hop To
#249125 05/10/2012 9:16 PM
Joined: Apr 2004
Posts: 232
Likes: 1
D
Enthusiast
Enthusiast
D Offline
Joined: Apr 2004
Posts: 232
Likes: 1
Are there any suggested options to use with mysqldump when doing a backup of the whole database into one backup file?

I've searched the forums for any postings on this in the last year and didn't see anything.


DennyP - www.dennyp.com
DennyP Travel
DennyP #249156 05/11/2012 4:42 PM
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Actually I do use the ubb utility for backups but only as a alternate method.
I would hate to have to upload one table at a time. 64+ times.
I usually use a zip or tar method to download a backup.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
DennyP #249157 05/11/2012 4:44 PM
Joined: Apr 2004
Posts: 232
Likes: 1
D
Enthusiast
Enthusiast
D Offline
Joined: Apr 2004
Posts: 232
Likes: 1
I also will do a zip or tar but I need to know if there any suggested options on the mysqldump command under mysql that I should use to create the file that would be zipped.


DennyP - www.dennyp.com
DennyP Travel
DennyP #249180 05/13/2012 3:05 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Code
mysqldump -u user -p database_name > dumpfilename.sql
The above command should ask you for your password once you hit enter, it'll then dump the database databasename to the file dumpfilename.sql

You can then tar the file so it's compressed; since it's just text it compresses really well, so run:
Code
tar -cvzf archive.tgz dumpfilename.sql


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Ruben #249181 05/13/2012 3:06 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Originally Posted by Ruben
Actually I do use the ubb utility for backups but only as a alternate method.
See, I would only do this as a complete last resort as so many things can go wrong... I'd hate to depend on a backup just to find out that the servers max execution time had hit mid way through either creating or downloading the file...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #249186 05/13/2012 6:41 PM
Joined: Apr 2004
Posts: 232
Likes: 1
D
Enthusiast
Enthusiast
D Offline
Joined: Apr 2004
Posts: 232
Likes: 1
Thanks. That is basically what I am doing now. I just wasn't sure if the mysqldump needed any options set in order to dump it correctly.


DennyP - www.dennyp.com
DennyP Travel

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 445 guests, and 142 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)