From 6594a3baaec3db447147e832cd402637254900cd Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Thu, 15 Feb 2018 23:03:23 +0100
Subject: [PATCH] Add minimal configuration example without optional settings.

Refers to #29, #18, #28
---
 Resources/conf-minimal/config.common.xml      | 35 +++++++++++++++++++
 .../conf-minimal/host-specific.template.xml   | 16 +++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 Resources/conf-minimal/config.common.xml
 create mode 100644 Resources/conf-minimal/host-specific.template.xml

diff --git a/Resources/conf-minimal/config.common.xml b/Resources/conf-minimal/config.common.xml
new file mode 100644
index 0000000..6f2bc1b
--- /dev/null
+++ b/Resources/conf-minimal/config.common.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ServiceConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+    <!-- IncomingDirectory: directory on SourceDrive to watch for new files -->
+    <IncomingDirectory>ProgramData\AUTOTRANSFER\INCOMING</IncomingDirectory>
+
+    <!-- ManagedDirectory: directory on SourceDrive where files and folders are
+         moved while queueing for their transfer (sub-directory "PROCESSING")
+         and to store them for deferred delection after a grace period after
+         the transfer (sub-directory "DONE"). -->
+    <ManagedDirectory>ProgramData\AUTOTRANSFER</ManagedDirectory>
+
+    <!-- DestinationAlias: friendly name for the target to be used in mails -->
+    <DestinationAlias>Core Facility Storage</DestinationAlias>
+
+    <!-- DestinationDirectory: where files should be transferred to -->
+    <DestinationDirectory>\\fileserver.mydomain.xy\share\</DestinationDirectory>
+
+    <!-- TmpTransferDir: temporary directory relative to DestinationDirectory
+         to be used for running transfers -->
+    <TmpTransferDir>AUTOTRANSFER-TMP</TmpTransferDir>
+
+    <!-- MaxCpuUsage: pause transfer if CPU usage is above this value (in %)-->
+    <MaxCpuUsage>25</MaxCpuUsage>
+
+    <!-- MinAvailableMemory: pause transfer if free RAM is below (in MB) -->
+    <MinAvailableMemory>512</MinAvailableMemory>
+
+
+    <!--  OPTIONAL CONFIGURATION SETTINGS  -->
+
+    <!--  OPTIONAL CONFIGURATION SETTINGS  -->
+
+</ServiceConfig>
\ No newline at end of file
diff --git a/Resources/conf-minimal/host-specific.template.xml b/Resources/conf-minimal/host-specific.template.xml
new file mode 100644
index 0000000..cf9f260
--- /dev/null
+++ b/Resources/conf-minimal/host-specific.template.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ServiceConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+    <!-- HostAlias: friendly name to be used for this machine in mails -->
+    <HostAlias>Confocal Microscope (Room 123)</HostAlias>
+
+    <!-- SourceDrive: local drive to operate on (include the backslash!) -->
+    <SourceDrive>D:\</SourceDrive>
+
+
+    <!--  OPTIONAL CONFIGURATION SETTINGS  -->
+
+    <!--  OPTIONAL CONFIGURATION SETTINGS  -->
+
+  </ServiceConfig>
\ No newline at end of file
-- 
GitLab