LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Trying to understand which parameters I need for a generic backup using rsync (https://www.linuxquestions.org/questions/debian-26/trying-to-understand-which-parameters-i-need-for-a-generic-backup-using-rsync-4175601175/)

annadane 03-06-2017 11:24 AM

Trying to understand which parameters I need for a generic backup using rsync
 
Simply trying to backup a directory to external hard drive; I came across a tutorial which used the -av parameters, which should be sufficient for what I want to do? I came across also the concept of hard links using -H but I'm unclear on what that does or whether I even need it, my inclination is to think not.

mostlyharmless 03-06-2017 01:29 PM

If the directory has subdirectories, you might want -r. My understanding is that -H is usually used when you want to make a bootable copy of your disk.

Turbocapitalist 03-06-2017 01:49 PM

Quote:

Originally Posted by annadane (Post 5679843)
Simply trying to backup a directory to external hard drive; I came across a tutorial which used the -av parameters, which should be sufficient for what I want to do? I came across also the concept of hard links using -H but I'm unclear on what that does or whether I even need it, my inclination is to think not.

The options -av should be sufficient.

If you were using hardlinks you'd probably remember setting them. Though one place that rsync can make use of hardlinks is in doing incremental backups. See the --link-dest option if you are interested in planning incremental backups.

tofino_surfer 03-06-2017 01:50 PM

>>>If the directory has subdirectories, you might want -r

archive mode -a already includes -r for recursion

-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)

>>>My understanding is that -H is usually used when you want to make a bootable copy of your disk.

Hard links have nothing to do with booting which relates to a disk's MBR. You would use dd to copy the MBR.


All times are GMT -5. The time now is 10:14 AM.