Files
CyberPanel/backup/signals.py

76 lines
2.8 KiB
Python
Raw Normal View History

2018-10-05 23:05:02 +05:00
# The world is a prison for the believer.
from django.dispatch import Signal
2018-10-12 18:18:10 +05:00
## This event is fired before CyberPanel core load template for create backup page.
2024-08-04 23:54:32 +05:00
preBackupSite = Signal()
2018-10-12 18:18:10 +05:00
## This event is fired after CyberPanel core load template for create backup page.
2024-08-04 23:54:32 +05:00
postBackupSite = Signal()
2018-10-12 18:18:10 +05:00
## This event is fired before CyberPanel core load template for restore backup page.
2024-08-04 23:54:32 +05:00
preRestoreSite = Signal()
2018-10-12 18:18:10 +05:00
## This event is fired after CyberPanel core load template for restore backup page.
2024-08-04 23:54:32 +05:00
postRestoreSite = Signal()
2018-10-12 18:18:10 +05:00
2018-10-05 23:05:02 +05:00
## This event is fired before CyberPanel core start creating backup of a website
2024-08-04 23:54:32 +05:00
preSubmitBackupCreation = Signal()
2018-10-05 23:05:02 +05:00
2018-10-12 18:18:10 +05:00
## This event is fired before CyberPanel core starts to load status of backup started earlier througb submitBackupCreation
2024-08-04 23:54:32 +05:00
preBackupStatus = Signal()
2018-10-12 18:18:10 +05:00
## This event is fired after CyberPanel core has loaded backup status
2024-08-04 23:54:32 +05:00
postBackupStatus = Signal()
2018-10-12 18:18:10 +05:00
2018-10-05 23:05:02 +05:00
## This event is fired before CyberPanel core start deletion of a backup
2024-08-04 23:54:32 +05:00
preDeleteBackup = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired after CyberPanel core finished the backup deletion
2024-08-04 23:54:32 +05:00
postDeleteBackup = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired before CyberPanel core start restoring a backup.
2024-08-04 23:54:32 +05:00
preSubmitRestore = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired before CyberPanel core starts to add a remote backup destination
2024-08-04 23:54:32 +05:00
preSubmitDestinationCreation = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired after CyberPanel core is finished adding remote backup destination
2024-08-04 23:54:32 +05:00
postSubmitDestinationCreation = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired before CyberPanel core starts to delete a backup destination
2024-08-04 23:54:32 +05:00
preDeleteDestination = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired after CyberPanel core finished deleting a backup destination
2024-08-04 23:54:32 +05:00
postDeleteDestination = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired before CyberPanel core start adding a backup schedule
2024-08-04 23:54:32 +05:00
preSubmitBackupSchedule = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired after CyberPanel core finished adding a backup schedule
2024-08-04 23:54:32 +05:00
postSubmitBackupSchedule = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired before CyberPanel core start the deletion of backup schedule
2024-08-04 23:54:32 +05:00
preScheduleDelete = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired after CyberPanel core finished the deletion of backup schedule
2024-08-04 23:54:32 +05:00
postScheduleDelete = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired before CyberPanel core star the remote backup process
2024-08-04 23:54:32 +05:00
preSubmitRemoteBackups = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired after CyberPanel core finished remote backup process
2024-08-04 23:54:32 +05:00
postSubmitRemoteBackups = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired before CyberPanel core star the remote backup process
2024-08-04 23:54:32 +05:00
preStarRemoteTransfer = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired after CyberPanel core finished remote backup process
2024-08-04 23:54:32 +05:00
postStarRemoteTransfer = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired before CyberPanel core start restore of remote backups
2024-08-04 23:54:32 +05:00
preRemoteBackupRestore = Signal()
2018-10-05 23:05:02 +05:00
## This event is fired after CyberPanel core finished restoring remote backups in local server
2024-08-04 23:54:32 +05:00
postRemoteBackupRestore = Signal()