
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
djbackup(django backup) is an installable module for Django that is used for backup purposes, specifically for backing up the database and media files.
DJ Backup is a Django app that provides the capability to back up your files and databases.
pip install djbackup
OR
pip install djbackup[all]
dj_backup
app to your Django project's installed apps. INSTALLED_APPS = [
...
...
# apps
'dj_backup',
]
from dj_backup.core.utils.static import load_static
STATICFILES_DIRS = [
...
load_static()
]
urlpatterns = [
...
path('dj-backup/', include('dj_backup.urls', namespace='dj_backup')),
...
]
DJ_BACKUP_CONFIG = {
'STORAGES': {
'LOCAL': {
'OUT': BASE_DIR / 'backup/result'
},
}
}
python manage.py migrate
python manage.py collectstatic
python manage.py run-backup
python manage.py runserver
dj_backup
dashboard 127.0.0.1:8000/dj-backup/
OR
xxx.xxx:xxxx/dj-backup/
# DJ_BACKUP_CONFIG = {
# 'MAX_WORKERS': 5, #(optional)
# 'NOTIFICATION_OBJECT_LOG_LEVEL': 'WARNING', #(optional) # options => ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']
# 'POSTGRESQL_DUMP_PATH': None, # optional(If the postgresql dump file is not found, you can set it)
# 'MYSQL_DUMP_PATH': None, # optional(If the mysql dump file is not found, you can set it)
# 'EXTERNAL_DATABASES': {
# 'default2': {
# 'ENGINE': 'postgresql',
# 'NAME': 'test',
# 'USER': 'postgres',
# 'PASSWORD': 'xxx',
# 'HOST': '127.0.0.1', # Or an IP Address that your DB is hosted on
# },
# 'default3': {
# 'ENGINE': 'mysql',
# 'NAME': 'test',
# 'USER': 'root',
# 'PASSWORD': 'xxx',
# 'HOST': '127.0.0.1', # Or an IP Address that your DB is hosted on
# },
# },
# 'BASE_ROOT_DIRS': [
# BASE_DIR,
# ],
# 'BACKUP_TEMP_DIR': BASE_DIR / 'backup/temp', #(optional)
# 'BACKUP_SYS_DIR': BASE_DIR / 'backup/sys', #(optional)
# 'STORAGES': {
# 'LOCAL': {
# 'OUT': BASE_DIR / 'backup/result'
# },
# 'TELEGRAM_BOT': {
# 'BOT_TOKEN': 'xxx-xxx',
# 'CHAT_ID': 'xxx-xxx'
# }
# 'SFTP_SERVER': {
# 'HOST': 'xxx',
# 'USERNAME': 'xxx',
# 'PASSWORD': 'xxx',
# 'OUT': 'xxx'
# },
# 'FTP_SERVER': {
# 'HOST': "xxx",
# 'USERNAME': "xxx",
# 'PASSWORD': "xxx",
# 'OUT': 'backups'
# },
# 'DROPBOX': {
# 'APP_KEY': 'xxx-xxx',
# 'OUT': '/dj_backup/'
# }
# }
# }
storage | install command |
---|---|
TELEGRAM_BOT | pip install djbackup[telegram] |
SFTP_SERVER | pip install djbackup[sftpserver] |
FTP_SERVER | pip install djbackup[ftpserver] |
DROPBOX | pip install djbackup[dropbox] |
database | install command |
---|---|
mysql | pip install djbackup[mysql] |
postgresql | pip install djbackup[postgresql] |
If you dont need any of the storages, you must remove that configuration
because you get an error if it cant be connected
FAQs
djbackup(django backup) is an installable module for Django that is used for backup purposes, specifically for backing up the database and media files.
We found that djbackup demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.