iDrive anad iDevUtil
-
Hi CraigWeb,
It sounds like the Linux permissions on the /opt/Idrive_ARM/ files might not be entirely correct. Here's the rwx from a working ES
-rwxr-xr-x Backup_Script.pl -rw-r--r-- BackupsetFile.txt -rw-r--r-- check.txt -rw-r--r-- CONFIGURATION_FILE -rw-r--r-- ExcludeList.txt -rwxr-xr-x header.pl -rw-r--r-- Icon -rwxr-xr-x idevsutil -rwxr-xr-x Job_Termination_Script.pl drwxr-xr-x account@infiniteautomation.com -rwxr-xr-x login.pl -rwxr-xr-x logout.pl -rw-r--r-- ReadMe.txt -rw-r--r-- RestoresetFile.txt -rwxr-xr-x Scheduler_Script.pl -rwxr-xr-x Status_Retrieval_Script.pl
-
Thanks for that, I hit another brick wall.
mango@Mango:/opt/Idrive_ARM$sudo nano CONFIGURATION_FILE mango@Mango:/opt/Idrive_ARM$sudo perl login.pl @ERROR: PROTOCOL VERSION MISMATCH on module ibackup idevs error: error starting client-server protocol (code 5) at main.c(2833) [receiver=1.0.2.6]
-
Sounds like you may need up update the command line utilities. You can download the latest here: https://www.idrive.com/cmd_steps (32bit Linux)
-
Hi @phildunlap
I am still not getting any where with this. I have tried all the linux Idevsutils... Setting it up on my cloud server was a breeze. When I downloaded the Command line utilities, and ran it I got a Syntax error. I then tried to run the Account_Settings.pl I get the following error.
Checking for compatible idevsutil command line utility... unable to get compatible idevsutil binary. mango@Mango:/opt/Idrive_ARM$
Could it be that something has changed on Idrives side and there is no utilitie for the ES?
-
@craigweb and @phildunlap was this ever resolved. this is the problem I'm currently experiencing
-
Hi chio,
What have you tried / run so far? I was able to set up Idrive on the latest MangoES image without encountering the 'unable to get compatible idevsutil binary.' by running
chmod a+x /opt/Idrive_ARM/*.pl; chmod a+x /opt/Idrive_ARM/idevsutil; #edit the CONFIGURATION_FILE cd /opt/Idrive_ARM; ./login.pl;
See: https://help-infinite-automation.squarespace.com/config/
-
Here is a solution to the iDrive problem. This involves using their newer Linux utility. Note, I am a Linux novice so there might be more efficient ways to do some of this.
Prerequisites
- A SSH client such as PuTTY https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
- A SCP client such as WinSCP https://winscp.net/eng/index.php
Configuration
-
Download the latest Linux scripts from iDrive, https://www.idrive.com/readme download the Linux scripts in the tutorial.
-
Extract the downloaded file on your Windows machine. You will see a directory called scripts which has all of the files. I renamed this directory from scripts to IDriveBackup so its more descriptive.
-
Open WinSCP.
a. Host name is the IP address of the MangoES
b. Change file protocol to SCP
c. Change port number to 2222
d. Enter the SSH credentials
e. Click login and accept the key. -
On the ‘right’ side of WinSCP navigate to /opt/Idrive_ARM
-
On the ‘left’ side of WinSCP navigate to where you extracted the download.
a. Click the ‘IDriveBackup’ and then click ‘Upload’ -
If you get a permissions error you need to change the permissions for the Idrive_ARM directory. If you’re unfamiliar with Linux the easier method is through the file management tool. You can access this by going to https://[mangoIPaddress]:10000
Select the Idrive_ARM folder then Edit -> Change Permissions.Change permission to 0777.
-
‘IDriveBackup’ should now be in the MangoES.
You can close WinSCP.
- Now connect to MangoES using PuTTY on port 2222 with the SSH credentials.
- Navigate to the /opt/Idrive_ARM/IDriveBackup/
- Provide an appropriate permission (executable permission) to the scripts by running:
sudo chmod a+x *.pl
From here you can follow the tutorial on https://www.idrive.com/readme
The ‘backup’ location is the directory on your iDrive account that you want this device to be backed up to. We set this to Mangoxxxx where xxxx is the 4 digits of the particular mango device. There are steps in the tutorial to set the backup file set, this is where you set which directories to backup. This should be set to /opt/mango/
There is a utility to set the backup frequency as well.
-
Thank you I don't think I ever went back to solving this.
-
@CraigWeb you're welcome. I hope this helps.
-
Thanks for sharing how you got it working!