title: It is possible to use mongorestore and mongodump command from Java or JavaFx?
body: <p>I am new to JavaFX so here is a scenario:</p>
  
  <ul>
  <li>I have running Mongo as Windows service</li>
  <li>I have buttons in JavaFX stage for backup and restore databases in Mongo</li>
  </ul>
  
  <p>It is possible to backup or restore database by putting code in <code>onClick</code> method of buttons? Can someone tell me how to do this or provide code for this?</p>
  
  <ul>
  <li>Path: <code>"Path to Store Database Backup in My Computer"</code></li>
  <li>Method for backup: <code>public void bBackup() { /* Code for backup data */ }</code></li>
  <li>Method for restore: <code>public void bRestore() { /* Code for restore data */ }</code></li>
  </ul>