Pi running DietPi3, a minimal Linux distro, that you can just power off

Is this a simple case of keeping a copy of the SD card contents somewhere else and re-writing the files? Or do you have to rebuild from scratch. Complete Pi Noob here…