1 of 1 people found this helpful
First, if you feel that your PI Data Archive storage is continually increasing and outpacing the hard disk space you should consider expanding your disk space.
If the growth is due to back ups then refer to KB01552 - How to limit the number of archives being backup when disk space is low.
Alternately, if you just need newly created archives on a different location so your current hard disk limit is not reached, then changing auto archive creation is an option.
If present, this parameter defines the path and file name prefix to be used for new archives.
Use PI System Management Tools to configure the AutoArchiveFileRoot parameter to use the external hard drive location.
The AutoArchiveFileRoot parameter can be accessed from: Operation> Tuning Parameters> Archive> Archive_AutoArchiveFileRoot
KB00482 - How to move PI archive files to an external location
If you have already looked into these options and you must have the files moved, then OSIsoft has no standard tool for this but creating that should be relatively easy.
Example: You can periodically run a batch script which
- unregisters old archives that are no longer required (piartool -au)
- move them to a different location to conserve space (robocopy/xcopy)
- register all the archives that were moved (piartool -ar)
Is this what you are looking at? Creating a script/app may not be very difficult but it is important that we understand the entire scenario in case there are other better solutions.