One addition when running scripts/backup.ps1 (or.sh): Keep in mind that a buch of containers will be temporary shut down. So PAW is not functional while the backup is running.
Original Message:
Sent: Thu September 21, 2023 05:43 AM
From: Bernd Siebert
Subject: PAW content backup and restore
Yes, you can schedule a periodical backup of the PAW content.
How this is done depends on which PAW you are running:
PAW for LInux or PAW for Windows ?
In case of PAW for Linux, one option to create a scheduled PAW backup job is using the Linux tool cron respectively crontab:
The shell command crontab -l will list the existing scheduled cron-jobs.
The shell command crontab -e will edit the existing scheduled cron-jobs, or create new ones, by opening the cron configuration file crontab in a text-editor like nano.
For instance, assuming PAW for Linux 2.0.86 has been installed in the folder /opt/PAW/paw_2_0_86/ and the PAW backup script scripts/backup.sh shall be executed daily at 23:30:
[root@xxx scripts]# crontab -l
no crontab for root
[root@xxx scripts]#
[root@xxx scripts]# crontab -e
no crontab for root - using an empty one
crontab: installing new crontab => The cron configuration file crontab is opened by the text-editor.
[root@xxx scripts]#
[root@xxx scripts]# crontab -l
30 23 * * * /opt/PAW/paw_2_0_86/scripts/backup.sh
[root@xxx scripts]#
30 23 * * * /opt/PAW/paw_2_0_86/scripts/backup.sh is the line you would enter into the cron configuration file crontab opened by the text-editor.
In case of PAW for Windows, you may consider using the Windows Task Scheduler to schedule a periodical execution of the PAW backup script scripts/backup.ps1.
An example how to schedule a PAW related PowerShell script with Windows Task Scheduler is given by the IBM Technote
https://www.ibm.com/support/pages/after-each-reboot-some-planning-analytics-workspace-containers-are-failing-start
After each reboot, some Planning Analytics Workspace containers are failing to start
5)
If the problem is still happening after all the previous points were applied, then create a Powershell script ...
Once done, create a scheduled task to run this script ...
------------------------------
Bernd Siebert
Original Message:
Sent: Wed September 20, 2023 08:09 AM
From: Asgeir Thorgeirsson
Subject: PAW content backup and restore
How can I schedule a backup of the PAW content, books etc.?
Where is the content located on the PAW dockers server?
On the TM1 server, it is easy to schedule a daily backup of the model folders and I keep the last ten days in a separate volume. Can I do something simmilair for the PAW content?
This would be useful if the PAW server goes messed up one day and the snapshot of the server is not current enouch. Also if the dockers server is restored but you still want to get the content from the damaged server.
------------------------------
Asgeir Thorgeirsson
------------------------------