Answers.Body: <p>You may need to write some kind of utility code to assist you in this task.</p>
  <p>I would use a console command for this that:</p>
  <ul>
  <li>loops over the entries in the &quot;Staff Articles&quot; section</li>
  <li>loops over the assets selected in the &quot;Staff Photos&quot; field</li>
  <li>change their volume and folderId</li>
  <li>save the assets</li>
  </ul>
  <p>This may not be the best solution but should work.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-06T10:46:46.170Z
Answers.LastActivityDate: 2021-09-06T10:46:46.170Z
Answers.UserDisplayName: nstCactus
Body: <p>I've got a site where all the images for all the entries were added to a single, monolithic &quot;Uploads&quot; Asset volume, and I need to separate staff-uploaded images from user-uploaded images so the former can't accidentally use the latter.</p>
  <p>The site has two sections: &quot;Staff Articles&quot;, and &quot;User Content&quot;. Both sections use the same custom Assets field: &quot;Photos&quot;.</p>
  <p>The &quot;Staff Articles&quot; section has perhaps a couple hundred photos spread across a few dozen entries. The &quot;User Content&quot; section has ~6,500 images, spread across ~1,500 entries.</p>
  <p>I'm partway to a fix, but I need advice.</p>
  <ul>
  <li>I've created a second &quot;Images&quot; Asset volume for the &quot;Staff Articles&quot; images.</li>
  <li>I've renamed the &quot;Photos&quot; field to &quot;User Photos&quot;, to leave the majority of the image assets in-place and as-is. The field is not (yet) restricted to a single Asset volume; it has access to both.</li>
  <li>I plan to create a <em>new</em> field for the &quot;Staff Articles&quot; to use; let's call it &quot;Staff Photos&quot; for clarity. It, too, will initially have access to both Asset volumes.</li>
  </ul>
  <p>I was planning to add the new &quot;Staff Photos&quot; field to the &quot;Staff Articles&quot; section, and then to manually edit each entry to re-select in the &quot;Staff Photos&quot; field whatever was already selected in the now-renamed &quot;User Photos&quot; field, but I'm not sure if there's not a better way.</p>
  <p>So, what's the best way to &quot;split&quot; the assets apart? Specifically, to relocate the &quot;Staff Articles&quot; assets to their new &quot;Images&quot; volume, and have the entries updated to use the new &quot;Staff Photos&quot; field?</p>
  
Tags: <assets><assets-field>
Title: Split Assets volume into two
ThreadText: # Split Assets volume into two
  
  (Asked by: username_0 on 2021-09-06)
  
  I've got a site where all the images for all the entries were added to a single, monolithic "Uploads" Asset volume, and I need to separate staff-uploaded images from user-uploaded images so the former can't accidentally use the latter.
  
  The site has two sections: "Staff Articles", and "User Content". Both sections use the same custom Assets field: "Photos".
  
  The "Staff Articles" section has perhaps a couple hundred photos spread across a few dozen entries. The "User Content" section has ~6,500 images, spread across ~1,500 entries.
  
  I'm partway to a fix, but I need advice.
  
  * I've created a second "Images" Asset volume for the "Staff Articles" images.
  * I've renamed the "Photos" field to "User Photos", to leave the majority of the image assets in-place and as-is. The field is not (yet) restricted to a single Asset volume; it has access to both.
  * I plan to create a *new* field for the "Staff Articles" to use; let's call it "Staff Photos" for clarity. It, too, will initially have access to both Asset volumes.
  
  I was planning to add the new "Staff Photos" field to the "Staff Articles" section, and then to manually edit each entry to re-select in the "Staff Photos" field whatever was already selected in the now-renamed "User Photos" field, but I'm not sure if there's not a better way.
  
  So, what's the best way to "split" the assets apart? Specifically, to relocate the "Staff Articles" assets to their new "Images" volume, and have the entries updated to use the new "Staff Photos" field?
  
  **Tags:** assets, assets-field
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-09-06. Score: 1
  
  You may need to write some kind of utility code to assist you in this task.
  
  I would use a console command for this that:
  
  * loops over the entries in the "Staff Articles" section
  * loops over the assets selected in the "Staff Photos" field
  * change their volume and folderId
  * save the assets
  
  This may not be the best solution but should work.
  
  
  ---
  
  