Backup of Linux Commands

Dump -0aj -f /tmp/home0.bak / home makes a complete backup of a ‘/ home’ directory

Dump -1aj -f /tmp/home0.bak / home makes an interactive backup of a ‘/ home’ directory

Restore -if /TMP/HOME0.BAK restores a interactive backup

Rsync -Rogpav – Delete / Home / TMP Synchronization Directory

rsync -rogpav -e ssh –delete / home ip_address: / TMP via SSH channel RSYNC

rsync -az -e ssh –delete ip_addr: / home / public / home / local to synchronize a remote directory to a local directory via SSH and compression

Rsync -az -e ssh –delete / home / local ip_addr: / home / public via SSH and compression to remote directory

DD BS = 1M if = / dev / hda | gzip | SSH user @ ip_addr ‘dd of = hda.gz’ Perform a backup local disk on a remote host through SSH

DD if = / dev / sda of = / tmp / file1 backup disk content to a file

TAR -PUF Backup.tar / Home / User Performs an interactive backup operation of ‘/ Home / User’ directory

(CD / TMP / LOCAL / & & TAR C.) | SSH -C User @ ip_addr ‘cd / home / share / &&t’ Copy a directory content in the remote directory through SSH

(TAR C / HOME) | SSH -C User @ ip_addr ‘cd / home / backup-home && tar x -p’ Copy a local directory in a remote directory via SSH

TAR CF -. (CD / TMP / Backup; TAR XF -) Copy a directory to another, retain original permissions and links

Find / home / user1 -name ‘* .txt’ | xargs cp -av –target-directory = / home / backup / –parents look up from a directory and copy all files ending with ‘.txt’ to another directory

Find / var / log -name ‘* .log’ | tar cv –files-from = – | bzip2> log.tar.bz2 Find all files ending with ‘.log’ and make a BZIP package

DD if = / dev / hda of = / dev / fd0 bs = 512 count = 1 Do a action to copy the MBR (Master Boot Record) to the floppy disk

DD if = / dev / fd0 of = / dev / hda bs = 512 count = 1 Restore MBR content from the backup already saved to the floppy disk

Related Posts