Answers.Body: <p>The only thing that Craft guarantees to be writable is craft/storage (and to a limited extent, craft/config).</p>
  
  <p>But, 99% of things in craft/storage can and will be rebuilt as needed depending on the request, even if the entire folder has been nuked.</p>
  
  <p>You can either work within that context, save your assets as blob's in the database (would not recommend) or in your plugin's installation instructions, make sure that you specify they create a craft/plugins/pluginHandle/writable folder you can save your asset revisions to.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-24T21:57:37.733Z
Answers.LastActivityDate: 2014-06-24T21:57:37.733Z
Answers.UserDisplayName: Brad Bell
Body: <p>I need to store revisions of assets for a plugin I am working on, what is the best / most robust location to store them?</p>
  
  <p>I need the location / files to:</p>
  
  <ol>
  <li>Always be writable.</li>
  <li>Not removed when / if craft/storage is cleaned out.</li>
  <li>Unaffected by updates or cache being cleared.</li>
  </ol>
  
  <p>S</p>
  
Tags: <plugin-development><assets>
Title: Where to store asset backups for plugin?
ThreadText: # Where to store asset backups for plugin?
  
  (Asked by: username_0 on 2014-06-24)
  
  I need to store revisions of assets for a plugin I am working on, what is the best / most robust location to store them?
  
  I need the location / files to:
  
  1. Always be writable.
  2. Not removed when / if craft/storage is cleaned out.
  3. Unaffected by updates or cache being cleared.
  
  S
  
  **Tags:** plugin-development, assets
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-06-24. Score: 1 | Accepted answer
  
  The only thing that Craft guarantees to be writable is craft/storage (and to a limited extent, craft/config).
  
  But, 99% of things in craft/storage can and will be rebuilt as needed depending on the request, even if the entire folder has been nuked.
  
  You can either work within that context, save your assets as blob's in the database (would not recommend) or in your plugin's installation instructions, make sure that you specify they create a craft/plugins/pluginHandle/writable folder you can save your asset revisions to.
  
  
  ---
  
  