@chpalmer, @chpalmer chpalmer thanks for the response:
@chpalmer said in How can I backup a production image?:
@guardian said in How can I backup a production image?:
Am I missing something?
What Ive done in the past is to keep a spare storage device.. Identical to the drive that is in my box.. loaded and ready to go for my site here.
I might have to buy another drive and do a fresh install to that drive, but I would rather not have to open the box.
And a spare box ready to go that I can back up to that is kept for several of my remote sites.
Great idea, it's simple a matter of economics
I would ask- what if during the action of re-imaging a drive you have problems? You could be fighting an unknown for a longer period and possibly not get there. Then how do you ask for help from a community that has not themselves attempted what you are trying to do? And on a production system that people are counting on..
That is a possibility, but nothing is risk free.
IIUC what I am trying to do should be as simple as:
Boot an install USB into the single user rescue mode
Mount the internal partition
Mounti the ZFS slice on the flash drive
Doing a tar czvf.
A restore would replace step 4 with
rm -rf on the botched install
tar xzvf
Is there any reason this should not work?
My first question of my people would be- "why did you choose to take that course of action when the manufacturer recommends another?"
The course of action that I am considering is a fallback only. May plan is to run the upgrade first, if it works, job done, If that fails run a new install, if that fails then use the backup.
If your connection is in deed that important.. that you have no down time, then you should have a standby at the very least. And you should already know that the latest installer is going to work on the standby.
IMHO ☺
I agree entirely, economics often rules, especially in a home installation.
@stephenw10 said in How can I backup a production image?:
Having a recovery plan is pretty much vital even for a home user if you have any sort of reliance on your connection.
Agreed
Your points about a newer version being incompatible with your hardware are valid. Though unlikely IMO.
In a commercial setting I would suggest setting up a test install (preferably on identical hardware) and updating that before doing so on the production equipment. That's impractical for most home users.
However the cost of small SSDs is relatively low these days. You could get a new SSD swap that out and install 2.5 on it. Restore your config and see what happens. Swapping back to the 2.4.4 SSD is trivial if it doesn't go smoothly.
That's what I may be forced to do, but I can't see why what I have outlined above shouldn't work.
I would certainly work with a linux system (If boot were a separate partition, I would have to make a second tar file for boot). I don't know enough about FreeBSD, but maybe I would need to run some other utility to preserve the boot code.