Linux: Amministrazione sistema, Documentazione, HowTo, Tutorial, Recensioni, Manuale, Programmi, Software
Linux Command Line - nothing it's impossible by command line!
English - English  Italiano - Italian  Español - Spanish  Français - French  Deutsch - German  Česká republika - Czech Republic  Polski - Polish  Па-беларуску - Byelorussian  中国 - Chinese  Русский - Russian  Português - Brazil Portuguese  فارسی - Persian  ελληνικά - Greek  العربية - Arabic  Indonesia - Indonesian  
 Download offline copy of Linux Command Line Download offline copy
  Edit / Translate
 ToDO (Help US)
 Terms of Use and License
 About project
Follow us on...
Join our Linux Facebook Group
Follow us on twitter!
News Letter
Sign-up me to receive the news about this document
Linux Command Line
version 1.4
Last modified date: 2009-07-03
Created Date: 2008-01-06
Home page

Linux Command Line: Backup

View the commands list divided into arguments
Previous Argument      Next Argument
Command Description
# find /var/log -name '*.log' | tar cv --files-from=- | bzip2 > log.tar.bz2 find all files with '.log' extention and make an bzip archive   [man]
# find /home/user1 -name '*.txt' | xargs cp -av --target-directory=/home/backup/ --parents find and copy all files with '.txt' extention from a directory to another   [man]
# dd bs=1M if=/dev/hda | gzip | ssh user@ip_addr 'dd of=hda.gz' make a backup of a local hard disk on remote host via ssh   [man]
# dd if=/dev/sda of=/tmp/file1 backup content of the harddrive to a file   [man]
# dd if=/dev/hda of=/dev/fd0 bs=512 count=1 make a copy of MBR (Master Boot Record) to floppy   [man]
# dd if=/dev/fd0 of=/dev/hda bs=512 count=1 restore MBR from backup copy saved to floppy   [man]
# dump -0aj -f /tmp/home0.bak /home make a full backup of directory '/home'   [man]
# dump -1aj -f /tmp/home0.bak /home make a incremental backup of directory '/home'   [man]
# restore -if /tmp/home0.bak restoring a backup interactively   [man]
# rsync -rogpav --delete /home /tmp synchronization between directories   [man]
# rsync -rogpav -e ssh --delete /home ip_address:/tmp rsync via SSH tunnel   [man]
# rsync -az -e ssh --delete ip_addr:/home/public /home/local synchronize a local directory with a remote directory via ssh and compression   [man]
# rsync -az -e ssh --delete /home/local ip_addr:/home/public synchronize a remote directory with a local directory via ssh and compression   [man]
# tar -Puf backup.tar /home/user make a incremental backup of directory '/home/user'   [man]
# ( cd /tmp/local/ && tar c . ) | ssh -C user@ip_addr 'cd /home/share/ && tar x -p' copy content of a directory on remote directory via ssh   [man]
# ( tar c /home ) | ssh -C user@ip_addr 'cd /home/backup-home && tar x -p' copy a local directory on remote directory via ssh   [man]
# tar cf - . | (cd /tmp/backup ; tar xf - ) local copy preserving permits and links from a directory to another   [man]
Previous Argument      Next Argument
Commands by Argument
System information - Shutdown, Restart and Logout of a system - Files and Directory - File search - Mounting a Filesystem - Disk Space - Users and Groups - Permits on Files - Special Attributes on files - Archives and compressed files - RPM Packages ( Fedora, Red Hat and like) - YUM packages tool (Fedora, RedHat and alike) - DEB packages (Debian, Ubuntu and like) - APT packages tool (Debian, Ubuntu and alike) - View file content - Text Manipulation - Character set and Format file conversion - Filesystem Analysis - Format a Filesystem - Filesystem SWAP - Backup - CDROM - Networking (LAN / WiFi) - Microsoft Windows networks (samba) - IPTABLES (firewall) - Monitoring and debugging - Other useful commands - Pacman packages tool (Arch, Frugalware and alike) -

Translated by: team  | 
become translator!
Social Bookmarking
Bookmark to: Folkd Bookmark to: Yigg Bookmark to: Digg Bookmark to: Bookmark to: Facebook Bookmark to: Reddit Bookmark to: StumbleUpon Bookmark to: Slashdot Bookmark to: Furl Bookmark to: Blinklist Bookmark to: Technorati Bookmark to: Newsvine Bookmark to: Blinkbits Information
Except where otherwise specified, the contents of are licensed under License Creative Commons 2.5 Attribution
Free Distribution if provided Authors and, Not Commercial purposes and, Not Derivated Works 2.5 | Terms of Use and License | Privacy Policies  Read Creative Commons license to learn how to share contents using this license Our sponsors | Become sponsor
Logos and trademarks used for the link are owned by their legitimate owners