@task
def backup_django(c):
    os.makedirs('backups', exist_ok=True)
    bup_dir = os.path.join('backups', datetime.date.today().isoformat())
    c.run('mkdir {}'.format(bup_dir))
    scp_command = rajk_server_connection.copy_from_server_command(bup_dir, '/var/www/rajkdjango2')
    c.run(scp_command)
@task
def backup_django(c):
    os.makedirs('backups', exist_ok=True)
    bup_dir = os.path.join('backups', datetime.date.today().isoformat())
    c.run('mkdir {}'.format(bup_dir))
    scp_command = rajk_server_connection.copy_from_server_command(bup_dir, '/var/www/rajkdjango2')
    c.run(scp_command)