feat(main): main
This commit is contained in:
12
core/management/commands/backup_now.py
Normal file
12
core/management/commands/backup_now.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from core.services.backups import create_backup_now
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "Create a backup JSON under /Backups immediately."
|
||||
|
||||
def handle(self, *args, **options):
|
||||
path = create_backup_now()
|
||||
self.stdout.write(self.style.SUCCESS(f"Backup created: {path}"))
|
||||
|
||||
Reference in New Issue
Block a user