Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: backup

26 Jun

Backup Del.icio.us posts

Backup all delicious bookmarks using this command


wget --user=username --password=password https://api.del.icio.us/v1/posts/all -O bookmarks.xml
admin Posted in Command Line, Linux backup, bookmark, command, delicious, Linux, wget Leave a comment
20 Jun

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 Article

admin Posted in Command Line, Linux backup, boot, bootsector, command, dd, Linux, restore, sector Leave a comment
04 Apr

Incremental Backup with tar

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


tar -Puf backup.tar /home/binnyva
admin Posted in Command Line, Linux backup, command, filler, folder, incremental, Linux, tar Leave a comment
17 Mar

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 count=1 #restore the MBR
admin Posted in Command Line, Linux backup, command, dd, harddisk, image, Linux, mbr, restore Leave a comment
22 Feb

Backup HDD To Remote Host

Make a backup of a local hard disk on remote host via ssh


dd bs=1M if=/dev/hda | gzip | ssh user@ip_addr 'dd of=hda.gz'
admin Posted in Command Line, Linux backup, command, dd, filler, gzi, harddisk, hdd, image, iso, Linux, remote, ssh Leave a comment
05 Dec

Backup Entire Harddrive to an Image

Backup content of the harddrive to a file. Creates an image of the drive


dd if=/dev/sda of=/tmp/sda.iso
admin Posted in Command Line, Linux backup, command, dd, drive, harddrive, hdd, image, iso, Linux 4 Comments
01 Dec

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 backuped databases.


for i in *; do mysql -uroot `basename $i .sql` < $i;  done
admin Posted in Command Line, Linux backup, basename, command, database, dump, for, Linux, mysql, restore, sql, table Leave a comment
13 Jun

Rsync via SSH tunnel

Rsync via SSH tunnel


rsync -rogpav -e ssh --delete /home/binnyva 192168.0.30:/var/Backup/home
admin Posted in Command Line, Linux backup, command, Linux, rsync, ssh, tunnel 1 Comment
10 May

Restore Backup Created by dump

Restoring a backup created by the dump command.


restore -if home_backup.bak
admin Posted in Command Line, Linux backup, command, dump, Linux, restore 1 Comment
30 Apr

Incremental Backup using dump

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


dump -1aj -f home.bak /home/binnyva/
admin Posted in Command Line, Linux backup, command, dump, incremental, Linux Leave a comment

Post navigation

← Older posts

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑