LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-06-2017, 11:24 AM   #1
annadane
Member
 
Registered: Dec 2016
Posts: 46

Rep: Reputation: Disabled
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.
 
Old 03-06-2017, 01:29 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
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.
 
Old 03-06-2017, 01:49 PM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,332
Blog Entries: 3

Rep: Reputation: 3727Reputation: 3727Reputation: 3727Reputation: 3727Reputation: 3727Reputation: 3727Reputation: 3727Reputation: 3727Reputation: 3727Reputation: 3727Reputation: 3727
Quote:
Originally Posted by annadane View Post
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.
 
Old 03-06-2017, 01:50 PM   #4
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
>>>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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Rsync Backup for Windows, Linux Knoppix, and Other Smart Technologies in Handy Backup by Novos LXer Syndicated Linux News 0 12-24-2011 11:43 AM
LXer: Backup with rsync and rsync.net LXer Syndicated Linux News 0 09-14-2010 04:20 PM
generic kernel boot time parameters ignored shadowsnipes Slackware 4 12-21-2008 07:04 AM
Using RSync to backup a secondary off-site backup server pezdspencer Linux - Software 4 06-29-2007 03:40 PM
can't understand rsync's behavior at all baronsam Linux - Software 5 08-15-2006 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration