Posts Tagged With: dump

Import All MySQL Sql Dumps in a Folder

Tagged with: , , , , , , , , , ,

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


for i in *; do mysql -uroot `basename $i .sql` < $i;  done
No Comments »

Get the Plain Text Version of a Web Page

Tagged with: , , , , , , , ,

This command fetches a web page, converts it to text and shows it.


lynx -dump http://www.example.com/
No Comments »

Restore Backup Created by dump

Tagged with: , , , ,

Restoring a backup created by the dump command.


restore -if home_backup.bak
1 Comment »

Incremental Backup using dump

Tagged with: , , , ,

Make a incremental backup of directory ‘/home/binnyva’


dump -1aj -f home.bak /home/binnyva/
No Comments »

Backup Using ‘dump’ command

Tagged with: , , ,

Make a full backup of directory ‘/home’


dump -0aj -f home.bak /home
No Comments »

MySQL Database Backup/Restore

Tagged with: , , , , , , , ,

This command can be used to backup MySQL database.

mysqldump -u <User> -p <Database name> [<Table name>] > backup.sql

This command will create a file ‘backup.sql’ that will have all the data of the Database. The <Table name> is optional.

The database can be restored from such a dump using the command

mysql -u <User> <Database name> < backup.sql

Example

I backup all the task in Nexty using this command.

mysqldump -u root Apps_Nexty > nexty.sql

This will create a file called ‘nexty.sql’ – which can be restored using the command…

mysql -u root Apps_nexty < nexty.sql

3 Comments »