Oh dear yes, a question we‘re probably all trying to avoid thinking about!
We‘re lucky enough to have a garden so that going outside wouldn‘t be a problem, I suppose alternatively you‘d have to call in help from someone who could walk the dog for you. As for keeping them occupied, I‘d use the time to maybe try and train a few things, (currently trying to get him to put his toys in the box but he just sits looking at me as if I‘ve gone completely nuts!
), sniffing games, (loads of ideas online).
I think my (and probably Humphrey‘s) biggest worry would be running out of dog food!