To backup your store using the command line please login to your root magento server (SSH), then execute this command magento setup:backup --code --media --db Tags magento Magento2 SSH