Backup data only through command line in SQL Server
mssql-scripter

From https://blogs.technet.microsoft.com/dataplatforminsider/2017/05/17/try-new-sql-server-command-line-tools-to-generate-t-sql-scripts-and-monitor-dynamic-management-views/:


  You can use mssql-scripter on Linux, macOS, and Windows to generate
  data definition language (DDL) and data manipulation language (DML)
  T-SQL scripts for database objects in SQL Server running anywhere,
  Azure SQL Database, and Azure SQL Data Warehouse. You can save the
  generated T-SQL script to a .sql file or pipe it to standard *nix
  utilities (for example, sed, awk, grep) for further transformations.
  You can edit the generated script or check it into source control and
  subsequently execute the script in your existing SQL database
  deployment processes and DevOps pipelines with standard multiplatform
  SQL command line tools such as sqlcmd.


Install instructions on GitHub

Sample usage:

Generate DDL scripts for all database objects and DML scripts (INSERT statements) for all tables in the Adventureworks database and save the script to a file

$ mssql-scripter -S localhost -d AdventureWorks -U sa ––schema-and-data &gt; ./adventureworks.sql