Undertake an upgrade and make db backup

hi is there a way to back up restore the indico data base before upgrade and retore in case of problem
thanks

Yes, you can use pg_dump to create a database backup:

pg_dump indico -Fc -f /path/to/backup.dump