Newcomer with a few questions

Hello, I am a new user to Plone and have a few questions that I could use some help with.

Firstly, if I recently spun up a new instance of Plone 6 with volto, is there an easy way to import a previous website I made on a different machine using Plone 6 as well? Just cutting my current project folder out and pasting the old one in generates a bunch of errors with make in my experience, so I assume there is a specific folder I should probably be transferring instead of everything, but I do not know what folder that would be.

Secondly, and unrelated since this is not something I would have an issue with if I do manage to import my old project, but for some reason on the current project, the default admin login (user: admin password: admin) only works on the port 8080 backend, but will not sign in on the port 3000 front end despite this being a new project. Is there any reason that anybody knows of that could be causing this to be the case, and does anybody know how I could log in as admin to my frontend if those default credentials are not working?

Thanks in advance for any help that can be provided!

Welcome :smiling_face:

If you are running the exact same versions of Plone and Volto, I would think you could copy the Data.fs. What errors are you getting, and which versions of Plone and Volto are you using on both sites?

Probably the whole var folder (?) At least they need the blobfiles.

Thank you! So I guess that leads me into my next question then which is, what path would that file be at? I had sort of figured it would be about taking a folder and pasting it in somewhere rather than a single file.

In terms of versioning, I am just using the latest version of Plone 6 and the latest alpha version of Volto on both sides.

Also is there any existing documentation about importing old projects I could refer to?

where would this folder be located? and would it be as simple as cutting the default first launch var folder and replacing it with my old one, or is there going to be more to it?

When content is added to Plone, most of it is stored in the database (which is usually Data.fs). But with (large) files, they are saved as 'blobs' in the var folder, and a reference to the file is kept in Plone.

Basically, if you add a new Plone site (especially if it has same 'setup' as the old), you can:

  1. Install Plone (Zope)
  2. Stop Plone.
  3. Move your current 'var' folder to somewhere else
  4. Copy the old var-folder to your instance folder
    ( if 'old setup with buildout' 5) Re-run buildout and start Plone .
  5. Your 'old site' should now be present.

The var-folder is the folder that contains the 'Data.fs' file.

PS: With docker container etc, I dont know exactly where the var folder is (I dont like docker).

If your site has the (exact) same versions etc as the old one, it is probably possble to export a 'zexp' file from the ZMI ( yourzope:port/manage_main) and import it to the new site. This is usually not recommended, though.

That file would be in a directory var/filestorage inside the directory where you installed Plone, which can vary depending on the method used to install it. How did you install Plone?

If you are on a Linux or Unix system, you could do something like find / -type f -name Data.fs as root.

Exporting and importing: there is a lot of info at Migration best practices — Plone Training 2024 documentation but here your situation is more about copying or moving an entire installation of Plone.