{"id":114,"date":"2026-07-16T22:43:39","date_gmt":"2026-07-16T20:43:39","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=114"},"modified":"2026-10-24T00:57:43","modified_gmt":"2026-10-23T22:57:43","slug":"how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/","title":{"rendered":"How to Set Up Rclone with Google Drive on a Headless Server (The Right Way)"},"content":{"rendered":"<p>Rclone can copy files from a server without a graphical interface to Google Drive. Authorization takes place once on a computer with a browser; the server then uses the saved configuration. A successful upload is still not a substitute for a restore test.<\/p>\n<p>This guide sets up a dedicated OAuth client and a file-backup example that stops on errors. Requirements are a Google account with sufficient storage, SSH access, and Rclone on both computers. The example backs up a web directory, not a complete operating system or a running database.<\/p>\n<figure class=\"lw-diagram wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/lukaswojcik.com\/blog\/wp-content\/uploads\/diagrams\/dia-114-rclone-20261024-en.png\" alt=\"Rclone: authorization and checked file backups in four steps\" width=\"1120\" height=\"580\" loading=\"lazy\" \/><\/figure>\n<h2>Phase 1: Prepare a dedicated Google client<\/h2>\n<p>The current Rclone documentation announces retirement of the shared Google Drive client ID during 2026. A dedicated client ID avoids that dependency. Google quotas and throttling still apply; a separate project does not remove API limits.<\/p>\n<ol>\n<li>The setup requires a new or existing project in the <a href=\"https:\/\/console.cloud.google.com\/\">Google Cloud Console<\/a> with the Google Drive API enabled.<\/li>\n<li>Branding and Audience settings in Google Auth Platform define the application and its users. A normal personal Google account uses an external audience.<\/li>\n<li>The Drive scope defines the permitted access. This example uses <code>https:\/\/www.googleapis.com\/auth\/drive<\/code>, which grants broad file access. Narrower scopes are available for different use cases.<\/li>\n<li>The OAuth client type is Desktop app. Rclone configuration requires its client ID and client secret.<\/li>\n<li>For an external app in Testing, refresh tokens with this Drive scope expire after seven days. Continued operation requires the appropriate production status and a check of verification requirements. In production removes that particular testing limit, not every reason a token can expire.<\/li>\n<\/ol>\n<p>Publishing and Google verification are separate steps. Personal-use exceptions can apply to verification. Warnings, user limits, and organizational policies still require separate consideration.<\/p>\n<h2>Phase 2: Start authorization on the server<\/h2>\n<p>Rclone must be installed on both computers. <code>rclone version<\/code> reports each version; the remote-setup documentation recommends the same version. Debian and Ubuntu provide a package through <code>sudo apt install rclone<\/code>. Prompt wording can differ between versions.<\/p>\n<ol>\n<li>On the server, <code>rclone config<\/code> creates a new remote named <code>gdrive<\/code> with storage type <code>drive<\/code>.<\/li>\n<li>The configuration requires the dedicated client ID, client secret, and intended scope. This flow does not use a service account.<\/li>\n<li>The answer to browser-based automatic authentication is <code>n<\/code>. Rclone displays the appropriate <code>rclone authorize<\/code> command for the local computer and waits at <code>config_token<\/code>.<\/li>\n<\/ol>\n<h2>Phase 3: Sign in through the local browser<\/h2>\n<p>The authorization command displayed by the server runs on the computer with a browser. After Google sign-in and consent, <code>rclone authorize<\/code> provides a result to copy. That result belongs in the waiting server prompt; confirmation then completes the remote configuration. A normal local <code>rclone config<\/code> session is not the same as this token-output step.<\/p>\n<p><code>rclone lsd gdrive:<\/code> checks folder access. An empty Drive can produce an empty listing; the exit status and error messages also matter. <code>rclone config file<\/code> shows the configuration location. The file contains credentials and must remain readable and writable by the backup account while being protected from other accounts.<\/p>\n<h2>Phase 4: Copy files and check the run<\/h2>\n<p>The following script requires Bash, GNU tar, <code>flock<\/code>, and Rclone. The source directory, backup directory, and remote require adjustment before use. The archive directory must remain outside the source directory. The same account needs access to both the source files and the Rclone configuration.<\/p>\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nset -euo pipefail\numask 077\n\nSOURCE_DIR=&quot;\/var\/www\/html&quot;\nBACKUP_DIR=&quot;$HOME\/backups\/www&quot;\nREMOTE=&quot;gdrive:ServerBackups&quot;\n\nmkdir -p -- &quot;$BACKUP_DIR&quot;\nexec 9&gt;&quot;$BACKUP_DIR\/.backup.lock&quot;\nflock -n 9 || { printf &#x27;Backup already running\\n&#x27; &gt;&amp;2; exit 1; }\n\nNAME=&quot;www_$(date -u +%Y%m%dT%H%M%S%NZ).tar.gz&quot;\nARCHIVE=&quot;$BACKUP_DIR\/$NAME&quot;\nPART=&quot;$ARCHIVE.part&quot;\ntrap &#x27;rm -f -- &quot;$PART&quot;&#x27; EXIT\n\ntar -czf &quot;$PART&quot; -C &quot;$SOURCE_DIR&quot; .\nmv -- &quot;$PART&quot; &quot;$ARCHIVE&quot;\nrclone copyto --immutable &quot;$ARCHIVE&quot; &quot;$REMOTE\/$NAME&quot;\nrclone check &quot;$BACKUP_DIR&quot; &quot;$REMOTE&quot; --include &quot;\/$NAME&quot; --one-way\n\nprintf &#x27;Archive uploaded and checked: %s\\n&#x27; &quot;$NAME&quot;\n<\/code><\/pre>\n<p>The script first creates a temporary archive. Only successful completion of <code>tar<\/code> gives it the final name. The upload and <code>rclone check<\/code> must also succeed before the success message appears. The lock prevents simultaneous runs using the same backup directory. The comparison checks file properties or available checksums, not whether a restored website works.<\/p>\n<p>A running website can change files during archiving. A suitable snapshot or coordinated backup window is therefore needed for a consistent state. A database needs its own consistent export; archiving <code>\/var\/www\/html<\/code> does not automatically capture the running database.<\/p>\n<p>After a manual trial, cron can launch the executable script using a fixed absolute path. Exit statuses and logs need an error-notification mechanism. Automatic deletion is deliberately absent: local and remote archives accumulate until a retention policy is configured. That policy should account for a minimum retained set, failed runs, available space, and demonstrated recoverability.<\/p>\n<div class=\"lw-faq\">\n<h2>Questions and answers<\/h2>\n<h3>Why does the upload not end with delete &#8211;min-age 7d?<\/h3>\n<p>An age-only rule can select every remaining backup after a long interruption. A failed upload must not trigger deletion of older copies. This example stops failed runs and leaves retention as a separate task requiring an explicit policy.<\/p>\n<h3>Can an existing Rclone configuration be transferred?<\/h3>\n<p>Secure transfer of an existing configuration file is a documented alternative for Google Drive. <code>rclone config file<\/code> shows the path on both computers. Existing remotes, file permissions, and token validity need checking before the transfer; an existing server configuration must not be blindly overwritten. Recovery credentials need to remain accessible independently of the backup they unlock.<\/p>\n<h3>When is the backup actually usable?<\/h3>\n<p>A restore test establishes whether files, database exports, permissions, and required configuration work together. An upload comparison alone does not establish that. Confidential data also requires a separate decision about encryption before upload, for example with Rclone Crypt.<\/p>\n<\/div>\n<h2>Sources and review date<\/h2>\n<p>2026-10-24<\/p>\n<ul>\n<li><a href=\"https:\/\/rclone.org\/remote_setup\/\">rclone.org \u2014 remote_setup<\/a><\/li>\n<li><a href=\"https:\/\/rclone.org\/drive\/\">rclone.org \u2014 drive<\/a><\/li>\n<li><a href=\"https:\/\/developers.google.com\/identity\/protocols\/oauth2#expiration\">developers.google.com \u2014 identity<\/a><\/li>\n<li><a href=\"https:\/\/developers.google.com\/identity\/protocols\/oauth2\/production-readiness\/policy-compliance\">developers.google.com \u2014 identity<\/a><\/li>\n<li><a href=\"https:\/\/rclone.org\/commands\/rclone_check\/\">rclone.org \u2014 commands<\/a><\/li>\n<li><a href=\"https:\/\/rclone.org\/crypt\/\">rclone.org \u2014 crypt<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Set up Rclone with Google Drive on a headless server: a dedicated OAuth project, local authorization and automated backups. The guide runs from Google Cloud configuration and token transfer to scheduled backups.<\/p>\n","protected":false},"author":1,"featured_media":13644,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[91225,91064,91181,91237,91099,91219],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-it-networks","tag-backup","tag-linux","tag-raspberry-pi","tag-self-hosting","tag-server-administration","tag-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Set Up Rclone with Google Drive on a Headless Server (The Right Way) | Lukas Wojcik<\/title>\n<meta name=\"description\" content=\"Set up Rclone with Google Drive on a headless server: a dedicated OAuth project, local authorization and automated backups.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Up Rclone with Google Drive on a Headless Server (The Right Way) | Lukas Wojcik\" \/>\n<meta property=\"og:description\" content=\"Set up Rclone with Google Drive on a headless server: a dedicated OAuth project, local authorization and automated backups.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-16T20:43:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-23T22:57:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-114-how-to-set-up-rclone-with-google-dri-g.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Lukas Wojcik\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lukas Wojcik\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/\"},\"author\":{\"name\":\"Lukas Wojcik\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"How to Set Up Rclone with Google Drive on a Headless Server (The Right Way)\",\"datePublished\":\"2026-07-16T20:43:39+00:00\",\"dateModified\":\"2026-10-23T22:57:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/\"},\"wordCount\":854,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/hero-114-how-to-set-up-rclone-with-google-dri-g.png\",\"keywords\":[\"Backup\",\"Linux\",\"Raspberry Pi\",\"Self-Hosting\",\"Server Administration\",\"Tutorial\"],\"articleSection\":[\"IT &amp; Networks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/\",\"name\":\"How to Set Up Rclone with Google Drive on a Headless Server (The Right Way) | Lukas Wojcik\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/hero-114-how-to-set-up-rclone-with-google-dri-g.png\",\"datePublished\":\"2026-07-16T20:43:39+00:00\",\"dateModified\":\"2026-10-23T22:57:43+00:00\",\"description\":\"Set up Rclone with Google Drive on a headless server: a dedicated OAuth project, local authorization and automated backups.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/hero-114-how-to-set-up-rclone-with-google-dri-g.png\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/hero-114-how-to-set-up-rclone-with-google-dri-g.png\",\"width\":1200,\"height\":630,\"caption\":\"How to Set Up Rclone with Google Drive on a Headless Server (The Right Way)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Up Rclone with Google Drive on a Headless Server (The Right Way)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\",\"name\":\"Lukas Wojcik - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\",\"name\":\"Lukas Wojcik\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"width\":424,\"height\":636,\"caption\":\"Lukas Wojcik\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Up Rclone with Google Drive on a Headless Server (The Right Way) | Lukas Wojcik","description":"Set up Rclone with Google Drive on a headless server: a dedicated OAuth project, local authorization and automated backups.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Up Rclone with Google Drive on a Headless Server (The Right Way) | Lukas Wojcik","og_description":"Set up Rclone with Google Drive on a headless server: a dedicated OAuth project, local authorization and automated backups.","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-07-16T20:43:39+00:00","article_modified_time":"2026-10-23T22:57:43+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-114-how-to-set-up-rclone-with-google-dri-g.png","type":"image\/png"}],"author":"Lukas Wojcik","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lukas Wojcik","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/"},"author":{"name":"Lukas Wojcik","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"How to Set Up Rclone with Google Drive on a Headless Server (The Right Way)","datePublished":"2026-07-16T20:43:39+00:00","dateModified":"2026-10-23T22:57:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/"},"wordCount":854,"commentCount":0,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-114-how-to-set-up-rclone-with-google-dri-g.png","keywords":["Backup","Linux","Raspberry Pi","Self-Hosting","Server Administration","Tutorial"],"articleSection":["IT &amp; Networks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/","name":"How to Set Up Rclone with Google Drive on a Headless Server (The Right Way) | Lukas Wojcik","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/#primaryimage"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-114-how-to-set-up-rclone-with-google-dri-g.png","datePublished":"2026-07-16T20:43:39+00:00","dateModified":"2026-10-23T22:57:43+00:00","description":"Set up Rclone with Google Drive on a headless server: a dedicated OAuth project, local authorization and automated backups.","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/#primaryimage","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-114-how-to-set-up-rclone-with-google-dri-g.png","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-114-how-to-set-up-rclone-with-google-dri-g.png","width":1200,"height":630,"caption":"How to Set Up Rclone with Google Drive on a Headless Server (The Right Way)"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-set-up-rclone-with-google-drive-on-a-headless-server-the-right-way\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Set Up Rclone with Google Drive on a Headless Server (The Right Way)"}]},{"@type":"WebSite","@id":"https:\/\/www.lukaswojcik.com\/blog\/#website","url":"https:\/\/www.lukaswojcik.com\/blog\/","name":"Lukas Wojcik - Blog","description":"","publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lukaswojcik.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9","name":"Lukas Wojcik","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","width":424,"height":636,"caption":"Lukas Wojcik"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":10,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":22880,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions\/22880"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media\/13644"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}