Switch camelCase to snake_case

Change-Id: I3c0832e2633e23517bc5c276438b61c427cf0316
diff --git a/README.rst b/README.rst
index 1e095b8..0a79118 100644
--- a/README.rst
+++ b/README.rst
@@ -75,7 +75,7 @@
         full_backups_to_keep: 3
         incr_before_full: 3
         backup_times:
-          dayOfWeek: 0
+          day_of_week: 0
           hour: 4
           minute: 52
         compression: true
@@ -92,7 +92,7 @@
   ``backup_times`` parameters is not defined, the defalut ``*`` value will be
   used. For example, if minute parameter is ``*``, it will run the backup every minute,
   which is ususally not desired.
-  Available parameters are ``dayOfWeek``, ``dayOfMonth``, ``month``, ``hour`` and ``minute``.
+  Available parameters are ``day_of_week``, ``day_of_month``, ``month``, ``hour`` and ``minute``.
   Please see the crontab reference for further info on how to set these parameters.
 
   .. note:: Please be aware that only ``backup_times`` section OR
@@ -140,7 +140,7 @@
         incr_before_full: 3
         backup_dir: /srv/backup
         backup_times:
-          dayOfWeek: 0
+          day_of_week: 0
           hour: 4
           minute: 52
         key:
@@ -154,7 +154,7 @@
   ``backup_times`` parameters is not defined, the defalut ``*`` value will be
   used. For example, if minute parameter is ``*``, it will run the backup every minute,
   which is ususally not desired.
-  Available parameters are ``dayOfWeek``, ``dayOfMonth``, ``month``, ``hour`` and ``minute``.
+  Available parameters are ``day_of_week``, ``day_of_month``, ``month``, ``hour`` and ``minute``.
   Please see the crontab reference for further info on how to set these parameters.
 
   .. note:: Please be aware that only ``backup_times`` section OR
diff --git a/tests/pillar/backup_client_backup_times.sls b/tests/pillar/backup_client_backup_times.sls
index d9952c6..a4272da 100644
--- a/tests/pillar/backup_client_backup_times.sls
+++ b/tests/pillar/backup_client_backup_times.sls
@@ -5,9 +5,9 @@
       full_backups_to_keep: 3
       incr_before_full: 3
       backup_times:
-        dayOfWeek: 0
+        day_of_week: 0
 #       month: *
-#       dayOfMonth: *
+#       day_of_month: *
         hour: 4
         minute: 52
       target:
diff --git a/tests/pillar/backup_server_backup_times.sls b/tests/pillar/backup_server_backup_times.sls
index 6076503..ac4910b 100644
--- a/tests/pillar/backup_server_backup_times.sls
+++ b/tests/pillar/backup_server_backup_times.sls
@@ -6,9 +6,9 @@
       incr_before_full: 3
       backup_dir: /srv/backup
       backup_times:
-        dayOfWeek: 0
+        day_of_week: 0
 #       month: *
-#       dayOfMonth: *
+#       day_of_month: *
         hour: 4
         minute: 52
       key:
diff --git a/zookeeper/backup.sls b/zookeeper/backup.sls
index dcca46a..39ddbc0 100644
--- a/zookeeper/backup.sls
+++ b/zookeeper/backup.sls
@@ -31,14 +31,14 @@
   - name: /usr/local/bin/zookeeper-backup-runner.sh
   - user: root
 {%- if backup.client.backup_times is defined %}
-{%- if backup.client.backup_times.dayOfWeek is defined %}
-  - dayweek: {{ backup.client.backup_times.dayOfWeek }}
+{%- if backup.client.backup_times.day_of_week is defined %}
+  - dayweek: {{ backup.client.backup_times.day_of_week }}
 {%- endif -%}
 {%- if backup.client.backup_times.month is defined %}
   - month: {{ backup.client.backup_times.month }}
 {%- endif %}
-{%- if backup.client.backup_times.dayOfMonth is defined %}
-  - daymonth: {{ backup.client.backup_times.dayOfMonth }}
+{%- if backup.client.backup_times.day_of_month is defined %}
+  - daymonth: {{ backup.client.backup_times.day_of_month }}
 {%- endif %}
 {%- if backup.client.backup_times.hour is defined %}
   - hour: {{ backup.client.backup_times.hour }}