Tales of migrating an archive system
Over the years I’ve trusted Archiware P5 to protect large storage systems by copying client data to tape archives. It really is the best system for my clients. It works. I’ve used it to restore entire failed storage systems. Backups are great. Restores are better!
And Archiware have been great to entertain my feature requests and ideas for making P5 do what I wanted. In the early days I approached Archiware for help in extending the P5 nsdchat cli (and the REST API) to help monitor P5 servers with MunkiReport and a variety of shell scripts. These days I built a lot of differentnt Mac apps (see code.matx.ca and GitHub)
Software versus Hardware
Eventually after a long happy service you may find yourself needing to migrate the physical server to a new host when it is too old to get macOS updates.
Yes, Linux VM(and virtual private servers or VPS) are more common today than « Mac servers » but back in the day when Apple ruled the VFX world (remember Shake?!) and everyone ran Xsan fibre channel storage on Xserve raids, we also ran Mac servers with Apple’s Xserve hardware. Well that’s no longer the state of the Mac universe but we have these lovely Mac Minis for those who build small post-production studios and a running a Mac based “P5 server” is easier than learning Windows or Linux or even docker OS which you have to maintain. Mac mini DevOps, it’s a thing. Ask my friend Alex Narvey!
Use Case #1 – Post Production
Imagine physical servers on premise watching over and backing up on site storage using a tape library. Yes! It’s true, LTO tape systems to backup and archive post production storage is very standard. This is the way.
So there you are, one day you find a Mac that’s a bit old and needs to be upgraded. Maybe you’re smart and careful so you know it needs macOS updates. Yes it’s working but how many years of not being recent enough to get security updates are you going to risk running a “a perfectly working system” or maybe you want faster built-in 10 GbE networking. And while buying a new Mac might be easy you have to do it every few years, so now what? Software Migration time.
Migration of the Archiware P5 backup and archive server is easy, right? Well, easy enough. Move the databases over to the new Mac, make sure your license is correct for the new hardware and off you go.
Documentation for the nation
Since I wanted to double check my fuzzy memory before I did a migration recently, I checked with Archiware’s website and found a link in their support with migration instructions. Excellent. Great place to start. Read this support article, it’s very detailed and everything you need: https://support.archiware.com/show/migrating-archiware-p5-to-a-new-server
In my case, I wanted to tweak the instructions for mac server migration and make it easier for my clients or anyone to back up their P5 server properly everyday and to make migrations easier so I use this excellent article to be more specific to my scenario.
Warning: this is the point when you realize that I’m going to mention another app I built. The inflection point in the blog. No, it was wasn’t vibe coded. It was seriously hand crafted and mostly artisanal. In this case, my P5 Archive Export app has existed for a while and it emerged initially as a way to easily schedule SQL export and build an analysis of historical archive jobs.

As always, I had a shell script and a bundle of sql statements, and it worked for me but I wanted an easy way for my clients to use it so that’s where that app started. Well, even before that shell script idea, I had a lot of TSV exported inventory files and no real idea of what was in them. So there was a whole adventure with Jupyter notebooks and Python and that was fun and cool and worked briefly but it was so bespoke that it could not be used anywhere else. I wanted to build an app everyone could use.
why? What are we doing this for?
My sql tools transformed the data into trends and reporting to see what and how much was archived. It was great. But it was a shell script and could only be wielded by the magician. So then it became an app. And a menu bar app too. That was my favourite part. An app. In the menu bar. It’s awesome.

more more more
Eventually I added my other export scripts which extracted useful info from my P5 archives: how many tapes I had and what were they, and what was in each one. Useful scripts made their way into my app. The CLI manual inspired these nsdchat based scripts originally. Report all the things.
All this info is in Archiware P5 but not always the way you want to see it . Recently Archiware have added dashboards to P5 and it’s a great addition and it hopefully means that I won’t have to support any hacks using bash and sql for much longer.
Ultimately my feature update to P5 Archive Export today came down to a planned migration and some cli instructions for backing up the backup and archive databases. Why do it once manually when you can automate and make it work for everyone better. It’s a classic IT mantra. So of course it made perfect sense to include backups of the backups in my app too.
Why not regularly backup and export useful data intelligence from your archives? Make P5 backups work for you. You need P5 Archive Export if you use Archiware P5, and you should, then check out the rest of my P5 helper tools. For making the most of your archives.
Use a nice Mac app or use the nsdchat cli directly, example:
./nsdchat -s awsock:/user:pass@1.2.3.4:9001 -c ArchiveIndex Default-Archive inventory ~/default-archive-inventory.tsv size btime mtime ppath
References:
P5 CLI manual: https://support.archiware.com/downloads/cli.pdf
P5 REST API: https://www.archiware.com/blog/redoc/p5_rest_api/awp5api.html
P5 based Mac apps: https://code.matx.ca