chatgpt is telling me to rsync with...

sudo rsync -aAXv --delete --exclude={"/home/bmike1/.cache","/home/bmike1/.local/share/Trash"} /home/ /media/$USER/rsync/

and to restore with:

sudo rsync -aAXv --delete --exclude={"/home/bmike1/.cache","/home/bmike1/.local/share/Trash"} /media/$USER/rsync/ /home/

the save stage ran correctly but will the restore run correctly?