stbarnabas / django-icybackup

Back your Django database and media directory up to Amazon Glacier or a local file
25 stars 11 forks source link

This project is not actively maintained. The last commit (other than the commit adding this message) was on 1 March, 2014. The source code and PyPI packages are still available, but I strongly recommend against using this for new projects.


django-icybackup

Back up your databases and media directory to a local file/directory or Amazon Glacier. Works with PostgreSQL, MySQL and sqlite.

A fork of (a fork of) django-backup which adds:

Warning to MySQL Users: This script may expose your MySQL database password to other users on the same machine, as it is passed in via a command line argument. Pull requests to fix this problem are welcome.

Installation

Run pip install django-icybackup, then add icybackup to your INSTALLED_APPS.

Usage

Backing up

Supports the following optional flags:

Restoring

Optional flags:

Tip: If you want to move servers, or copy your production database/media exactly to development or staging, it is possible to do something like this:

ssh other-server 'cd path/to/app && manage.py backup --stdout' | manage.py restore --stdin

settings.py settings

To do

Contributors

The following people contributed code to this project or its ancestors, in chronological order by first commit:

License

Copyright © 2012, St Barnabas' Theological College
Copyright © 2011, Ted Tieken
Copyright © 2011, http://code.google.com/p/django-backup/
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.