---
title: "Upgrade the DataSync Agent"
canonical: "https://docs.perspectium.com/space/Iodine/1704511/Upgrade%20the%20DataSync%20Agent"
format: markdown
---
First, you will need to  stop the DataSync Agent .  Next,  make sure that you have backed up your local agent files, namely the files in the  conf  directory in your Perspectium Replicator Agent directory.   You will also need to request the latest  Agent Installer  from  Perspectium Support . To start upgrading your DataSync Agent, choose from below: Upgrade the Agent through command line Upgrade the Agent through Agent installer Upgrading the Agent through the command line   If you generated an automatic installation script with your previous installation, you can run the installer from the command line and pass the automatic installation file as a parameter. Doing so will cause the installer to run and use all the settings you specified in the previous installation. You will not be prompted for this information. To run the installer with an auto installation script, open a command window and change to the directory where the new installer jar file resides. Next you should locate the auto installation script from your previous install. It is usually in the top directory of the agent installation and if you accepted the default name will be called  auto-install.xml . Once you know the location, copy and paste the  auto-intall.xml  into the same folder or directory as the  perspectium-datasync-installer.jar . The following is for Linux only. Now you can run the following command making sure to use the correct name of the installer jar file: java -jar perspectium-replicator-installer.jar auto-install.xml ↑ Go to top of page Upgrading the Agent through the Agent Installer   ↑ Go to top of page Upgrading Java for the agent Here are the instructions to follow if you're upgrading your Java version in a  Windows  machine, or moving from 32-bit to 64-bit Java.  Stop the DataSync Agent Modify the path for Java At the bottom of  wrapper.conf  file, there should be the following lines corresponding to the installed directory of Java and your current version: set.JAVA_HOME=C:\Program Files\Java\jre1.8.0_131 Modify the  set.JAVA_HOME  variable to the location of your new version of Java. For example, if you are upgrading the version reflected above (Java 1.8.0_131) to version 1.8.0_144, you would modify like so: set.JAVA_HOME=C:\Program Files\Java\jre1.8.0_144 Start the DataSync Agent Warning If you did not perform these steps, and the version of Java was upgraded on the Agent's VM, then it will run into issues. It will likely crash and fail to start up.  ↑ Go to top of page Next steps Start or stop the DataSync Agent