How To Use rsync Command To Backup Directory Under Linux
Q. How do I use rsync command to back up a home directory under Linux operating system?
A. rsync command easily backup your home directory to local secondary hard disk or remote server using ssh protocol. rsync is a software application for Unix systems which synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate.
Task: Backup /home/tom to /mnt/usbpen
Assuming that USB pen or external USB hard disk is mounted at /mnt/usbpen, enter the following command to backup (sync) new files and changes to existing files but don't remove files in backup directory:
$ rsync -au /home/tom /mnt/usbpen
To delete files in backup directory that no longer exist in directory being backed up, enter:
$ rsync -au --delete /home/tom /mnt/usbpen
See our previous article about using rsync for transferring files under Linux or UNIX from local or remote network computer.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- How to backup the remote files in Linux / UNIX
- Throttle The Disk I/O Rate: Limit disk I/O for rsync Tool
- Can I use tape drive with XEN VPS / Guest oses?
- Howto install duplicity rpm under RedHat / CentOS / Fedora Core Linux
- Debian / Ubuntu Linux Install and Configure Remote Filesystem Snapshot with rsnapshot Incremental Backup Utility
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: backup directory, backup home directory, backups, backup_files, backup_media, backup_server, files_backup, rsync command, sync, sync directory



Recent Comments
Yesterday ~ 19 Comments
Yesterday ~ 1 Comment
Yesterday ~ 7 Comments
Yesterday ~ 2 Comments
Yesterday ~ 2 Comments