Paul Slootman via rsync <rsync@lists.samba.org> wrote:
> On Wed 16 Oct 2024, Chris Green via rsync wrote:
> > 
> > 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?
> 
> Search the rsync manual page for popt .
> You can "overload" the -a option to include the extra options you need;
> create a file .popt in your home directory and add a line:
> 
> rsync alias -a -aXAH
> 
Exactly what I wanted, and it is implemented on my system (xubuntu 24.04).

The documentation is well hidden (or even non-existent!) on my xubuntu
system, even though libpopt-dev and libpopt0 are installed, I can find
no man page anwhere about it.  I have found a 'man 3' section on line
that documents the .popt aliases though.

Thank you!

-- 
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

Reply via email to