Backup
Profile contents, user and profile assignment status, and password history can be backed up with physical backups and the pg_dumpall command.
When dumping with SQL statements using the pg_dumpall command, database role information is backed up at the same time it is dumped.
Recovery
If you recover old backup data, the password may have expired at the time of recovery. In this case, change the password after recovery.