Subscribe to RSS  |  Advertise on this Blog

  • HOME
  • ABOUT
    • RESUME
Alberto Matus
  • SERVICES
  • CONTACT
  • HOME
  • ABOUT
    • RESUME
  • SERVICES
  • CONTACT
November 27, 2018  |  By ajMatus In Linux Tips, Technology, Technology Tips, Ubuntu

Backup MySQL Databases Using Mounted Partitions

In a previous post I showed how to mount a raided device that was plugged via usb, essential I needed to backup data from it. Additionally, I went further along to show how we could change the working root directory using chroot to use commands via that system. What I forgot to mention was how I went about backing up the MySql data.

So I switched my working directory using chroot, unfortunately some services didn’t run properly including mysql commands. Either misconfigured parameters by the previous systems admin, or for whatever reason …

Be it as it may I ended up using scp to do a secure copy to the desired remote host. The important thing to note is where all the mysql databases are located. Thus the command below sent my data to the backup location I desired.

 

 

scp -r /dev/md0/var/lib/myql/* user@ipaddressofbackupserver: 

 

 

 

This will backup the MySQL folder on the mounted partition to the home folder of the user logged into your computer. Here: /dev/md0 was my mounted point of my raided device.

To restore your data, simply upload the folder to your new installation by doing these tasks vice-versa.

Don’t forget to restore the required permissions to the folder, if you have made the modification directly from the root account:

 

 

 

chown -R mysql:mysql /var/lib/mysql/* 
MySql

Article by ajMatus

Related Articles

  • alberto matus LAMP-1024x652
    How to Install LAMP & PhpMyAdmin on Ubuntu 18.04

WELCOME

Hello, and welcome! I'm Alberto - a Cyber Security & Digital Forensics professional specializing in Digital forensics, Incident Response & Vulnerability Assessment. I hold a Master's degree in Cybersecurity with a concentration in Digital Forensics from the University of South Florida and a Bachelor degree in Information Technology from the University of Belize. Through this blog I hope to share tips, information about cybersecurity, cybercrime, digital forensics, open source technologies, business, and a bit of my amazing country. For those interested in any of my services please feel free to contact me using any of the associated contact details on this blog.

SEARCH

ARCHIVE

  • October 2022 (1)
  • July 2021 (2)
  • November 2020 (2)
  • October 2020 (1)
  • September 2020 (2)
  • August 2020 (2)
  • July 2020 (6)
  • June 2020 (6)
  • April 2020 (5)
  • February 2020 (1)
  • November 2019 (2)
  • October 2019 (1)
  • September 2019 (1)
  • June 2019 (1)
  • May 2019 (1)
  • November 2018 (6)
  • September 2018 (3)
  • August 2018 (4)
  • February 2018 (1)
  • January 2018 (3)
  • December 2017 (1)
  • October 2017 (5)
  • September 2017 (1)
  • December 2016 (2)
  • November 2016 (4)
  • October 2016 (1)
  • September 2016 (2)
  • August 2016 (5)
  • July 2016 (2)
  • June 2016 (2)

CALENDAR

March 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Oct    

RECENT POSTS

  • Capture
    WordPress Empty template: Index Friday, 7, Oct
  • Belize – Benque Viejo to San Ignacio Town Drive Tuesday, 6, Jul
  • alberto-matus-digital-piracy
    An Overview of Digital Piracy Thursday, 1, Jul

REMOTE WORK

Remote work is my preferred way or working as I have a home office set up where all the magic happens. This method allows me to work with businesses, organizations, and all brands across the globe. I can manage projects via my own management applications or your own internal project management app. Any calls and meetings can be done through whatever tools fits your business, and I’m flexible to work on your time zone.

ON-SITE

Not every job assignment can be done via remote working methods, and so if it requires me to be on-site for the duration of the work then this can be done based on agreements or contractual work. I prefer doing these types of consultancies or hands-on types of work on the weekends but I am flexible enough depending on the terms. I am also open to traveling outside of Belize. All further afield work requires accommodation and travel expenses.

RETAINER

Sometimes clients are looking for long term partners that share a closer connection to their visions and goals. As such I am open to retainers. A retainer hires me for a certain amount of hours per month at a discounted rate. These discounted rates are usually between 10%-20% off depending on the contractual agreements.

Alberto - open source | technology | belize -Matus

Copyright ©2020. All Rights Reserved

en_USEnglish
en_USEnglish