• 0

Best way to backup a large database


Question

7 answers to this question

Recommended Posts

  • 0

If you have the mysql client on the box you should have mysqldump. man mysqldump. It's quite easy. I would definitely not use http or ftp to download a 1GB database dump, though. If you really have to then make sure you take proper hashes of the file before and after to check for integrity. A much better option would be to use SFTP, which I assume you can since you mentioned use of PuTTY (use WinSCP on windows). SFTP has built in error checking which will ensure integrity of your dump.

edit: Oh and I forgot to mention, a database dump will compress very well (assuming it is mostly text not blobs). If you run gzip on that you can probably reduce the size by 50%.

  • 0
You can use Putty to run mysqldump and gzip etc. yes. You can use WinSCP to then transfer the dump to your PC. In fact you can do it all with WinSCP because it is based on Putty and you can just open a shell in it.

I have run putty and got a gzip of my database, it's just under 200mb. I've downloaded WinSCP, and am copying the file to my hard drive, theres no need to change any settings on WinSCP is there?

  • 0

No, you don't need to change any settings.

In future what you can do is decompress the dump on your hdd and use rsync every day to sync up with latest dump on your server (rsync will use scp to do the transfer). rsync is very efficient at syncing up things like database dumps. Then every week or something gzip it and keep it in your archive if you keep one (or even keep rsync diffs every day or something). You can just run that as a cron job and have it send you an email every time it does it etc.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Universal USB Installer 2.0.3.7 by Razvan Serea The Universal USB Installer (UUI) is a powerful bootable USB software tool for creating USB boot drives from ISO files, perfect for installing Linux or Windows, running live systems, or building diagnostic toolkits. This versatile ISO-to-USB software makes it easy to boot from USB and create Live USBs for Linux distributions, Windows setup installers, antivirus tools, and system diagnostic utilities. Whether you need a multisystem Windows Media Creation Tool, a Live USB Linux installer, or an all-in-one PC diagnostic toolkit, UUI offers a reliable and flexible Linux and Windows bootable USB creator. Effortlessly carry your favorite portable operating systems and essential troubleshooting and diagnostic tools on a single flash drive or USB boot stick. Take your preferred Live Linux distributions, Windows installers, recovery software, backup utilities, and diagnostic tools with you, all bootable from a single USB drive. No more juggling multiple USB sticks or complicated bootloaders, UUI consolidates everything into one flexible, multiboot solution. Using this open source USB boot maker software is easy as 123. To create a Linux or Windows bootable USB drive, you simply select your target flash drive, choose your distribution from the list, browse to the ISO file (or choose to download the ISO), and then click Create. Once finished, you should have a ready to run Live USB containing the Live operating system, Windows installation media, or system diagnostics utility, or advanced system cleaner tool you previously selected. Universal USB Installer 2.0.3.7 changelog: Expanded the distro and tool catalog with additional popular Linux ISO entries. Updated: several distro homepage and download links, including Ubuntu Unity, Garuda Linux, Arch Linux, Fedora, Manjaro, and SystemRescue. Fixed: ISOs added via drag and drop (or manually copied to the drive) are now listed in the removal dropdown alongside normally installed distros. Download: Universal USB Installer 2.0.3.7 | 19.4 MB (Open Source) Link: Universal USB Installer Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • You are clueless. The updates are done in the background so the next time you open Edge the updates are applied automatically. There is no need to close all your tabs. Just keep browsing like you normally do. Clearly you don't use Edge and are just one of those haters that complain for the sake of complaining.
    • I don't get this David. Can you explain it please.  
  • Recent Achievements

    • Rookie
      Rimplesnort went up a rank
      Rookie
    • One Month Later
      Markus94287 earned a badge
      One Month Later
    • Week One Done
      Markus94287 earned a badge
      Week One Done
    • One Year In
      Markus94287 earned a badge
      One Year In
    • Dedicated
      truespursfan earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      509
    2. 2
      +Edouard
      168
    3. 3
      PsYcHoKiLLa
      154
    4. 4
      ATLien_0
      90
    5. 5
      Steven P.
      79
  • Tell a friend

    Love Neowin? Tell a friend!