How to restore my Firebird database and modify owner settings in a single command line?

Solution 1:

After referring to

Which one is better: using ; or && to execute multiple commands in one line?

I added: && sudo chown firebird:firebird /database/<database name>.fdb to my command to form:

zcat /var/www/temp/<database name><backup timestamp>.gbak.gz | gbak -rep -v stdin /database/<database name>.fdb -user <username> -pass <password> && sudo chown firebird:firebird /database/<database name>.fdb

This successfully changed the ownership settings in one line.

If there is a better practice I am happy to here it and why.