Regardless of whether you play via Steam or GOG, Stardew Valley stores your save files in a specific system folder, separate from the game's installation files. This allows you to update or reinstall the game without losing progress.
Moving your farm to a new PC is a manual process but very reliable.
: A functional save requires two main files: the farm data itself and the SaveGameInfo 2. Methods of Preservation
To restore the backup: