Custom scripts are not restored after restoring from a backup - v12

I had created many custom scripts in ERP instance, and configured backup to dropbox. But in a new instance of same erpnext and frappe version, I tried restoring it.
I got all, except the custom scripts I created.
How do I get these restored?