[root@memsql-1 ~]# memsql-ops database-backup --settings-file /tmp/111.sql --async --database game
Starting backup for database game
[root@memsql-1 ~]# more /tmp/111.sql
[root@memsql-1 ~]#
If backup successfully , why could not view any thing in 111.sql file.
The --settings-file option specifies the settings file to use for the backup. It does not specify the backup itself. The backup generated will be a binary file, not a .sql file. You can see the backup with memsql-ops backup-list.
If you want to generate a .sql file, I recommend using mysqldump
The --settings-file flag is only used to configure memsql-ops and is only useful when starting an agent using memsql-ops start. If you are trying to configure the location of your backup please restart the memsql-ops agent using a custom settings file with the backups_dir variable set in the file.
I recommend using the backup functionality within MemSQL directly as opposed to using backup through MemSQL Ops. You can learn more about our backup functionality here: SingleStoreDB Cloud · SingleStore Documentation