Introduction
Backup and protect your Linux machine data using the scripts bundle provided by IDrive. Protect files during transfer and storage, using 256-bit AES encryption with an optional private key.System/Software Requirements
Script Download
Download the latest script package to your Linux machine. Copy or move the downloaded script bundle to a location of your choice in your Linux machine and extract the zip archive.After the extraction of the zip archive, you will find the scripts folder in it. Below files will be present in the scripts folder:
Executable Script files:
Other Supported files
Other Supported Folders
Other Supported files/folders are used internally by executable script files and users must not try to execute these scripts for any reason.
Provide an appropriate permission (executable permission) to the scripts.
Example:
chmod a+x *.plHelp Pages
We have provided inbuilt help pages with the help of help script. You may execute below command and select the desired menu option to get a help page for the selected menu option. In case you do not find any relevant menu option, you may select the 'Search By keyword' menu option and provide the desired keyword to look for available information in help pages related to keyword provided by you.$./help.pl
Setup your IDrive account
You need to have an IDrive account to use the script bundle to backup your files. In case you do not have an account, please sign up and create an account here. To set up IDrive script bundle locally with your IDrive account, run the below command and follow the instructions.$./account_setting.pl
You can also authenticate with IDrive credentials or SSO credentials.
Note: Single Sign-On (SSO) allows users to login to multiple systems with just one set of credentials. Now IDrive Linux scripts is SSO enabled, users can use their SSO credentials to login to the IDrive Linux scripts.
Two-Factor Authentication
The two- factor authentication provides additional security to your account and helps in preventing unauthorized access. Once two- factor authentication is enabled via web, in addition to your password, you will need to enter a verification code sent to your email address, while signing in to your IDrive account.
To sign in after two- factor authentication is enabled,
Note: In case the code expires or you have not received the email, you can Resend Now via option2 to send an email with a new verification code.
Working with Scripts
Using IDrive scripts, you can:
What is Continuous Data Protection?
Continuous Data Protection (CDP) feature automatically recognizes the changes made to the files (limited to 5 GB in size) in the backup set and starts the backup operation in near real-time. CDP is not a replacement for the traditional schedule backup feature but works along with scheduled backup to provide timely protection to your data.Log in to your IDrive account
If you are not logged in to your IDrive account while setting up your script bundle, run the below command to login: $./login.pl Note:You can also authenticate with IDrive credentials or SSO credentials.
Note: Single Sign-On (SSO) allows users to login to multiple systems with just one set of credentials. Now IDrive Linux scripts is SSO enabled, users can use their SSO credentials to login to the IDrive Linux scripts.
Two-Factor Authentication
The two- factor authentication provides additional security to your account and helps in preventing unauthorized access. Once two- factor authentication is enabled via web, in addition to your password, you will need to enter a verification code sent to your email address, while signing in to your IDrive account.
To sign in after two- factor authentication is enabled,
Note: In case the code expires or you have not received the email, you can Resend Now via option2 to send an email with a new verification code.
Edit your backup-set/local backup-set/restore-set/local restore-set, and exclude files
Before starting any backup/local backup/restore/local restore operation, the user must add the list of files/folders required for each operation in the backup/local backup/restore/local restore set file. To update these details in the backup/local backup/restore/local restore set file, you must execute the below command: $./edit_supported_files.pl The menu option will be displayed. Select option 1 to edit the backup set file. Respective file will open in the text editor to edit. Add the files/folders that need to be backed up.Full Path Exclude
To exclude files/folders with full path,
Example:
Your Backupset contains /home/Documents and if you want to exclude /home/Documents/temp, enter the folder path ie: '/home/Documents/temp' in FullExcludeList file.Partial Path Exclude
To exclude files/folders with partial path,Example: Your Backupset contains /home/Documents and if you want to exclude all the pst files from this folder like /home/Documents/designtutorials.pst, /home/Documents/new.pst, /home/Documents/James/tutorials.pst etc, then enter 'pst' in PartialExcludeList file.
Regex Exclude
To exclude files/folders based on regex pattern,
Example:
Your Backupset contains /home/Folder01 , /home/Folder02, /home/FolderA, /home/FolderB. If you want to exclude all folders/files that contain numeric values in the name, i.e. /home/Folder01, /home/Folder02, then enter 'Folder\d+' in RegexExcludeList file.Immediate/Manual backup
You can perform immediate/manual backup using the below command: $./Backup_Script.pl When you run your backup script, it will reconfirm your backup location and allow you to change it. You can now view the graphical progress bar for your data getting backed up. If you want to view the detailed progress bar press '+' and to collapse press '-'. You can pause your backup by pressing 'p' and 'r' to resume the backup.If you want your script to run silently without displaying the progress bar then you can always use the “--silent” flag with this command.Immediate/Manual local backup
You can perform immediate/manual local backup using the below command: $./local_backup.pl Using this script, you can backup your Linux machine data to the express device shipped to you. You can view the graphical progress bar for your data getting backed up. If you want to view the detailed progress bar press '+' and to collapse press '-'. You can pause your backup by pressing 'p' and 'r' to resume the backup. Once the data is backed up, you can ship this express device back to us and within a week your data will be available in your IDrive account. For more details on express, visit Express Backup.Immediate/Manual restore
You can perform immediate/manual restore using the below command: $./Restore_Script.plDevice Verification for Restore
This is a one-time process to ensure your identity. You will need to enter the one-time verification code sent to your registered email address to authorize this as a trusted device and continue.Immediate/Manual local restore
You can perform immediate/manual local restore using the below command: $./local_restore.pl Using this script, you can restore the data from the Express device shipped to you. You can view the graphical progress bar for your data getting restored. If you want to view the detailed progress bar press '+' and to collapse press '-'. For more details on express, visit Express Restore.Schedule backup/local backup/archive cleanup / CDP job
Run the below command to manage your schedule backup/local backup/archive cleanup/CDP job: $./scheduler.pl Select the desired menu option to create, edit, view or delete your schedule backup / local backup / archive cleanup / CDP job and follow the instructions. In case you want your scheduled job to stop automatically at a scheduled time then set the cut-off time as well, while following the instructions.View progress of scheduled backup / local backup / periodic archive cleanup / CDP job
To view the progress of scheduled backup / local backup / periodic archive cleanup / CDP job, run the below command. The progress will be displayed in a compact view by default. You can pause the ongoing backup or local backup job by using “p” key and resume using “r” key. You can also view the number of files completed and remaining for backup using files count displayed under the progress bar. Progress bar can be displayed in two modes – Compact and Extended. Compact display will display consolidated results from all the engines involved in the operation. Extended display will display the progress bar for each running engine and users can find out the files getting backed up with each engine and the total number of engines involved in the operation. $ ./status_retrieval.plView/restore previous versions of a file
You can view the list of previous versions of any file and select any version that you want to restore. To retrieve a file with earlier versions, run the below command: $./restore_version.plStop ongoing backup/local backup/restore/local restore/archive cleanup/CDP operations
To stop an ongoing job (backup / local backup / restore /local restore / archive cleanup / CDP), run the below command: $./job_termination.plView/Delete operation logs
You can view or delete the logs for backup, local backup, restore, local restore, archive cleanup and CDP operations using the below command: $./logs.plArchive cleanup
Archive Cleanup compares the files of your local storage, selected for backup, with the files in your IDrive online backup account. It then deletes the files present in your account but not on your local machine. This feature thus helps you to free up space in your online backup account. To perform archive cleanup run below command: $./archive_cleanup.pl When you run the script to perform archive cleanup, you can enter a percentage of the total no. of files to be considered for deletion. This percentage based control helps to avoid large-scale deletion of files in your account. We have provided an option to delete empty directories present in your account based on your selected backup set. If a user chooses to delete the empty directories then we gather a list of all empty directories and delete them post file delete operation. Users will be able to view the detailed log for empty directory delete too in user log.We have introduced an email notification feature for periodic cleanup operations too. Now users can schedule an email notification to get an update on the periodic cleanup operation performed.Send error report
You can send error report to IDrive support by running the below command: $./send_error_report.plLog out from your IDrive account
To end the logged in session for your IDrive account, run the below command: $./logout.pl You must logout (optional) from the account to avoid any unauthorized access to your IDrive account. After logout, you need to login again to perform most of the operations.Note: Your scheduled backup / scheduled local backup / periodic cleanup / CDP jobs will run even after you log out.
Updating your script bundle
When a script gets executed, a header appears, which provides details of logged in IDrive account. Same header also displays information on any newly available script bundle. If Software Update Notification is enabled, you will see the message. A new update is available. Run check_for_update.pl to update to the latest package, indicating a new improved version of script bundle has been released. To update to most recent available script bundle please perform the below command and follow the instructions: $./check_for_update.plEdit user details
In case you want to reconfigure your IDrive account locally due to any reason or want to edit user details locally for your configured IDrive account then please perform the below command. $./account_setting.pl Only if your account is already configured in the current machine, you will find the menu which will allow you to reconfigure your IDrive account locally or will allow you to edit the user details locally for your IDrive account. You can configure the following settings:Backup Settings:
General Settings:
Restore Settings:
Services:
Test the backup speed
To test the upload speed of the backup, run the following command: $./speed_analysis.plUninstalling your script bundle
Uninstalling the script package from your system will leave the files/folders of your system liable to digital disasters. To uninstall the script bundle, run the below command and follow the instructions. $./Uninstall_Script.pl This script will automatically remove all IDrive package files and other dependency files. It will also stop all IDrive specific services and cleanup the scheduled backup/local backup/periodic cleanup/CDP jobs if any.