Fix backupninja

Change-Id: I58f684025e8aae21a54dcc2df25d68a9e8a8f12a
diff --git a/salt/meta/backupninja.yml b/salt/meta/backupninja.yml
index c52ae8c..37979e7 100644
--- a/salt/meta/backupninja.yml
+++ b/salt/meta/backupninja.yml
@@ -1,5 +1,10 @@
+{%- if pillar.salt.master is defined %}
+  {%- from "salt/map.jinja" import master with context %}
 backup:
   salt:
     fs_includes:
-    - /srv/salt/reclass
+      {%- if master.pillar.engine == 'reclass' or (master.pillar.engine == 'composite' and master.pillar.reclass is defined) %}
+      - {{ master.pillar.get('reclass', {}).get('inventory_base_uri', '/srv/salt/reclass') }}
+      {%- endif %}
     fs_excludes: []
+{%- endif %}