Run IDrive Linux Client in a docker container
50K+
Warning
Upgrading to version 3.9.0 and following versions of the iDrive client does not work correctly. Please have a look at [Issue #26](/../../issues/26)
Run IDrive Linux Client in a docker container
GitHub: https://github.com/snorre-k/idrive-docker
docker build -t idrive-docker:latest .
Image is tagged idrive-docker:latest. The image is also available on Dockerhub and GHCR. Thx to @araines, the image gets also tagged with the iDrive client version.
snorre0815/idrive-docker:latestghcr.io/snorre-k/idrive-docker:latestsnorre0815/idrive-docker:versionghcr.io/snorre-k/idrive-docker:versiondocker volume create idrive
docker run -d --name idrive -v idrive:/opt/IDriveForLinux/idriveIt \
-v /path/to/backup:/source/1:ro -e TZ="Etc/UTC" \
snorre0815/idrive-docker:latest
Data to be backuped should be located in /path/to/backup. It is mapped to /source/1 inside the container. You can specify more mappings like this to backup different folders (e.g.: -v /path/to/anotherbackup:/source/2). In the IDrive backup configuration you then only have to specify /source as backup source.
USERNAME=<myUserName> # adapt this to your needs
CONFIG_PATH=/home/$USERNAME/docker/idrive/config # adapt this to your needs
mkdir -p $CONFIG_PATH
touch $CONFIG_PATH/idrivecrontab.json
docker run -d --name idrive \
-v $CONFIG_PATH/cache:/opt/IDriveForLinux/idriveIt/cache \
-v $CONFIG_PATH/user_profile:/opt/IDriveForLinux/idriveIt/user_profile \
-v $CONFIG_PATH/idrivecrontab.json:/opt/IDriveForLinux/idriveIt/idrivecrontab.json \
-v /path/to/backup:/source/1:ro \
-e TZ="Etc/UTC" \
snorre0815/idrive-docker:latest
docker compose build idrive
docker compose up -d idrive
Adapt the mounts in the compose file docker-compose-mounts.yml to your needs. Take a note of the location of the idrivecrontab.json file. This has to be created before the start of the container.
touch </path/to/config>/idrivecrontab.json
docker compose --file docker-compose-mounts.yml up -d idrive
You have to login to your IDrive account after first start.
docker exec -it idrive ./idrive --account-setting
Now you login and specify the basic settings. For me this worked best:
1) Login using IDrive credentials
Enter your IDrive username:Enter your IDrive password:1) Create new Backup Location
Enter your Backup Location - enter a name - do no keep emptyFor more information and additional ./idrive parameters have a look at the IDrive documentation.
The login and settings are stored persistent in the volume or the bind mounts.
The configuration and operation of backup and restore can be done in the IDrive GUI. Help can be found on the IDrive FAQs for Linux.
If you had the old version 2.x (latest was 2.38) running, you have to migrate the configuration to the new 3.x version. To do this, first you have to use the new image and then run docker exec -it idrive ./idrive --account-setting.
WARNING: Please take a note on your schedules, as they will be deleted in the next steps.
Linux user "root" is already having an active script setup with path "/IDriveForLinux/scripts/Idrivelib/lib/dashboard.pl". Configuring the same user profile with current path will terminate and delete all the existing scheduled jobs. Do you want to continue (y/n)?: y/IDriveForLinux you also have to adapt this, as IDrive is now located in /opt/IDriveForLinux.Be advised, that the containers timezone is UTC and so are the backup times and the log entries. Adapt the TC environment variable to your timezone to have local time in place.
Content type
Image
Digest
sha256:19e893597…
Size
369.7 MB
Last updated
8 days ago
docker pull snorre0815/idrive-docker