Is there any easy way to set some default rsync options?

Chris Green via rsync <[email protected]> Wed, 16 Oct 2024 22:00:47 +0100
Newsgroups gmane.network.rsync.general
Message-ID <ZxApfxL183cBAETZ@q957>
I use rsync a lot, it's a wonderful tool.

I use it almost exclusively on Linux systems and it would be really
handy if I could set a number of options which would always be used
when I run rsync.  These would be in addition to -a which is useful
but not quite enough.

In particular I always want to copy extended attributes (-X), ACLs
(-A) and hardlinks (-H).  

I've recently lost a number of extended attributes (not a huge amount
but I'd prefer not to repeat the loss).  This was almost certainly a
result of them being lost when I used rsync to copy some files around.

So, is there any way to set some parameters system-wide such that
rsync will always use them without them being explicitly set when it's
called?

The only way I can think of at the moment is to have a wrapper script
(or bash function) for rsync that sets the parameters I want.  It
feels that there should be a better way, is there?

-- 
Chris Green

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html