York manager Nigel Worthington was clearly mightily relieved after his side secured a 1-0 victory at Dagenham to guarantee League Two survival on a dramatic afternoon.
The hosts also survived - on goal difference only - thanks to Barnet's 2-0 defeat at Northampton. Chris Smith scored the only goal of a tense game in the second half.
Wearing a big smile, a delighted Worthington said: "It's been such a tough week for everyone so I'm just delighted we've managed to come here and get the win we desperately needed. I have to admit there have been nerves around the place, but we managed to just about keep a lid on it and we're finally safe now.
"We can go away and take a bit of a breather, and then thankfully we can then start working towards another season in the Football League. Everyone has worked so, so hard and so that has all paid off handsomely.
"There's so much that goes on behind the scenes that people aren't always aware of. The efforts of everyone involved all year had to come down to this moment, and we've done enough.
"The fans can go away and relax for a while too. They've been superb for us all season and they deserve this moment too. It's such a relief, and I'm kind of happy that it's all over now. Roll on next season."
It was mission accomplished for Dagenham, albeit thanks to the Barnet result going their way, leaving interim boss Wayne Burnett with mixed emotions.
He said: "We've achieved our goal but it's not been the best of days really. It's been quite an amazing day. We've been beaten and yet stayed up. A lot of the lads looked a bit edgy and I can understand that. We've looked that way on a number of occasions recently. We had this result coming in a lot of ways.
"There's always been that work ethic there and the effort from the players has never been an issue for me - it's just the quality hasn't always been there. It hasn't been there often enough and in this division any silly mistakes can be punished quite severely.
"That's certainly been the case here. We switch off at the wrong time and the result is that you go home with nothing. There's a lot of work to be done before the start of next season, make no mistake about that."