title: How to include multiple directories in Android auto backup rule?
body: <p>I have the following Android backup rule.</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;full-backup-content&gt;
      &lt;!-- /data/user/0/com.xxx.yyy/databases --&gt;
      &lt;include domain=&quot;database&quot; path=&quot;.&quot; /&gt;
  
      &lt;!-- /data/user/0/com.xxx.yyy/shared_prefs --&gt;
      &lt;include domain=&quot;sharedpref&quot; path=&quot;com.xxx.yyy_preferences.xml&quot; /&gt;
      &lt;include domain=&quot;sharedpref&quot; path=&quot;com.xxx.yyy.rate.AppRater.xml&quot; /&gt;
      &lt;include domain=&quot;sharedpref&quot; path=&quot;com.xxx.yyy.billing.Affiliater.xml&quot; /&gt;
      &lt;include domain=&quot;sharedpref&quot; path=&quot;com.xxx.yyy.consent.Consenter.xml&quot; /&gt;
  
      &lt;!-- /storage/emulated/0/Android/data/com.xxx.yyy/files --&gt;
      &lt;include domain=&quot;external&quot; path=&quot;recording/&quot; /&gt;
      &lt;include domain=&quot;external&quot; path=&quot;attachment/&quot; /&gt;
  &lt;/full-backup-content&gt;
  </code></pre>
  <p>However, I notice, by doing so, strangely only</p>
  <p><strong>/storage/emulated/0/Android/data/com.xxx.yyy/files/recording</strong> is backup/ restore successfully.</p>
  <p><strong>/storage/emulated/0/Android/data/com.xxx.yyy/files/attachment</strong> is ignored.</p>
  <p>But, if I change the rule to</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;full-backup-content&gt;
      &lt;!-- /data/user/0/com.xxx.yyy/databases --&gt;
      &lt;include domain=&quot;database&quot; path=&quot;.&quot; /&gt;
  
      &lt;!-- /data/user/0/com.xxx.yyy/shared_prefs --&gt;
      &lt;include domain=&quot;sharedpref&quot; path=&quot;com.xxx.yyy_preferences.xml&quot; /&gt;
      &lt;include domain=&quot;sharedpref&quot; path=&quot;com.xxx.yyy.rate.AppRater.xml&quot; /&gt;
      &lt;include domain=&quot;sharedpref&quot; path=&quot;com.xxx.yyy.billing.Affiliater.xml&quot; /&gt;
      &lt;include domain=&quot;sharedpref&quot; path=&quot;com.xxx.yyy.consent.Consenter.xml&quot; /&gt;
  
      &lt;!-- /storage/emulated/0/Android/data/com.xxx.yyy/files --&gt;
      &lt;include domain=&quot;external&quot; path=&quot;attachment/&quot; /&gt;
      &lt;include domain=&quot;external&quot; path=&quot;recording/&quot; /&gt;
  &lt;/full-backup-content&gt;
  </code></pre>
  <p><strong>/storage/emulated/0/Android/data/com.xxx.yyy/files/attachment</strong> is backup/ restore successfully.</p>
  <p><strong>/storage/emulated/0/Android/data/com.xxx.yyy/files/recording</strong> is ignored.</p>
  <p>Does anyone know it is so? How can I backup both attachment and recording folders?</p>
  <p>I am testing using guidelines at</p>
  <p><a href="https://developer.android.com/guide/topics/data/testingbackup" rel="nofollow noreferrer">https://developer.android.com/guide/topics/data/testingbackup</a></p>
  <p><strong>I guess we are not allow, to include multiple directories from the same domain?</strong></p>