Anki should create a backup of your collection each time it’s closed or synchronized.
You can adjust how many copies to keep from the preferences:

Anki should create a backup of your collection each time it’s closed or synchronized.
You can adjust how many copies to keep from the preferences:
