Backup scripts are effective to an extent but for complete, automated and all-inclusive backups for GitHub (and other VCS), consider professional backup vendors, for best data protection. Check out solutions like GitProtect.io :))
https://gitprotect.io/