This question already has an answer here:
I am building a web server od Raspberry Pi 3. The system and the data will be on microSD card and I am curious if there's any way to automaticaly backup the whole card with data? I mean - if anything happens to the card, i simply download the backup file, restore it to new microSD card and put it to the raspberry Pi without doing configuration or instalation of new web server.
I d'like to use Synology NAS as a backup server.