Migrating resource logs from local storage to object storage on Linux
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:
Disable saving resource logs to your local system by deleting the following parameter:
model9.backup.log.saveToFile: trueSchedule the migration job to run by specifying the cron expression in accordance with your needs. The following example schedules the migration job to run at midnight on October 1, 2025:
model9.backup.log.migration.cron: "0 0 0 1 10 * 2025"
Restart 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