Common Commands

  • Show all available commands:
    • bytemark
  • Show information about your account:
    • bytemark show account alice
  • Set the default account/username:
    • bytemark update config --account alice
    • bytemark update config --user alice
  • Show information about a server:
    • bytemark show server monkey
  • Restart a server:
    • bytemark restart server monkey

Connect to the console

To connect to the serial or graphical console, you first need to add your SSH public key to the list of allowed keys:

bytemark add key --public-key-file ~/.ssh/id_rsa.pub

You need to add at least one key to be able to connect. Once you’ve done that, use one of the following commands to connect:

  • Connect to the graphical console:
    • bytemark console monkey
  • Connect to the serial console:
    • bytemark console --serial monkey

Backup a secondary disc

You can add up to 8 discs through the panel. If you do choose to add discs through the command line, then make sure you use either ‘archive’ or ‘sata’ (SSD) grade. Avoid the other grades, which can be unexpectedly pricey!

You can’t create backups of secondary discs through the panel, but you can do it through the command line. You can’t do it at all for “archive” grade discs, as these are generally used for backups anyway.

Here, I’m going to create a backup for a disc called ‘disc-p’ on a server called ‘symbiosis’, in a group called ‘mail’

  • show the assets on the server, to find the disc label
    • bytemark show server --server symbiosis.mail
  • create a backup
    • bytemark backup disc --server symbiosis.mail --disc disc-p
  • list backups
    • bytemark show backups --server symbiosis.mail --disc disc-p
  • shutdown server (to enable restore)
    • bytemark shutdown server --server symbiosis.mail
  • restore the backup
    • bytemark restore backup --server symbiosis.mail --disc disc-p --backup disc-p-backup-20180314174509
  • start up server
    • bytemark start server --server symbiosis.mail
Updated on May 8, 2018

Was this article helpful?

Related Articles