--- title: 🛠️ Rclone & Google Drive Setup description: Description for setup of Rclone and Google Drive on the server published: 1 date: 2026-01-23T17:53:17.857Z tags: editor: markdown dateCreated: 2026-01-23T17:53:15.017Z --- # 🛠️ Rclone Cloud Integration This server uses **Rclone** to mount a specific subdirectory of Google Drive. ## 🔑 Connection Credentials * **Google Cloud Project:** `georgew` * **API Enabled:** Google Drive API * **Auth Type:** OAuth2 (Client ID & Secret) * **Remote Name:** `gdrive` ## 📁 Mount Specifics To maximize security, the mount is restricted to a single folder. If I want to change in future I should re-initialise the mount. This would also need to update the systemd service (below) and also to update the audiobookshelf admin library setting (point to the new folder for audiobooks): * **Source (Google Drive):** `gdrive:audiobooks` * **Destination (Server):** `~/google-drive` * **Access Level:** "Least Privilege" (The server cannot see any other Google Drive data). ## ⚙️ System Management The mount is managed by a **systemd service** to ensure it restarts automatically. * **Service File:** `/etc/systemd/system/rclone-gdrive.service` * **Common Commands:** * Check Status: `sudo systemctl status rclone-gdrive` * Restart Mount: `sudo systemctl restart rclone-gdrive` * Force Unmount: `fusermount -uz ~/google-drive` ## 🚀 Moving Books To move a book from the local SSD to the Cloud Archive: `mv ~/audiobookshelf/audiobooks/AuthorName ~/google-drive/`