management.management.commands.trustpointbackup

Management command to create a new local backup.

Classes

Command

A Django management command to create a new local DB backup (.dump.gz).

Module Contents

class management.management.commands.trustpointbackup.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django.core.management.base.BaseCommand

A Django management command to create a new local DB backup (.dump.gz).

help = 'Create a new local DB backup'[source]
add_arguments(parser)[source]

Adds command arguments/options.

Parameters:

parser (django.core.management.base.CommandParser)

Return type:

None

handle(*_args, **options)[source]

Executes the command.

Parameters:
  • _args (tuple[str])

  • options (Any)

Return type:

None

backup_trustpoint(filename)[source]

Checks current state of trustpoint and acts accordingly.

Parameters:

filename (str)

Return type:

None