taverty Posted March 12, 2023 Share Posted March 12, 2023 (edited) 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. Edited March 12, 2023 by taverty 1 Quote Link to comment
taverty Posted March 12, 2023 Share Posted March 12, 2023 As a side note, if you want the nice iDrive icon to show in your Docker view list use the following link for the Icon URL: https://static.idriveonlinebackup.com/source/images/favicon.ico The option is under the Advanced View. Quote Link to comment
ocyberbum Posted March 13, 2023 Share Posted March 13, 2023 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. Awesome!, thank you for the how 2, im going to work on this when i get back into town!! Quote Link to comment
ocyberbum Posted March 13, 2023 Share Posted March 13, 2023 just a quick question, there is no GUI for this docker? or anyway to add one if needed Thanks Quote Link to comment
taverty Posted March 16, 2023 Share Posted March 16, 2023 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. Quote Link to comment
ocyberbum Posted March 16, 2023 Share Posted March 16, 2023 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(); Quote Link to comment
taverty Posted March 17, 2023 Share Posted March 17, 2023 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. Quote Link to comment
ocyberbum Posted March 26, 2023 Share Posted March 26, 2023 (edited) 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 Edited March 26, 2023 by ocyberbum Quote Link to comment
Ectropian Posted April 15, 2023 Share Posted April 15, 2023 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? Quote Link to comment
stalkerama Posted April 20, 2023 Share Posted April 20, 2023 (edited) 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 April 20, 2023 by stalkerama Quote Link to comment
K81 Posted May 14, 2023 Share Posted May 14, 2023 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 Quote Link to comment
LoneStar Posted June 7, 2023 Share Posted June 7, 2023 (edited) 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 June 17, 2023 by LoneStar 2 Quote Link to comment
rpmalouin Posted June 23, 2023 Share Posted June 23, 2023 There is a little bit of work to do in iDrive to get this working correctly. See attached for what you need to do in iDrive. Quote Link to comment
giusemr Posted July 17, 2023 Share Posted July 17, 2023 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. Quote Link to comment
Ectropian Posted August 1, 2023 Share Posted August 1, 2023 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? Quote Link to comment
jcato Posted August 3, 2023 Share Posted August 3, 2023 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. Quote Link to comment
unraiderofthelostark Posted December 31, 2023 Share Posted December 31, 2023 Just want to appreciate @LoneStar -- Instructions worked on the 2nd try. Small improvement: create the host paths you define first before running the docker - makes it go easier. Otherwise pretty flawless. Quote Link to comment
docwisdom Posted January 4 Share Posted January 4 Fantastic work, thank you so much! Now I can stop using a windows VM for this Quote Link to comment
duckfarts Posted January 14 Share Posted January 14 Whenever I run through the account_setting.pl script, I get this error message and the script stops: Unable_to_find_account_type_dedup_or_no_dedup Does anybody know what might be causing this, or can anybody point me in the right direction? Quote Link to comment
shdwkeeper Posted March 18 Share Posted March 18 (edited) 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 March 18 by shdwkeeper Quote Link to comment
Recommended Posts
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.