Yes, such scripts exist.
Remember what makes your system stick out
- your package selection
- your config and data
Your data - that is the content of your home data folders - defined by XDG in the file
~/.config/userdirs.dir
The rest is defined by a few local configs and the content of ~/.config and ~/.local - thus creating a method of restoring you manjaro linux to any given point in time is to have those settings in an available location