I'm preparing to move the historian database to another machine. I'd like to reduce downtime by copying over as much of the historian data as possible beforehand.
My plan is to copy the database to the new system, then on the running system, drop sqlt_data_1_yyyymmdd tables not from 2025, and remove rows from the sqlth_partitions table referring to those dropped tables.
Then when we're ready to switch over, I'll again copy the (much reduced in size) running database and restore it on the new system and get it online.
Later, I'll restore the missing tables using the first copy and add their rows back into the sqlth_partitions table.
Will this work?