Anyone got Idrive working on Unraid ?


Recommended Posts

You'll need to setup your persistent mappings in unRAID like the docker-compose example.  I attached a screenshot showing my setup.  Be sure to create an empty idrivecrontab.json file on you local system before starting the container. Use the touch command, (touch /mnt/user/appdata/idrive/etc/idrivecrontab.json) in a terminal.

 

All mappings are Read/Write with the exception of the backup_dir, that's set to Read Only.

 

unRaid iDrive Config.jpg

Edited by taverty
  • Thanks 1
Link to comment
23 hours ago, taverty said:

You'll need to setup your persistent mappings in unRAID like the docker-compose example.  I attached a screenshot showing my setup.  Be sure to create an empty idrivecrontab.json file on you local system before starting the container. Use the touch command, (touch /mnt/user/appdata/idrive/etc/idrivecrontab.json) in a terminal.

 

All mappings are Read/Write with the exception of the backup_dir, that's set to Read Only.

 

unRaid iDrive Config.jpg

Awesome!, thank you for the how 2, im going to work on this when i get back into town!!

Link to comment
On 3/13/2023 at 2:37 AM, ocyberbum said:

just a quick question, there is no GUI for this docker? or anyway to add one if needed

 

Thanks

 

 

There is no GUI on the local unRAID server. Once connected to iDrive you can use the iDrive GUI to setup the backup. Your unRAID server will show up as an available client.

Link to comment
19 hours ago, taverty said:

There is no GUI on the local unRAID server. Once connected to iDrive you can use the iDrive GUI to setup the backup. Your unRAID server will show up as an available client.

Ok, so its like my old Synology setup i had,

I hate to more questions but i have everything done but the name and password, and i dont think im doing right? and can't find password section!

 

here is what i am changing in the account_setting.pl using Vim

 

This for user email for Idrive

);
        Common::displayMenu('', @options);
        my $loginType = Common::getUserMenuChoice(scalar(@options));

        # Get user name and validate
        my $uname = Common::getAndValidate(['enter_your', " ", $AppConfig::appType, " ", 'username', ': '], "Idrivename@mail,com", 1);
        $uname = lc($uname); #Important
        my $emailID = $uname;

 

can't find where password goes for sure, i did find this section but not sure

 

# creates all password files
        Common::createEncodePwdFiles($upasswd);
        Common::getServerAddress();

Link to comment

It has been a while.  But from what I remember I just exec'd into the container and ran the ./account_setting.pl script.  Pretty sure it asked for my password during that script run.  To Exec into the container run the following command at the unRAID command prompt:

docker exec -it idrive /bin/bash

The above command will bring you to a bash prompt inside the idrive docker container.

 

Once at that prompt, run the following command:

./account_setting.pl

The directory in the idrive container should be: /opt/idrive/IDriveForLinux/scripts

 

Once you're in the container you can run all the iDrive scripts as if you were running them on a standard Linux installation.

Link to comment
  • 2 weeks later...
On 3/11/2023 at 10:47 PM, taverty said:

You'll need to setup your persistent mappings in unRAID like the docker-compose example.  I attached a screenshot showing my setup.  Be sure to create an empty idrivecrontab.json file on you local system before starting the container. Use the touch command, (touch /mnt/user/appdata/idrive/etc/idrivecrontab.json) in a terminal.

all mappings are Read/Write with the exception of the backup_dir, that's set to Read Only.

 

On 3/11/2023 at 10:47 PM, taverty said:

 Install idrive docker on unraid under APPS Tab:
This is a summary of Taverty walking me through setting up IDrive, I hope it can help someone else!! If anything needs to be added let me know!!
https://hub.docker.com/r/taverty/idrive/

 

1- Search for idrive under APPS tab
2- Click on link labeled:  Click Here To Get More Results From DockerHub
3- Choose taverty/idrive
4- Let unraid download and convert to use with unraid 
5- Update docker container and create required paths below: See pic's for example

 

Config_dir

container path
/opt/idrive/IDriveForLinux/idriveIt

host path
/mnt/user/appdata/idrive/config

 

etc_files

container path
/etc/idrivecrontab.json

host path
/mnt/user/appdata/idrive/etc/idrivecrontab.json

 

depends_dir

container path
/opt/idrive/IDriveForLinux/scripts/Idrivelib/dependencies

host path
/mnt/user/appdata/idrive/dependencies

 

backup_dir

container path
/home/backup

host path
/mnt/user

 

under the Advanced View add link for icon
https://static.idriveonlinebackup.com/source/images/favicon.ico

Apply Changes

 
6- Make sure Idrive is Running when asked
Then Open Terminal:

Note: copy&paste code below in terminal then hit Enter after each:

7- To create an empty idrivecrontab.json file in the IDrive container
touch /mnt/user/appdata/idrive/etc/idrivecrontab.json

8- in the same Terminal in IDrive Container:
docker exec -it idrive /bin/bash

9- copy and paste then hit enter:
./account_setting.pl

No GUI just Follow prompts from the script and enter your info  

==========================================================================================
Version: 2.31            Developed By: IDrive Inc.
-------------            -----------------------------------------------------------------
Status: --               IDrive Username: No logged in user
----------               -----------------------------------------------------------------
Storage Used: --         Linux Username: root
==========================================================================================


Your service directory is: /opt/idrive/IDriveForLinux/idriveIt

Hardware Platform... 64-bit


Are you using Proxy (y/n)? 
Enter your choice: n
Checking for compatible EVS command line utility. It may take couple of minutes to complete, please wait... 
Successfully downloaded compatible EVS command line utility.

Checking for compatible python command line utility. It may take couple of minutes to complete, please wait... 
Successfully downloaded compatible python command line utility.

Checking for compatible static Perl command line utility. It may take couple of minutes to complete, please wait... 
Successfully downloaded compatible static Perl command line utility.

Please choose a method to authenticate your IDrive account:
1) Login using IDrive credentials
2) Login using your SSO account
Enter your choice: 1
Enter your IDrive username: [email protected]
Enter your IDrive password: MySecretpassword (Type carefully does not show when entering)

usernamr is email used to sign into idrive online
password is same as online


sign into idrive online and check dashboard then computers

Done
 

 

 

idrive paths 1jpg.jpg

 

snapshot idrive-1.png

Edited by ocyberbum
Link to comment
  • 3 weeks later...
On 4/14/2023 at 9:20 PM, Ectropian said:

This is an awesome tutorial.  Thank you so much!

 

Does anyone have any idea if the internal update works, or should we rebuild from each update on docker?

 

it works, just updated to v 2.37 without any problems.

 

Thank you taverty for sharing.

Edited by stalkerama
Link to comment
  • 4 weeks later...

Hi All,

 

Thanks for these clear steps. The issue I'm experiencing is that after following the steps the initial backup works fine, CDP also works for like a day. Then that's it. Perhaps I'm not the only one.

 

In the dashboard the server appears as online, also when I try to add a folder for backup that connection appears to work as well (new folders are visible).

 

status_retrieval.pl results in:

Preparing File list...

 

Latest backup job status: cancelled (which I did not do). Also when checking the schedule there is a warning: Last backupset scan did not complete: Backup.

 

Account settings (attached).

 

I tried re-installing, updating etc but so far only 1 backup for each try :).

 

File count appears to be stuck at NA (attached).

 

Kind regards

 

Koen

 

216578133_UnraidiDrive2.thumb.png.46b6b469c839d2a7142c92f578565fee.png

 

1809856075_UnraidiDrive.thumb.png.8ff015cb178d4aa29b051f4cd8536216.png

Link to comment
  • 4 weeks later...

These guys (above) did an incredible job explaining iDrive setup for UNRaid, though I still had to carefully piece parts together.

 

Background:

- I use "duplicity" to backup "stuff" to my UNRAID "/mnt/user/backup/duplicacy" folder

- also backup other "stuff" to "/mnt/user/backup/"

- I need iDrive to keep an encrypted copy of my backups from "/mnt/user/backup/" folder remotely

 

Maybe someone will use this...

 

iDrive Account Creation and UNRaid Docker Installation & Setup

1. create an iDrive account
   - Tom's Guide had a 95% discount (June 2023) for 10TB for 1 year, then ~$80py
   - see: https://www.tomsguide.com/best-picks/best-cloud-backup 
   - affiliate: https://www.idrive.com/idrive/signup/el/tomsguide95?subtag=tomsguide-us-1529756557038911000
2. I used my own iDrive encryption key and store it in my Password Manager
3. Not setting the 2FA on iDrive yet (maybe later as it might interfere with login from UNRaid)
 

Back to local UNRaid Terminal run:
mkdir -p /mnt/user/appdata/idrive/etc/
touch /mnt/user/appdata/idrive/etc/idrivecrontab.json

 

Install iDrive Docker container:
1. Search for idrive under APPS tab
2. Click on link labeled:  "Click Here To Get More Results From DockerHub"
3. Choose taverty/idrive (https://hub.docker.com/r/taverty/idrive/)
4. Let unraid download and convert to use with unraid 
5. Update docker container and create required paths below

 

In "Update Container" screen select "ADVANCED VIEW"

Icon URL:   https://static.idriveonlinebackup.com/source/images/favicon.ico

Add Path   Permissions    Container Path                            Host Path
config_dir:       R/W      /opt/idrive/IDriveForLinux/idriveIt       /mnt/user/appdata/idrive/config
etc_files:         R/W      /etc/idrivecrontab.json                     /mnt/user/appdata/idrive/etc/idrivecrontab.json
depends_dir:    R/W      /opt/idrive/IDriveForLinux/scripts/Idrivelib/dependencies    /mnt/user/appdata/idrive/dependencies
backup_dir:      R/O**    /home/backup                                 /mnt/user/backup/

 

Run either option in UNRaid Terminal else...:
1. docker exec -it idrive /bin/bash
or
2. Login to iDrive Docker Container Console 

 

Once login into iDrive Docker Container, execute:
- NOTES: Backup Location could be HOSTNAME for easier identification

root@xxxxxxxx:/opt/idrive/IDriveForLinux/scripts# ./account_setting.pl

 

Please choose a method to authenticate your IDrive account:
1) Login using IDrive credentials
2) Login using your SSO account
Enter your choice: 1

 

Enter your IDrive username: <email>
Enter your IDrive password: 

 

Creating user directory...
User directory has been created successfully.

 

Enter your encryption key: 
Verifying your encryption key... 
Verification of encryption key is successful.

 

Starting Dashboard service...
Dashboard service started.

Identifying your backup location, please wait...
No backup location found.


Enter your Backup Location [Note: Backup location should contain only letters, numbers and characters(-_)] [Optional]: <HOSTNAME>
Setting up your backup location...
Your Backup Location is set to "<HOSTNAME>".

 

Enter your Restore Location [Optional]: 
Considering Default Restore Location as "/opt/idrive/IDriveForLinux/idriveIt/user_profile/root/<email>/Restore_Data".
Your Restore Location is set to "/opt/idrive/IDriveForLinux/idriveIt/user_profile/root/<email>/Restore_Data/".

 

Your restore from location is set to "<HOSTNAME>". Do you wish to modify (y/n)?
Enter your choice: n
Your restore from location is set to "<HOSTNAME>".

 

Restore Location prompt is "Enabled". Do you want to "Disable" (y/n)?
Enter your choice: n

 

Software update notification is "Disabled". Do you want to "Enable" (y/n)?
Enter your choice: n

 

Enter your e-mail address [Optional]: 
No e-mail address is configured.

 

Your default mount point for local backup is set to "/tmp".

Default failed files percentage to notify as 'Failure' is set to 5%.
If the total files failed for backup is more than 5%, then backup will be notified as failure. 

Your 'Ignore file/folder level permission error' option has been "Disabled".

Your desktop access has been "Enabled".

Your 'Upload multiple file chunks simultaneously' option has been "Enabled".

Default missing files percentage to notify as 'Failure' is set to 5%.
If the total files missing for backup is more than 5%, then backup will be notified as failure. 

Your default backupset scan interval is set to 'Daily Once' at 12:00.

Your default bandwidth throttle is set to 100%.

Your default Backupset file has been created successfully.
Your default Restoreset file has been created successfully.
Your default Local Backupset file has been created successfully.
Your default Local Restoreset file has been created successfully.
Your default Full Exclude list file has been created successfully.
Your default Partial Exclude list file has been created successfully.
Your default Regex Exclude list file has been created successfully.

 

"<email>" is configured successfully. Do you want to login as "<email>" (y/n)?
Enter your choice: y

"<email>" is logged in successfully.

 

...the end of setup...

root@xxxxxxxx:/opt/idrive/IDriveForLinux/scripts#

 

Confirm iDrive local Docker container "daemon" (app) is running:

root@xxxxxxxx:/opt/idrive/IDriveForLinux/scripts# ps --no-headers -o comm 1
entrypoint.sh

 

Good, now read "readme.txt" (e.g. `more readme.txt`)
1. edit backup option from cmdline (if comfortable with 'vi')
   ./edit_supported_files.pl
   - option 1, add "/home/backup" to folder and ZZ to Save & Quit vi
2. Run your first backup
   ./Backup_Script.pl
3. Go check in iDrive Web console () what's happening
  https://www.idrive.com/idrive/in/console?path=/remote/devices
 

That's it!

Edited by LoneStar
  • Like 2
Link to comment
  • 3 weeks later...
  • 4 weeks later...

Hey guys, I use the idrive container for some time but I experience a growing number of Dumps inside the user folder on my cache driver under appdata. The folder is called "CDPDBDUMP" and is after 12 weeks at roughly 60 GB. Can you explain what these dump-files are and if one can delete them without breaking the backup?

Maybe @taverty can help with this one?

 

Thanks in advance.

Link to comment
  • 3 weeks later...

Does anyone know how to turn off CDP in the container?  Since I only want the backup set to run at a specific time, when I untick the checkbox on the website it does not push down to the container.  When I run ./account_setting.pl it shows the CDP server is running.  running ./cdp_server.pl (stop) does not stop the service (does nothing).  In Scheduler you can only set CDP schedule realtime, or in minutes.  Think I've tried everything I can think of. Anyone else have any ideas?

Link to comment

Thanks, everyone, for the great info on setting this up. It appears to be working, but not without a couple of issues.

 

I backed up a small folder and it said files backed up successfully, but on the iDrive website, under UnRaid, there are no files.

 

Trying to connect to UnRaid is very slow and unreliable. If it connects, it disconnects before I can change any settings.

 

On 8/1/2023 at 10:52 AM, Ectropian said:

Does anyone know how to turn off CDP in the container?  Since I only want the backup set to run at a specific time, when I untick the checkbox on the website it does not push down to the container.  When I run ./account_setting.pl it shows the CDP server is running.  running ./cdp_server.pl (stop) does not stop the service (does nothing).  In Scheduler you can only set CDP schedule realtime, or in minutes.  Think I've tried everything I can think of. Anyone else have any ideas?

 

When I do get the remote connection to work, it shows CDP is unchecked. But, it is running in the container. I don't see a way to stop it, only options are start and restart. I think, maybe it runs all the time, it just doesn't do anything if it's not checked.

 

Link to comment
  • 4 months later...
  • 2 weeks later...
  • 2 months later...
On 3/16/2023 at 7:47 PM, taverty said:

It has been a while.  But from what I remember I just exec'd into the container and ran the ./account_setting.pl script.  Pretty sure it asked for my password during that script run.  To Exec into the container run the following command at the unRAID command prompt:

docker exec -it idrive /bin/bash

The above command will bring you to a bash prompt inside the idrive docker container.

 

Once at that prompt, run the following command:

./account_setting.pl

The directory in the idrive container should be: /opt/idrive/IDriveForLinux/scripts

 

Once you're in the container you can run all the iDrive scripts as if you were running them on a standard Linux installation.

Looks like once you ugrade to 3.2 you have to run ./idrive instead of ./account_setting Is that correct?  Also, any idea on how to get the Scheduler to work properly?

Edited by shdwkeeper
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.