title: How to automatically backup Firestore database daily
body: <p>I would like to backup a Firestore database on a daily basis. </p>
  
  <p>My data structure is like this:</p>
  
  <pre><code>usersCollection
    uid
       defaultCurrency: 'USD'
       name: 'something'
       dreamsCollection
                       name
                       image
  </code></pre>
  
  <p>I have looked at <code>firestore-export-import</code> and <code>node-firestore-backup</code> to do the backup and export the data to a JSON file.</p>
  
  <p>My questions are:</p>
  
  <ol>
  <li>If I create a cloud function how do I run the cloud function daily?</li>
  <li>What is the best way to do the backup? 
  
  <ul>
  <li>Should I store the data in firebase storage and how to do this? </li>
  <li>Should I save the JSON to a separate service etc?</li>
  </ul></li>
  </ol>
  
  <p>Any help, no matter how small would be appreciated.</p>
  
  <p>Thanks</p>