Excluding trash and other data from backups

Hello, I would like to set up automatic backups for a Nextcloud installation. However, I don’t need to backup for example the trash, all the file versions or the updater backups.

Is it safe to restore Nextcloud from a backup that includes only the */files and appdata_* directories? If it’s not, is it at least safe to restore without */files_trashbin and */files_versions?