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
Also, your use of --exclude looks completely wrong to me.
I do not see anything in 'man rsync' (version 3.2.7) that agrees with your
use of brace characters {}.
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.
That does seem somewhat complicated, though. --exclude=/dev should be
more concise (and perhaps maybe slightly more efficient).
And for those specific exclusions (except /lost+found),
--one-file-system is probably even better, unless there is a second
filesystem mounted somewhere inside /media/user/DRIVE1 (which seems
unlikely).