Protect your site code by saving Squarespace header and footer injections to GitHub on a set schedule. Great for web teams and agencies that want history, version control, and easy rollback without manual copy and paste.
A schedule or manual run pulls your site data, extracts the header and footer injection blocks, cleans the code, and then saves them as HTML files in a GitHub repository. The flow tries to update the files first and creates them if they do not exist. A global settings node stores the repo owner, repo name, and folder path so you can point backups to the right place. Batch logic processes the header and footer together, and each commit includes a timestamp to track changes over time.
Setup is simple. Add your Squarespace site URL to the HTTP step and enter your GitHub details in the globals node. Expect consistent backups every few hours and a clean commit history per site. This is useful for compliance, client reporting, and fast recovery if something breaks on your site.