Copy your PAW book design to another TM1 server
Posted: Mon Aug 10, 2020 3:14 am
Hello,
Let's say you have two TM1 Servers, server A and B. You built a book design on PAW for server A and wants to migrate it to server B (suppose both share the same structure (cube names, views, dimension names, processes, and whatelse you have in your book), unfortunately the 'migrate assets' feature on PAW only works if both servers share the same name, so you can move from DEV server to PROD server but if you want to migrate to Server A to server B, you can't since it will keep looking for the Server A's objects (cubes, dimensions, etc).
I've found a way on how to migrate between different servers. You'll need a linux machine because of the paw migration export file is in the .gz format, I tried using windows and it didn't work, PAW couldn't detect the file on import, if anyone knows how to do it on windows then please post here.
1. Go go PAW > Administration > Lifecycle Management > Create Snapshot > Select the books that you want to migrate to Server B > Add to cart > click on "Export".
It will download a your-name.gz file on your computer.
2. Open your linux terminal and go to the download folder, unzip it with the command 'sudo gunzip your-name.gz'
3. Open the unzipped your-name (no extension) file on your preferred text editor (I use VS Code).
4. Find the name of your server using CTRL+F. It will appear on a lot of lines like this: "serverName\":\"ServerA\", select the name of your server and use the replace text feature (ctrl+h) to replace "ServerA" with the name of the server you want to migrate, in my case it will become like this: "serverName\":\"ServerB\". Use the "Replace All" feature so all lines can be replaced.
5. Save the file, go back to the terminal window and zip the file again with the command 'sudo gzip your-name'
6. Go to PAW > Administration > Lifecycle Management > Manage Snapshopts > Click on the button "Import" in the bottom right, select the your-name.gz file (the one that you changed the server names), import it, and migrate it to your personal folder and then you can move it to the Shared Folder.
That's it, when you open the new book it will look for the same objects but in server B.
Thank you.
Let's say you have two TM1 Servers, server A and B. You built a book design on PAW for server A and wants to migrate it to server B (suppose both share the same structure (cube names, views, dimension names, processes, and whatelse you have in your book), unfortunately the 'migrate assets' feature on PAW only works if both servers share the same name, so you can move from DEV server to PROD server but if you want to migrate to Server A to server B, you can't since it will keep looking for the Server A's objects (cubes, dimensions, etc).
I've found a way on how to migrate between different servers. You'll need a linux machine because of the paw migration export file is in the .gz format, I tried using windows and it didn't work, PAW couldn't detect the file on import, if anyone knows how to do it on windows then please post here.
1. Go go PAW > Administration > Lifecycle Management > Create Snapshot > Select the books that you want to migrate to Server B > Add to cart > click on "Export".
It will download a your-name.gz file on your computer.
2. Open your linux terminal and go to the download folder, unzip it with the command 'sudo gunzip your-name.gz'
3. Open the unzipped your-name (no extension) file on your preferred text editor (I use VS Code).
4. Find the name of your server using CTRL+F. It will appear on a lot of lines like this: "serverName\":\"ServerA\", select the name of your server and use the replace text feature (ctrl+h) to replace "ServerA" with the name of the server you want to migrate, in my case it will become like this: "serverName\":\"ServerB\". Use the "Replace All" feature so all lines can be replaced.
5. Save the file, go back to the terminal window and zip the file again with the command 'sudo gzip your-name'
6. Go to PAW > Administration > Lifecycle Management > Manage Snapshopts > Click on the button "Import" in the bottom right, select the your-name.gz file (the one that you changed the server names), import it, and migrate it to your personal folder and then you can move it to the Shared Folder.
That's it, when you open the new book it will look for the same objects but in server B.
Thank you.