---
title: "Upgrade the DataSync Agent"
canonical: "https://docs.perspectium.com/space/Iodine/1704511/Upgrade+the+DataSync+Agent"
format: markdown
---
> Macro (panel)
> 
> :warning:<span style="color: #000000"> First, you will need to </span>[<span style="color: #000000">stop the DataSync Agent</span>](https://docs-perspectium.atlassian.net/wiki/spaces/Iodine/pages/1704499)<span style="color: #000000">.</span>
> 
> :warning: Next, <span style="color: #000000">make sure that you have backed up your local agent files, namely the files in the </span>**<span style="color: #000000">conf</span>**<span style="color: #000000"> directory in your Perspectium Replicator Agent directory.</span>
> 
> :warning: <span style="color: #000000">You will also need to request the latest </span>**<span style="color: #000000">Agent Installer</span>**<span style="color: #000000"> from </span>[<span style="color: #000000">Perspectium Support</span>](mailto:support@perspectium.com)<span style="color: #000000">.</span>

> Macro (anchor)



> Macro (panel)
> 
> > Macro (toc)


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** **> Macro (anchor)



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**.

> Macro (ui-text-box)
> 
> 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
```

[<span style="color: #000000">↑ Go to top of page</span>](#UpgradetheDataSyncAgent-TOP)


---


# Upgrading the Agent through the Agent Installer** **> Macro (anchor)



> Macro (ui-steps)
> 
> > Macro (legacy-content)
> 
> > Macro (legacy-content)
> 
> > Macro (legacy-content)
> 
> > Macro (legacy-content)
> 
> > Macro (legacy-content)
> 
> > Macro (legacy-content)
> 
> > Macro (legacy-content)
> 
> > Macro (legacy-content)
> 
> > Macro (legacy-content)

[<span style="color: #000000">↑ Go to top of page</span>](#UpgradetheDataSyncAgent-TOP)


---


# 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. 

1. Stop the DataSync Agent
2. 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:
  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:
  
3. Start the DataSync Agent

> ❌ **Warning**
> ❌ 
> ❌ <span style="color: #333333">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. </span>

[<span style="color: #000000">↑ Go to top of page</span>](#UpgradetheDataSyncAgent-TOP)


<span style="color: #000000">**Next steps**</span>

---

[<span style="color: #000000">Start or stop the DataSync Agent</span>](https://docs-perspectium.atlassian.net/wiki/spaces/Iodine/pages/1704499)