What will happen if i'll restart the ubuntu server?

If I’ll restart the ubuntu server that nextcloud is running on will it return to his original form (without nextcloud)?

Why should your installation being reverted after a reboot?

Do you use any special setup? Non-persistant disks from VMware or something similar?

How exactly did you install your nextcloud and webserver?