Try our conversational search powered by Generative AI!

Export and import files from v 6 to 7

Vote:
 

Hi!

I'm trying to export all files and just the files from episerver 6 to episerver 7. Can I only do this one by one? I don't have the same structure or pagetypes in my new cms so I just want all the files to be exported.

#148502
May 16, 2016 9:25
Vote:
 

What version of 7 are you using?

#148504
May 16, 2016 9:42
Vote:
 

I see version 9.0.3.0 under  <assemblyIdentity name="EPiServer" in web.config.

#148506
May 16, 2016 9:51
Vote:
 

I would create a scheduled job in the old site (version 6) that goes through all files. Get all files like:

void GetAllFiles(UnifiedDirectory start, List<UnifiedFile> files)
{    foreach (UnifiedFile file in start.GetFiles())
    {
        files.Add(file);
    }
    foreach (UnifiedDirectory dir in start.GetDirectories())
    {
        GetAllFiles(dir, files);
    }
}

and then use the new service api

http://world.episerver.com/documentation/Items/Episerver-Service-API/Using-bulk-import-and-export-methods/Using-the-media-service/

to export the files to the new web site.

#148507
May 16, 2016 10:37
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.