Truenas Backup your images from google photos to truenas
To obtain a Google Photos auth token for rclone and enable TrueNAS to download images from Google Photos, follow these steps:
-
Install rclone (if not already installed):
curl https://rclone.org/install.sh | sudo bash
-
Configure rclone for Google Photos:
- Open your terminal and start the rclone configuration.
rclone config
-
Follow these steps in the configuration menu:
- New Remote: Choose
n
to create a new remote. - Name: Give your remote a name, such as
google_photos
. - Storage: Choose
24
(or typegoogle photos
) to select Google Photos as the storage provider. - Client ID and Secret: If you don’t have custom credentials, press Enter to use rclone's defaults.
- Scope: Choose
read-only
orfull access
depending on your requirements. - Headless Setup: If running on a headless server, follow the on-screen instructions to authorize via URL.
- Advanced Config: Usually
N
for No unless specific advanced settings are needed. - Auto Config: Select
Y
to authorize with your browser (if possible), orN
to use a different device for authorization.
- New Remote: Choose
-
Obtain and Test Auth Token:
- Once configured, rclone will open a browser window (or provide a URL) for Google authorization. Log in and grant rclone access to your Google Photos.
-
This process will generate an auth token that rclone stores securely within its configuration file (typically in
~/.config/rclone/rclone.conf
). -
Verify Access to Google Photos:
- Test the remote to confirm that it can access Google Photos:
rclone ls google_photos:album
-
This should list the available albums in your Google Photos account.
-
Integrate with TrueNAS Cloud Backup:
- For TrueNAS, you’ll need to configure TrueNAS to use the rclone configuration. Ensure that the rclone binary is accessible by TrueNAS and configured to use the correct
rclone.conf
file (with--config
if necessary). - Set up a periodic sync or mount using rclone commands in TrueNAS to pull images from Google Photos as required.
This setup will allow you to use rclone’s Google Photos integration with TrueNAS, effectively enabling a backup process to transfer images from Google Photos to your server.