database-upload
Upload a copy of the database.
This function is used to upload a database backup to an active SQL database.
This is useful for backup and such.
Command Syntax
database-upload FILE_PATH [PRESENTATION_FLAGS]
FILE_PATH - path to the upload SQL file in the _uploads directory
PRESENTATION_FLAGS - common presentation flags for the SparkCli.
For more info on presentation flags, check the Presentation flags manual.
Examples
php spark.php database-upload "uploads-1\database.sql"
Upload copy, overriding the database.
php spark.php database-upload "uploads-1\database.sql" theme=DEFAULT
Upload copy, overriding the database, with presentation flags.
php spark.php database-upload "uploads-1\database.sql" -hb theme=DEFAULT
Upload copy, overriding the database, with presentation flags.
php spark.php database-upload "uploads-1\database.sql" -auto -hb theme=DEFAULT
Upload copy, overriding the database, with presentation flags.