This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.core.management import setup_environ | |
import settings | |
setup_environ(settings) | |
# database backup routine | |
def database_backup(): | |
import tarfile,subprocess,tempfile,os,S3 | |
from datetime import datetime |