Restoring from backup sql

Hi,

I am trying to restore a Db. But getting the following error


a:~/frappe-bench$ bench frappe --restore site2.local aoc.sql -f site2.local
frappe app is not installed. Run the following command to install frappe
bench get-app frappe https://github.com/frappe/frappe.git
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==2.0.0', 'console_scripts', 'bench')()
  File "/home/admin/bench-repo/bench/cli.py", line 20, in cli
    return old_frappe_cli()
  File "/home/admin/bench-repo/bench/cli.py", line 78, in old_frappe_cli
    os.execv(f, [f] + sys.argv[2:])
OSError: [Errno 2] No such file or directory
$ bench restore --help
Usage: bench  restore [OPTIONS] SQL_FILE_PATH

  Restore site database from an sql file

Options:
  --mariadb-root-username TEXT  Root username for MariaDB
  --mariadb-root-password TEXT  Root password for MariaDB
  --db-name TEXT                Database name for site in case it is a new one
  --admin-password TEXT         Administrator password for new site
  --install-app TEXT            Install app after installation
  --with-public-files TEXT      Restores the public files of the site, given
                                path to its tar file
  --with-private-files TEXT     Restores the private files of the site, given
                                path to its tar file
  --help                        Show this message and exit.