Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

datasync

Management command to sync environment data.

Syncs database and media, for example when deploying an acceptance environment.

Quick Start

  • pip install django-datasync

  • add ‘datasync’ to INSTALLED APPS

  • configure settings

DATASYNC = {
    'HOST': '{{ remote_host_address }}',
    'PORT': {{ remote_ssh_port }}
    'USER': '{{ remote_username }}',
    'PASSWORD': '{{ remote_user_password }}',
    'MEDIA_REMOTE': '{{ remote_media_directory }}',
    'MEDIA_TARGET': '{{ local_media_directory }}',
    'DATABASE': {
        'HOST': '{{ db_host_address }}',
        'USER': '{{ db_username }}',
        'PASSWORD': '{{ db_password }}',
        'NAME': '{{ db_name }}',
        'PORT': {{ db_port }}
    },
}

You will now have access to the management command ‘sync_environment’. Run that command from the target machine, perhaps as a cron job. Or add to ansible-playbooks setup.

Supported Databases: Postgres.

You will also have to edit the following postgres conf file in order to allow access from your target machine(s)

/etc/postgresql/9.3/main/pg_hba.conf

Metadata

Release files for datasync 0.0.1.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasync 0.0.1.dev0
File Size Uploaded Provenance Actions
datasync-0.0.1.dev0.tar.gz 3.0 kB Without provenance Details for datasync-0.0.1.dev0.tar.gz

Release files / datasync-0.0.1.dev0.tar.gz

Download URL datasync-0.0.1.dev0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b79a002a01db49f9e4256f10a7c126dc7acc48f778a36a9c067515d5f035b2df
BLAKE2b-256 checksum
How to use checksums
9ae1a273546e7d19e152d2a515478088dd3b3b772563b1828fc2fe5122fe2595
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for datasync 0.0.1.dev0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page