IDrive services persist, so no need to relogin after each restart of the container.
It also works in TrueNAS SCALE. Configuration example is below.
- Docker installed
- IDrive account
services:
idrive:
container_name: idrive
image: ghcr.io/lunksnee/idrive-persist:release
restart: unless-stopped
volumes:
- config:/opt/IDriveForLinux/idriveIt
- dependencies:/opt/IDriveForLinux/bin/Idrivelib/dependencies
- files:/mnt/files
- $BACKUPDIR:/mnt/backup:ro
environment:
- TZ=$TZ
volumes:
config:
dependencies:
files:
- volumes config, dependencies 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
click on Apps -> Launch Docker image
- Image repository:
ghcr.io/lunksnee/idrive-persist
- Optional timezone environment variable
- 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
- configure volumes for persisting files:
config:/work/IDriveForLinux/idriveIt dependencies:/work/IDriveForLinux/scripts/Idrivelib/dependencies files:/mnt/files
- configure your local path you need to backup as a Host Path Volume:
- Update Strategy: Kill existing pods before creating new ones
leave everything else on default
Configure your IDrive account after first start.
- Exec into container
- Run
./idrive -a
- 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.