Move binaries location

Hi, I'm looking for the best way to safely move binaries location to another place (other server). I'm using DefaultBinaryManager.

1 votes

2 answers

4041 views

ANSWER



Hi,

you can change the data binaries location in the nuxeo.conf file (into NX_HOME/bin directory) setting the full-path into filesystem:

  • a) if you are not using cluster mode, you need change the value for nuxeo.data.dir=“your remote FS path for data”
  • b) if you are using cluster mode, the value for repository.binary.store=“your remote FS path for binaries”

so, you can use, for example, NFS to mount your remote disk and only set the new locations in nuxeo.conf.

I hope this helps you.

Regards, VS!

3 votes



Thank you Victor, In fact, my concern is to move the « already existing binaries » to another path or other server. Changing the configuration (nuxeo.data.dir) will create an empty binaries path for the new documents.
02/23/2016

Hi, I think you can move the content of the current data directory to the new server and, later, mount with NFS (or another) in your Nuxeo instance machine, and set the nuxeo.data.dir to mount data directory.
02/23/2016


Are you running your instances on Linux or Windows? If you are running your instance in Linux, you can follow these steps.

  1. Stop your running instance
  2. Copy your data dir to the new location (never move.. always 1st copy, you can remove it after check if everything is working)
  3. Rename your current data dir to data.old
  4. Create a symbolic link to the new path replacing the current data dir
  5. Run your Nuxeo instance
0 votes