To sync your Umbraco site from development to production without losing data, follow the steps given below:
- Backup your media files and production database
- Utilize Git to install code
- Transfer the content and database changes using Umbraco Cloud or uSync
- Transfer the media files using a syncing tool or manually
- Test the site on production to ensure everything works.