I prefer a backup strategy rather than a “one total solution”, especially when doing such a big jump as Android 9 (P) to 13 (S) it is likely that quite a few third party apps would not survive the upgrade. Here are two links
Uncertain, but I do not think we can rely on a TWRP backup to move to Android 13 (S).