How to Move Between Servers Using Data.fs File in Windows

This Plone tutorial teaches you how to work with data.fs file in Windows.

Data.fs is kind of a database file, containing the entire Zope site. All the content of any Plone site is stored in this data.fs file, that is normally located in Var directory. As it contains information about the entire site, it is enough to copy this file from one instance to another to move the instance, for example, from a local laptop to a Quintagroup hosted server.

This becomes possible in case Plone and Zope versions that you use are the same. For moving a website, copy data.fs file and Products folder. That is to ensure that all the products and customizations that have been made on a website to be preserved. Keep in mind that Zope and Plone versions are supposed to be the same on both hosts, so that the process of moving the instance is successful.

In Windows this task can be carried out with the help of WinSCP program.

  1. To start work with WinSCP, you need to get SSH login/password.
  2. When you got the necessary login/password, you can access Zope Instance with SSH Login/Password
  3. After you have been connected, Krusader will display you the content of your instance. navigate to data1 -> var foldervar
  • There will be Data.fs file, the one we need, among a list of files
    data-fs
  • Copy this file to the corresponding var folder at the server you move your instance to.

Important: When you  backup Data.fs - please do it with repoze.py script. If you copy Data.fs with cp while Zope Instance is running you might get a broken database file.

Connect with our experts Let's talk