Tag: restore

Backup and Restore Boot sector

Use these commands to backup/restore your boot sector dd if=/dev/hda of=bootsector.img bs=512 count=1 # backup dd if=bootsector.img of=/dev/hda #restore Original…

Backup MBR to Image File

Make a copy of MBR (Master Boot Record) to a file. dd if=/dev/hda of=mbr.img bs=512 count=1 dd if=mbr.img of=/dev/hda bs=512…

Import All MySQL Sql Dumps in a Folder

This command will import all the MySQL sql dumps in the current folder. You can use this to restore your…

Restore Backup Created by dump

Restoring a backup created by the dump command. restore -if home_backup.bak

Backup All Databases in MySQL

Backup all files in /var/lib/mysql to another folder To restore, stop mysqld if it is running service stop mysqld Move…

MySQL Database Backup/Restore

This command can be used to backup MySQL database. mysqldump -u <User> -p <Database name> [<Table name>] > backup.sql This…