Sign in with a registered YubiKey (touch it, enter its FIDO PIN).
Signed in with . Open Terminal on the freshly set up Mac (user dariush) and paste, within minutes:
The script asks for the passphrase (the same one as the restic passphrase and the site password), then:
darwin-rebuild switch,Needed at hand: the passphrase, the YubiKey and its PIN or a Google sign-in, the Google account, and Full Disk Access for Terminal when the restore starts. Re-running the script after an interruption is fine; every step checks what is already done. If the token has expired, sign in here again or let curl ask for the password.
Read the script before running it.