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:

  1. Install rclone (if not already installed):

    curl https://rclone.org/install.sh | sudo bash
    

  2. Configure rclone for Google Photos:

  3. Open your terminal and start the rclone configuration.
    rclone config
    
  4. Follow these steps in the configuration menu:

    1. New Remote: Choose n to create a new remote.
    2. Name: Give your remote a name, such as google_photos.
    3. Storage: Choose 24 (or type google photos) to select Google Photos as the storage provider.
    4. Client ID and Secret: If you don’t have custom credentials, press Enter to use rclone's defaults.
    5. Scope: Choose read-only or full access depending on your requirements.
    6. Headless Setup: If running on a headless server, follow the on-screen instructions to authorize via URL.
    7. Advanced Config: Usually N for No unless specific advanced settings are needed.
    8. Auto Config: Select Y to authorize with your browser (if possible), or N to use a different device for authorization.
  5. Obtain and Test Auth Token:

  6. 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.
  7. This process will generate an auth token that rclone stores securely within its configuration file (typically in ~/.config/rclone/rclone.conf).

  8. Verify Access to Google Photos:

  9. Test the remote to confirm that it can access Google Photos:
    rclone ls google_photos:album
    
  10. This should list the available albums in your Google Photos account.

  11. Integrate with TrueNAS Cloud Backup:

  12. 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).
  13. 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.