Migrating resource logs from local storage to object storage on zCX
This topic describes how to migrate resource logs from your local system storage to object storage.
After successfully migrating the resource logs, disable the migration job.
Before you begin
Run the following command to back up your $MODEL9_HOME/backups directory:
fileStamp=$(date +%Y-%m-%d)
tar -czf backups-$fileStamp.tar.gz backups
To set up the migration job
Update the following parameters in the model9-local.yml file, which resides in the $MODEL9_HOME/conf/ directory, by using the following commands. The following example schedules the migration job to run at midnight on October 1, 2025:
#Log in to the Alpine container
docker exec -it dummy sh
cd /root
#Edit the model9-local yml file
vi conf/model9-local.yml
#Disable saving resource logs to your local system by deleting the following parameter
model9.backup.log.saveToFile: true
#Schedule the migration job to run by specifying the cron expression in accordance with your needs
model9.backup.log.migration.cron: "0 0 0 1 10 * 2025"
#Exit from the Alpine container
exitRestart the server by using the following command:
docker restart model9-v4.3.0After the scheduled migration job completes, check the server logs and verify that the migration was successful.
To disable the migration job
Delete the model9.backup.log.migration.cron parameter in the model9-local.yml file.
Restart the server by using the following command:
docker restart model9-v4.3.0