Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • blackhawk 313 posts 1368 karma points
    Nov 07, 2017 @ 16:37
    blackhawk
    0

    Migrating Media via uSync for Umbraco 7.6+

    Hi Kevin,

    In regards to uSync.ContentEdition verision 4, and umbraco 7.6.5, is it still possible to migrate (or copy) media over from one instance to another? If so do you happen to know what are the proper steps for achieving this?

    Thanks!

  • Kevin Jump 2310 posts 14694 karma points MVP 7x c-trib
    Nov 07, 2017 @ 18:09
    Kevin Jump
    100

    Hi

    yes, by default the media config (so things like cropper stuff) is stored in the usync folder while the media files themselves remain in the /media folder.

    the simplest way to migrate the media is to copy over the /media folder and the usync folder. uSync.ContentEdition will then import the media items into the umbraco site while keeping the file paths the same.

    if however you want to also copy the media in the usync folder you can, by chaging the settings in uSyncCore.Config file. if you set MoveMedia to true:

    <MoveMedia>true</MoveMedia>
    

    Then the media files will be copied into the usync folder during an export.

    The preferred method is the first way : Not not copy media files into the uSync folder, because this retains physical paths for your files - so if your editors have hardwired any links to media they will still work.

    The second way works if you are merging media folders and don't want to get clashes (where media might be in a folder that already exists) - the media copied into the usync folder will be imported and copied back into the /media folder they will get a new folder id from umbraco so won't clash - and this will be fine if all media items are linked to correctly in your content.

  • blackhawk 313 posts 1368 karma points
    Nov 07, 2017 @ 18:18
    blackhawk
    0

    Awesome! Thank you. And if I decided to change the name of the media directory on both instances to something different like /site-images/ instead of /media/, do I have to update that anywhere in the usync configuration?

  • Kevin Jump 2310 posts 14694 karma points MVP 7x c-trib
    Nov 07, 2017 @ 18:35
    Kevin Jump
    1

    hi,

    not if you are leaving the media where it is and usync uses the media api to get and save files so i think it's probably OK even if you choose to move the media into the usync folder.

    Kevin

Please Sign in or register to post replies

Write your reply to:

Draft