Sunday, December 2, 2012

rsync is a very good tool for backup

Before starting my Fedora upgrade, I am required to backup my /home directory before unexpected thing happened to my code. Last time I used the most stupid by copying the whole directory from one hard disk to another, now I am smart, I use rsync. A very friendly command I found in this article and this article.

Since I'm doing it at my local PC, basically the syntax is like this:
rsync -av --exclude 'rubbish' --exclude 'Downloads' \
/home/kokhoe /media/external_disk/home/kokhoe
The command above will backup my /home directory except for rubbish and Downloads directories.

No comments: