{"product_id":"borg-ssh-server-directory-backup-to-google-drive-n8n-workflow","title":"Borg SSH Server Directory Backup to Google Drive (n8n Workflow)","description":"\u003ch3\u003eAutomatically back up a server directory over SSH and store it in Google Drive\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow creates a Borg SSH backup of a chosen directory on your server, packages the Borg repository into a \u003cstrong\u003etar.gz\u003c\/strong\u003e archive, and uploads it to \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e in either a \u003cem\u003esync\u003c\/em\u003e (single latest file) or \u003cem\u003eversioned\u003c\/em\u003e (timestamped files) mode.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCollects backup settings\u003c\/strong\u003e via an n8n \u003cstrong\u003eForm Trigger\u003c\/strong\u003e (protected with basic-auth) and stores them in an \u003cstrong\u003en8n Data Table\u003c\/strong\u003e for reuse on scheduled runs.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSchedules the backup\u003c\/strong\u003e and loads the saved configuration to determine the source directory, encryption\/passphrase settings, repository behavior, and Google Drive upload mode.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConnects over SSH\u003c\/strong\u003e to the target server and ensures \u003cstrong\u003eBorgBackup\u003c\/strong\u003e is available (installs if needed).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates a Borg archive\u003c\/strong\u003e of the configured directory, optionally using an on-server passphrase file, then prunes and compacts the repository to keep backups efficient.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePackages the repository\u003c\/strong\u003e by compressing the Borg repository into a \u003cstrong\u003esingle tar.gz\u003c\/strong\u003e archive.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUploads to Google Drive\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eSync mode:\u003c\/strong\u003e searches for an existing \u003cem\u003elatest-backup\u003c\/em\u003e file and updates it, or uploads a new one.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eVersioned mode:\u003c\/strong\u003e uploads a new timestamped backup file on every run.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCleans up\u003c\/strong\u003e by removing the temporary staged \u003cem\u003etar.gz\u003c\/em\u003e archive from the server after upload completes.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS operators backing up application data directories from a single remote server to Google Drive.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers setting up scheduled, encrypted Borg SSH backups with Google Drive retention control.\u003c\/li\u003e\n  \u003cli\u003eTeams who want an easy “latest” restore point (sync mode) or full historical recovery (versioned mode).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/blocks:\u003c\/strong\u003e Form Trigger, Data Table, SSH, Code, IF, Sticky Note.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e SSH connection to the target server, BorgBackup creation\/prune\/compact, Google Drive upload (sync or versioned).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCredentials:\u003c\/strong\u003e An SSH private-key credential that can read the source directory and run BorgBackup commands.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45938307924147,"sku":"N8N-18924","price":75.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/fzMh-kuqVl9bHNbUr7_bt_hbO7Df8v.png?v=1788341812","url":"https:\/\/buyflowscripts.com\/products\/borg-ssh-server-directory-backup-to-google-drive-n8n-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}