beat.web.utils.management.commands.change_databases_root_folder module

Examples

To change the root path of installed databases:

$ manage.py change_databases_root_folder -v1 db_root_paths.json

Note: The format is:

{
  "atnt/1": "/remote/databases/atnt",
  "banca/2": "file:///remote/databases/banca"
  "foo/3": "nfs://myhost.db/databases/foo"
}

It’s also possible to do a dry-run to just determine what would be installed using the option --dry-run:

$ manage.py update_installed_databases -v1 --dry-run
class beat.web.utils.management.commands.change_databases_root_folder.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django.core.management.base.BaseCommand

help = 'Change the root path of the databases listed in the given conf file'
add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

handle(*ignored, **arguments)[source]

The actual logic of the command. Subclasses must implement this method.