devpi-import-from-backup
Description
Import will take a minute or two, as it also creates the mirror indexes.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
string | -- | The (local) backup destination file. Required |
Code
doc: short_help: Restores up a devpi service backup. help: Import will take a minute or two, as it also creates the mirror indexes. args: backup_archive_file: doc: short_help: The (local) backup destination file. type: string required: true meta: status: unknown frecklets: - folder-is-empty: path: /tmp/devpi-restore mode: '0700' owner: devpi group: devpi - archive-extracted: src: '{{:: backup_archive_file ::}}' dest: /tmp/devpi-restore owner: devpi mode: '0700' - init-service-stopped: name: devpi - execute-command: command: /home/devpi/.virtualenvs/devpi/bin/devpi-server --serverdir /home/devpi/.devpi/server --import /tmp/devpi-restore become_user: devpi - path-is-absent: path: /tmp/devpi-restore become: true - init-service-started: name: devpi
frecklecute devpi-import-from-backup --help Usage: frecklecute devpi-import-from-backup [OPTIONS] Import will take a minute or two, as it also creates the mirror indexes. Options: --backup-archive-file BACKUP_ARCHIVE_FILE The (local) backup destination file. [required] --help Show this message and exit.
# -*- coding: utf-8 -*- # # module path: pycklets.devpi_import_from_backup.DevpiImportFromBackup # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class DevpiImportFromBackup(AutoPycklet): """Import will take a minute or two, as it also creates the mirror indexes. Args: backup_archive_file: The (local) backup destination file. """ FRECKLET_ID = "devpi-import-from-backup" backup_archive_file: str = None def __post_init__(self): super(DevpiImportFromBackup, self).__init__(var_names=["backup_archive_file"]) frecklet_class = DevpiImportFromBackup
# -*- coding: utf-8 -*- # # module path: pycklets.devpi_import_from_backup.DevpiImportFromBackup # from pyckles import AutoPycklet class DevpiImportFromBackup(AutoPycklet): """Import will take a minute or two, as it also creates the mirror indexes. Args: backup_archive_file: The (local) backup destination file. """ FRECKLET_ID = "devpi-import-from-backup" def __init__(self, backup_archive_file=None): super(DevpiImportFromBackup, self).__init__(var_names=["backup_archive_file"]) self._backup_archive_file = backup_archive_file @property def backup_archive_file(self): return self._backup_archive_file @backup_archive_file.setter def backup_archive_file(self, backup_archive_file): self._backup_archive_file = backup_archive_file frecklet_class = DevpiImportFromBackup