RenoFischa / idrive

IDrive Backup Docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

idrive

IDrive Backup Docker image

Docker Hub: https://hub.docker.com/r/renofischa/idrive

IDrive services persist, so no need to relogin after each restart of the container.
It also works in TrueNAS SCALE and on unRAID. Configuration examples are below.

Requirements

  • Docker installed
  • IDrive account

docker-compose example

services:
  idrive:
    container_name: idrive
    image: renofischa/idrive:latest
    restart: unless-stopped
    volumes:
      - config:/opt/IDriveForLinux/idriveIt
      - files:/mnt/files
      - $BACKUPDIR:/mnt/backup:ro
    environment:
      - TZ=$TZ
      
volumes:
  config:
  dependencies:
  files:
  • volumes config and files are necessary for persisting account settings and IDrive services.
  • $BACKUPDIR points to the local path you need to backup
  • Optional timezone environment variable, default is set to Europe/Vienna in dockerfile

TrueNAS SCALE example

click on Apps -> Launch Docker image

  • Image repository: renofischa/idrive image
  • Optional timezone environment variable image
  • Storage:
    • configure your local path you need to backup as a Host Path Volume:
      You have to mount each Dataset you want to back up in a seperate directory
      image
    • configure volumes for persisting files:
      config:/opt/IDriveForLinux/idriveIt
      files:/mnt/files
      
      image
  • Update Strategy: Kill existing pods before creating new ones

leave everything else on default

unRAID example

Save the following template as My-iDrive.xml under your boot usb drive in /Config/Plugins/dockerMan/templates-user/

<?xml version="1.0"?><Container version="2">
<Name>iDrive</Name>  
<Repository>renofischa/idrive</Repository>  
<Registry>https://hub.docker.com/r/renofischa/idrive</Registry>  
<Network>host</Network>  
<MyIP/>  
<Shell>sh</Shell>
<Privileged>false</Privileged>
<Support/>
<Project/>
<Overview/>
<Category/>
<WebUI/>
<TemplateURL/>
<Icon>https://static.idriveonlinebackup.com/source/images/favicon.ico</Icon>
<ExtraParams/>
<PostArgs/>
<CPUset/>  
<DateInstalled>1676085032</DateInstalled>  
<DonateText/>  <DonateLink/>  
<Config Name="Host Path 1" Target="/opt/IDriveForLinux/idriveIt" Default="" Mode="rw" Description="" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/appdata/idrive/idriveIt</Config>  
<Config Name="Host Path 2" Target="/home/backup" Default="" Mode="ro" Description="" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/backups/</Config>  
<Config Name="Host Key 1" Target="TZ" Default="" Mode="" Description="" Type="Variable" Display="always" Required="false" Mask="false">America/New_York</Config>
<Config Name="Host Path 3" Target="/mnt/files" Default="" Mode="rw" Description="" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/appdata/idrive/files</Config>
</Container>

Configuration after first start

Configure your IDrive account after first start.

  • Exec into container
  • Run ./account_setting.pl
  • Login with your account details and configure other basic settings. Important is your Backup location.
  • Now you should see your container in your IDrive dashboard.

Update v2 to v3

In Version 3 idrive for Linux switched to a Bin package-based Installer.

  • Container tag latest now contains v3
  • steps to update a container to the new Version:
    • change mount path of volume config to /opt/IDriveForLinux/idriveIt
    • remove volume dependencies
    • Should look like this in docker-compose
    services:
      idrive:
        container_name: idrive
        image: renofischa/idrive:latest
        restart: unless-stopped
        volumes:
          - config:/opt/IDriveForLinux/idriveIt
          - files:/mnt/files
          - $BACKUPDIR:/mnt/backup:ro
        environment:
          - TZ=$TZ
          
    volumes:
      config:
      files:
    
    • Exec into container
    • Run ./idrive --account-setting
    • Login again with your account details.
    • At this question, you can enter 3 to exit:
      Do you want to:
      
      1) Reconfigure your account freshly
      2) Edit your account details
      3) Exit
      
    • Settings from v2 should still be there. Scheduled Jobs must be configured again.

About

IDrive Backup Docker image

License:MIT License


Languages

Language:Dockerfile 70.7%Language:Shell 29.3%