DatabaseBackup

lightdb.backup.DatabaseBackup

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(db: LightDB, directory: File): Int

Does a full backup of the supplied database to the directory specified

Does a full backup of the supplied database to the directory specified

Attributes

def archive(db: LightDB, archive: File): Int

Creates a ZIP file backup of the database. Use with DatabaseRestore.archive to restore the backup archive.

Creates a ZIP file backup of the database. Use with DatabaseRestore.archive to restore the backup archive.

Value parameters

archive

the ZIP file to create

db

the database to back up

Attributes

Returns

the number of records backed up