Procedure
To Downgrade inSync Client to lower version follow below steps:
1. Uninstall inSync Client.
2. Clean uninstall using Script. To remove the configuration files.
3. Download and install inSync Client.
5. Activate the inSync Client.
Step 1: Uninstall inSync Client
Windows
To uninstall inSync Client
On the Start menu, go to All Programs > inSync and click Uninstall inSync,
Click Uninstall on the wizard screen. The wizard displays a dialog box to confirm whether you want to retain the inSync settings.
Click Yes to retain inSync settings or else click No.
After the uninstall process completes, click Finish.
Even if you uninstall the inSync Client, some configuration files are retained on your device.To ensure complete removal of all residual files and configuration entries, you must proceed with the clean uninstall script as detailed in the Step 2.
macOS
To uninstall inSync Client:
Open Applications.
Right-click on the inSync icon
Select Show Package Contents.
Select Contents/Resources/Uninstall inSync.
Enter your password, and then click OK.
Click Yes to retain inSync settings, or else click No.
If you choose not to retain inSync settings, inSync removes all configuration details and log files. However, if you choose to retain inSync settings by clicking Yes, inSync retains your preferences and configuration details on the device.
Linux
This section explains the process of uninstalling inSync Client from a Linux device.
Before you begin
Make sure that you have superuser privileges on the device from which you want to uninstall inSync Client.
CentOS and RHEL
To uninstall the inSync Client:
1. Use the following command to identify the inSync Client version:
1 | rpm -qa | grep druva-insync-client
2. Run the following command to uninstall the inSync Client:
1 | rpm -e druva-insync-client-<version>-<arch>
Ubuntu
To uninstall the inSync Client:
1. Use the following command to identify the inSync Client version:
1 | dpkg --get-selections | grep druva-insync-client
โ
2. Run the following command to uninstall the inSync Client:
1 | dpkg -r druva-insync-client-<version>-<arch>
Step 2: Remove configuration files of inSync client using Script
Use the command Scrip to completely uninstall inSync client by removing the configuration files of the previous version.
Script to uninstall from Windows devices
@echo off
set logFile="C:\inSyncCleanup.log"
echo Starting Cleanup... >> %logFile% 2>&1
echo Stopping inSync Service... >> %logFile% 2>&1
net stop inSyncCPHService >> %logFile% 2>&1
timeout /t 2
echo Killing inSync processes... >> %logFile% 2>&1
taskkill.exe /f /im inSync.exe >> %logFile% 2>&1
taskkill.exe /f /im inSyncAgent.exe >> %logFile% 2>&1
echo Uninstalling inSync application... >> %logFile% 2>&1
wmic product where "name like '%%Druva inSync%%'" call uninstall /nointeractive >> %logFile% 2>&1
timeout /t 2
echo Clearing related folders and registry keys... >> %logFile% 2>&1
reg query "HKLM\SOFTWARE\Druva Software" >> %logFile% 2>&1
if %errorlevel% == 0 (
reg delete "HKLM\SOFTWARE\Druva Software" /f >> %logFile% 2>&1
)
rmdir /s /q "C:\inSync4" >> %logFile% 2>&1
rmdir /s /q "C:\ProgramData\Druva" >> %logFile% 2>&1
rmdir /s /q "C:\Program Files\Druva" >> %logFile% 2>&1
echo Cleanup Complete. >> %logFile% 2>&1
Using PowerShell to run uninstall script on a Windows devices
Steps to run the command using PowerShell.
Copy the script in a notepad and save it as .bat or .cmd
Open PowerShell with Admin.
Navigate to the location where the .bat/.cmd file is present (eg: cd C:\Users\username\Desktop)
type .<name of the file> and enter.
The script will run and insync will be uninstalled.
Run uninstall script on a MAC devices
How to save shell script on a Mac with NANO editor
Open Terminal
On your Mac, do one of the following:
Click the Launchpad icon in the Dock, type Terminal in the search field, then click Terminal.
In the Finder, open the /Applications/Utilities folder, then double-click Terminal.
touch uninstall.sh && chmod 755 uninstall.sh && nano uninstall.sh && sudo bash uninstall.sh
Uninstall inSync Client on Mac
#!/bin/bash
# This script is the uninstall script for Druva InSync
set +x
# Get the logged-in user using `stat`
user=$(stat -f "%Su" /dev/console)
echo "Logged in User: $user"
echo "Stopping InSync Client."
# Stop the processes
killall inSync
killall inSyncDecommission
killall inSyncClient
echo "Removing System Files"
# Remove Application Support if it exists
if [ -e /Library/Application\ Support/inSync ]; then
echo "System Application Support found and removed"
rm -rf /Library/Application\ Support/inSync
else
echo "System Application Support not found"
fi
# Remove Launch Daemon if it exists
if [ -e /Library/LaunchDaemons/inSyncDecommission.plist ]; then
echo "System Launch Daemon found and removed"
/bin/launchctl bootout system /Library/LaunchDaemons/inSyncDecommission.plist
rm -f /Library/LaunchDaemons/inSyncDecommission.plist
else
echo "System LaunchDaemon not found"
fi
sleep 3
# Remove Launch Agent if it exists
if [ -e /Library/LaunchAgents/inSyncAgent.plist ]; then
echo "System Launch Agent found and removed"
/bin/launchctl bootout system /Library/LaunchAgents/inSyncAgent.plist
rm -f /Library/LaunchAgents/inSyncAgent.plist
else
echo "System Launch Agent not found"
fi
sleep 5
# Remove InSync App if it exists
echo "Removing InSync App"
if [ -e /Applications/Druva\ inSync.app ]; then
echo "InSync App found and removed"
rm -rf /Applications/Druva\ inSync.app
else
echo "InSync App not found"
fi
# Remove Keychain entries
echo "Removing Keychain entries"
"/Applications/Druva inSync/inSync.app/Contents/MacOS/inSyncDecommission" RemoveKeychainItems
# Remove Druva Folder App if it exists
if [ -e /Applications/Druva\ inSync ]; then
echo "Druva Folder App found and removed"
rm -rf "/Applications/Druva inSync"
else
echo "Druva Folder App not found"
fi
sleep 5
echo "Removing User Directories"
# Remove User Application Support if it exists
if [ -e /Users/$user/Library/Application\ Support/inSync ]; then
echo "User Application Support found and removed"
rm -rf /Users/$user/Library/Application\ Support/inSync
else
echo "User Application Support not found"
fi
# Remove User Preferences if they exist
if [ -e /Users/$user/Library/Preferences/com.trolltech.plist ]; then
echo "User Preferences found and removed"
rm -rf /Users/$user/Library/Preferences/com.trolltech.plist
else
echo "User Preferences not found"
fi
# Remove lockfile if it exists
if [ -e /Users/$user/Library/Preferences/com.trolltech.plist.lockfile ]; then
echo "User Preferences trolltech found and removed"
rm -rf /Users/$user/Library/Preferences/com.trolltech.plist.lockfile
else
echo "User Preferences trolltech not found"
fi
# Remove inSync Update Preferences if they exist
if [ -e /Users/$user/Library/LaunchAgents/com.druva.inSyncUpdate.plist ]; then
echo "User Preferences inSyncUpdate found and removed"
rm -rf /Users/$user/Library/LaunchAgents/com.druva.inSyncUpdate.plist
else
echo "User Preferences inSyncUpdate not found"
fi
# Remove inSync Update Agent if it exists
if [ -e /Users/$user/Library/LaunchAgents/com.druva.inSyncUpdateAgent.plist ]; then
echo "User Launch Agent found and removed"
rm -rf /Users/$user/Library/LaunchAgents/com.druva.inSyncUpdateAgent.plist
else
echo "User Launch Agent not found"
fi
# Remove User Containers if they exist
if [ -e /Users/$user/Library/Containers/com.druva.insync.FinderPlugin/** ]; then
echo "User Containers found and removed"
rm -rf /Users/$user/Library/Containers/com.druva.insync.FinderPlugin/**
else
echo "User Containers not found"
fi
# Remove Group Containers if they exist
if [ -e /Users/$user/Library/Group\ Containers/com.druva.insync.sharedDefaults/** ]; then
echo "User Group Containers found and removed"
rm -rf /Users/$user/Library/Group\ Containers/com.druva.insync.sharedDefaults/**
else
echo "User Group Containers not found"
fi
# Remove pkgutil for Druva if it exists
echo "Removing pkgutil for Druva"
pkgutil --forget com.druva.inSync.pkg
exit
Script to uninstall from RHEL/CentOS devices
#!/bin/bash
#
# This is a inSync uninstallation script!
# Please consult Druva Tech Support before use it.
#
## Start running script
echo "Running script..."
RPM=$(rpm -qa |grep -i druva-insync-client)
echo $RPM
if [[ -z $RPM ]]
then
echo "No Druva inSync Packages found on host, exit..."
echo
exit
else
echo found Druva packages: $RPM
echo
echo Uninstalling: $RPM
echo
rpm -e $RPM
fi
# Following lines are for deleting remaining inSync files and
directories
sleep 5
echo
echo "Deleting remaining inSync files and directories... "rm -rf /home/*/.inSync
rm -rf /opt/Druvaecho
echo "Completed uninstall Druva inSync Packages on host"
echo
Script to uninstall from Ubuntu devices
#!/bin/bash
#
# This is a inSync uninstallation script!
# Please consult Druva Tech Support before use it.
#
#
# Start running script
echo "Running script..."
PKG=$(dpkg -la |grep -i druva-insync-client)
echo $PKG
if [[ -z $PKG ]]
then
echo "No Druva inSync Packages found on host, exit..."
echo
exit
else
echo found Druva packages: $PKG
echo
echo Uninstalling: $PKG
echo
dpkg -r $PKG
dpkg --purge $PKG
echo
fi
# Following lines are for deleting remaining inSync files and
directories
sleep 5
echo
echo "Deleting remaining inSync files and directories... "
rm -rf /home/*/.inSync
rm -rf /opt/Druva
echo
echo "Completed uninstall Druva inSync Packages on host"
echo
Step 3: Download and install inSync Client
Download the desired Client version from the download portal. Install the agent using the procedure mentioned in the article below.
Download and install inSync Client.
Step 4: Activate inSync Client
Once the inSync Client is installed you can activate the same to run the backups. For more information see,
