On Sun, 19 Jan 2025 at 16:24, Greg Wooledge <g...@wooledge.org> wrote: > On Sun, Jan 19, 2025 at 12:43:51 -0300, Eduardo M KALINOWSKI wrote: > > Em 19/01/2025 08:57, David escreveu: > > > On Sun, 19 Jan 2025 at 02:51, Default User <hunguponcont...@gmail.com> > > > wrote:
> > > > time sudo rsync -aHSxvvv --human-readable --delete --numeric-ids -- > > > > info=progress2,stats2,name2 -- > > > > exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media > > > > /*","/lost+found"} /media/user/DRIVE1/ /media/user/DRIVE2/ ; date > > > In fact the manpage says: "--exclude options take one rule/pattern each", > > > as I have shown above, which is not what you have. > > That's a shell feature, it will expand to multiple --exclude options. > It's called brace expansion, if you're looking for it in the bash manual. Oh right, thanks for the clarification. I would have recognised this echo a{1..5}b as brace expansion, but I hadn't absorbed the extra glorious capabilities of its commas. Maybe the shame of being wrong on the internet will help me remember. Except I will probably forget that too :)