Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Script to sync db and/or data from remote host

Project description

sitesync
========

Script to sync db and/or data from remote host

Installation
------------

::

pip install git+https://github.com/morlandi/sitesync


Usage
-----

Provides an easy way to build a working local copy from a remote site, either by:

1) DUMP: saving a copy of remote database and data into ./dump/HOST folder
2) SYNC: replacing local database and data downloading a fresh copy from remote host

Supported platforms:

1) Django (postgresql db + ./public/media/)
2) Workpress (mysql + ./www/wordpress/)


Usage: sitesync [-h] [-v {0,1,2,3}] [--dry-run] [--quiet] [--localhost]
action target

Dump remote db and/or data, or Sync local db and/or data from remote instance

positional arguments:
action choices: sync, dump
target choices: db, data, all

optional arguments:
-h, --help show this help message and exit
-v {0,1,2,3}, --verbosity {0,1,2,3}
Verbosity level. (default: 2)
--dry-run, -d simulate actions
--quiet, -q do not require user confirmation before executing commands
--localhost, -l dump db and data from localhost into ./dumps/localhost





History
=======

v1.0.3
------
* Suggest relative local paths in default config file
* Added support for legacy Postgresql syntax

v1.0.2
------
* Python 2 & 3 compatibility

v1.0.1
------
* Few fixes for Python3

v1.0.0
------
* Initial setup


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sitesync, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size sitesync-1.0.3-py2.py3-none-any.whl (9.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page