> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims/import-export.md).

# Import, export and backups

Import project files, schedules and device lists into IMS, export an SD card for an EP3 or a file for RXP Scheduler, and restore a backup.

The import and export menus are accessed from **Farm Settings** > **Advanced**. Whenever an import process is run in IMS a backup of the previous state is created.

{% hint style="info" %}
**Applies to:** cloud IMS. Import functions can be used for tasks such as migrating an existing site to use IMS, adding spares, site expansion, and updating information to/from RXP Pod Scheduler. Phones and tablets do not typically provide interfaces for SD memory cards, so use a desktop PC or laptop for creating cards.
{% endhint %}

## IMS is the master record

IMS is considered the "master" record, any changes should be made in IMS and then updated in the RXPodScheduler application. As project files contain sprinkler name and IPC serial number information in addition to the scheduling details, it is important this is consistent with IMS. Any changes to naming or assigned IPCs (replacements or additions) made in IMS need to be made in the scheduling application also. Failure to ensure consistency could result in duplicate and/or additional sprinklers/IPCs being created which can lead to a lot of confusion.

WARNING. Do not import projects (prj or xml) again after you have made additional editing changes to the site in IMS otherwise these changes will be lost.

## Import a whole site from a project file

If you have developed an IPC configuration file and schedules using Water-Insight's IPC Manager software or the RX Plastics Pod Scheduler software then you can use the project files created by these applications as a starting point to migrate your site into IMS. The sprinkler names, corresponding IPC serial numbers and scheduling information from these files will be imported into IMS.

1. Open the **Farm Settings** menu and select **Advanced** > **Import**.
2. Select **Full Site Information**.
3. Choose the type of file to import:

   | Option                            | File                                                                                                                                                               |
   | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
   | **Project File (prj or xml)**     | Created by Water-Insight's IPC Manager software or the RX Plastics Pod Scheduler software. This is the legacy option for importing from RX Pod Scheduler software. |
   | **RXP Pod Scheduler file (json)** | Intended for two way compatibility with the RXP Pod Scheduler software                                                                                             |
   | **rxp project (xml)**             | The data.xml file from RXPodScheduler                                                                                                                              |
4. For the RXP Pod Scheduler file (json) option: if the **Replace IPCs** slider is turned on, all existing IPC details in IMS will be replaced by the imported data. If the **Replace IPCs** slider is left off, any serial number changes for existing sprinkler names will be skipped.
5. Select **Choose File** > navigate to the desired file > **Open** to start the import process.
6. A success message will be displayed including any serial numbers that were skipped. The import should take less than a minute to complete and the number of successfully imported IPCs, Schedule sets and Groups will be indicated. As long as your sprinkler/IPC data is consistent with IMS there should be no imported IPCs indicated.
7. Select **Update Gateway** to update the IMS gateway with the changes. Once successful, can then **Close**.

To view the new schedule details, navigate to **Farm Settings** > **Manage Schedules** > **View Schedules**. This schedule can now be distributed from IMS as desired. Any schedules that have been imported can be viewed and distributed from IMS, but not edited.

![The Full site information import options](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FkOGSaq0qOMZDf9xb6Z0f%2Fims-import-full-site.png?alt=media)

### Importing the RXP Scheduler data.xml file

The RXPodScheduler application allows for multiple projects/sites to be configured and these are all stored in a single file (data.xml). When importing into IMS it needs to be ensured that only the data for the site of interest is imported.

1. In a suitable location create a new folder and name it as the site of interest. Copy the contents of the RX PodSchedulerStandalone folder into this new location. Make sure to copy to a new location to avoid losing your original data.
2. Delete the contents of the Pods & Schedules folders, the QTechPodPlannerStandalone.ini file and all "DataSetBak\*" backup files. Clean the new folder location.
3. Run QTechPodPlannerStandAlone.exe. For all sites except the target site, delete all schedules, IPC entries and projects. Schedules need to be deleted before IPCs can be deleted and likewise IPCs before the associated project.
4. Confirm the IPC naming & serial numbering matches that in IMS. Update as required. Any differences in IPC naming or serial numbering will cause new IPCs to be added to the site when imported to IMS. Confirm the schedules are as desired. Save to database.
5. Close RXPodScheduler. You now have a file (data.xml) that only contains information for the desired site.
6. Login to IMS. Select Farm Settings (cog) > Advanced > Import. Choose rxp project (xml). Select **Choose File**. Navigate to the data.xml file for the desired site only. Select file and **Open**. A success message will be displayed noting any schedules, IPCs or groups imported.
7. Check the schedule(s) are as desired: Farm Settings > Manage Schedules > View Schedules. Delete any old schedules that are no longer needed to avoid confusion (select more menu > Delete). The new schedule(s) is now ready for distribution in IMS.

Blank schedule files are generated by RXPodScheduler for IPCs which haven't been scheduled. This gives two options: 1. Ensure the desired schedule is sent to the associated IPCs only (care is needed when distributing the schedules in IMS). 2. Create a single schedule that covers every IPC on the site (would allow the schedule whole site option in IMS).

## Import schedules from a list (CSV)

Schedules can be imported in a list form using the provided template. These schedules are not editable in IMS but do allow more complex scheduling requirements such as multi day schedules, specific start times, multiple start times. Complex scheduling can be defined, but care needs to be taken to ensure all desired sprinklers are covered and to avoid undesired behaviour such as unwanted overlaps in run times.

1. From the IMS home screen, open **Farm Settings** > **Advanced** > **Import**. From the IMS Import menu select **Schedules**.
2. A template can be downloaded via the link (if required): [IMS schedule import template](https://www.waterinsight.co.nz/wp-content/uploads/IMS_Schedule_Import_Template.csv).
3. Complete the scheduling template with the desired scheduling details and save as a CSV. Multiple start times and/or days of operation can be defined.

   | Column       | What to enter                            |
   | ------------ | ---------------------------------------- |
   | **IPC NAME** | Name of the sprinkler to schedule        |
   | **TIME**     | Scheduled start time (h:mm, 24hr format) |
   | **DAY**      | Day of schedule                          |
   | **DURATION** | how long to run sprinkler for (h:mm)     |

   If there are multiple start times for an IPC(s) within the same day the scheduling needs to be entered in chronological order. For example, a morning start time needs to come before an afternoon start time in the list.
4. Select **Choose File**. Navigate to your file. Select **Open** to start the import process. The file name will be used as the schedule name. If the schedule name already exists in IMS, the schedule will be overwritten with the imported data.

The import will take less than a minute to complete and the successfully imported Schedule sets will be indicated. Any sprinklers named in the scheduling, that don't exist in IMS will be indicated. To view the new schedule details, navigate to **Farm Settings** > **Manage Schedules** > **View Schedules**. This schedule can now be distributed from IMS as desired.

## Import locations or a list of IPCs

* Locations from a KML or KMZ file: see [Sprinkler locations and points of interest](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims/locations.md).
* A list of IPC serial numbers: see [Add IPCs and set them to work](https://help.qtech.co.nz/water-insight/ims-and-gateways/ims/add-ipcs.md).

## Export an SD card for an EP3

If the IMS gateway is not installed on site yet, the site configuration can be exported from IMS for use in an [EP3](https://help.qtech.co.nz/water-insight/handheld-tools/ep3-programmer.md) for configuring the channel, farm ID and scheduling of IPCs. This is also a good point to create an SD as a backup option for using an EP3 or if you know there is no cell coverage on site. Access to a computer with a SD card reader (or using an USB card reader adapter) is required to generate and load the required files to an SD card.

1. Open **Farm Settings** > **Advanced** > **Export**.
2. Choose **Export Full Configuration of the Site**. A compressed (zip) file (Site.zip) will be downloaded to your default downloads folder. Save this file to a new location if desired.
3. This file must be unzipped for use on the EP3. Right click on the file and choose **Extract all**. Two folders will be created called pods and schedules.
4. Insert your SD card into the computer (or adapter). Open the drive folder using file explorer. Copy the pods and schedules folders onto the card. Ensure they are copied to the root folder on the card and not to any sub folders.
5. Safely remove (eject) the card for use in your EP3. Right click on the drive name in file explorer and select eject.

Then load the files on the EP3. See [Load or change the podlist and schedules](https://help.qtech.co.nz/water-insight/handheld-tools/ep3-programmer/podlist-and-schedules.md).

## Export for RXP Scheduler

1. Open **Farm Settings** > **Advanced** > **Export**.
2. Select **Export RXP Pod Scheduler/IMS backup file (json)**.

Two-way compatibility with the RX Plastics Pod Scheduler software is achieved by using the RXP Pod Scheduler (json) import/export option. This allows sprinkler/IPC details, groups and schedules to be transferred between IMS and the RXP Pod Scheduler software. The file will be downloaded to your default downloads folder. Save this file to a new location if desired. This file is designed for importing into the RX Plastics Pod Scheduler. Confirm with RX Plastics for version and availability.

## Back up and restore

Whenever an import process is run in IMS a backup of the previous state is created. Sprinkler/IPC details, Sprinkler locations, Groups & Schedules are backed up. Backups can also be manually created & deleted.

1. To restore the IMS configuration from a backup access the menu from the IMS home screen: **Farm Settings** > **Advanced** > **Backup & Restore**.
2. Select the backup to be restored from the drop down list. Select **Restore**.
3. Backups can be manually Created and Deleted using the available options.
