it depends on which password manager you are using. if you use Google's then it gets backed up to your Google account.
BitWarden, KeePassXC, and probably a bunch of other password managers have very thorough support for import-export, automatic/periodic backup, sync/merge, etc.