This repository was archived by the owner on May 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Command syntax
jesseangell edited this page Apr 3, 2012
·
2 revisions
####General root@server:~# mogbak help Backup a mogilefs domain to the filesystem. mogbak needs SELECT access to your MogileFS tracker database, which must currently be MySQL.
usage: mogbak [global options] command [command options]
Version: 0.1.0
Global Options:
--debug - enable debug mode
--help - Show this message
Commands:
backup - Start a backup using an existing backup profile
create - Create a new backup profile for a MogileFS domain
help - Shows list of commands or help for one command
list - List the files in a backup
restore - Restore a backup to a new MogileFS domain.
####Create root@server:~# mogbak help create create [command options] [backup_path] Create a new backup profile for a MogileFS domain
Command Options:
--db=arg - database name (default: mogilefs)
--dbhost=arg - mysql db server host (default: localhost)
--dbpass=arg - database password (REQUIRED)
--dbport=arg - mysql db server port (default: 3306)
--dbuser=arg - database user (default: mogile)
--domain=arg - mogilefs domain (default: test)
--trackerip=arg - tracker ip (default: 127.0.0.1)
--trackerport=arg - tracker port (default: 7001)
####Backup root@server:~# mogbak help backup backup [command options] [backup_path] Start a backup using an existing backup profile
Command Options:
--log-file=arg - send backup output to log file
--no-delete - do not remove deleted files from the backup (faster)
--non-stop - after backup is complete, start another backup. This causes mogbak to run non-stop. Send SIGINT or SIGTERM to exit cleanly
--workers=arg - Number of worker processes (default: 1)
####List root@server:~# mogbak help list list [backup_path] List the files in a backup
Output is: fid,dkey,length,classname
Command Options:
--log-file=arg - send list output to log file
####Restore root@server:~# mogbak help restore restore [command options] [backup_path] Restore a backup to a new MogileFS domain.
This function restores all files in backup to the new domain. It does not keep track of what has been restored, so the restore cannot be stopped and
resumed. If it fails to restore a file it will output an error. It restores the files with the same class that they were created with. It is expected
that you will create those classes on the domain before restoring.
Command Options:
--domain=arg - restore dest mogilefs domain (REQUIRED)
--log-file=arg - send restore output to log file
--single-file=arg - restore a single file by dkey
--trackerip=arg - restore dest tracker ip (default: 127.0.0.1)
--trackerport=arg - restore dest tracker port (default: 7001)
--workers=arg - Number of worker processes (default: 1)