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: PostgreSQL.

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

/etc/postgresql/[version]/main/pg_hba.conf

/etc/postgresql/[version]/main/postgres.conf

More information to be found in the PostgreSQL documentation.

Metadata

Release files for django-datasync 0.0.2.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 django-datasync 0.0.2.dev0
File Size Uploaded Provenance Actions
django-datasync-0.0.2.dev0.tar.gz 3.2 kB Without provenance Details for django-datasync-0.0.2.dev0.tar.gz

Release files / django-datasync-0.0.2.dev0.tar.gz

Download URL django-datasync-0.0.2.dev0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dcbe8e0e5381180846d01fc98057303aea33826afcfa74f1f01dd2906a9d6a4e
BLAKE2b-256 checksum
How to use checksums
db3731580de19c5696cf4b1a43fbd84f5348975168f4c8b030812b6c8cf7b6af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-datasync 0.0.2.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.

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