Skip to main content

My package description

Project description

edxbackup is database backup program designed to work with openedx data sources, but not specific to it.

edxbackup is a wrapper around restic.

installation

manual

Make sure that you have following software installed in your environment:

  1. Python 3.11

  2. restic

  3. myloader

  4. mongodb-tools

Then, run pip install edxbackup==3.1.1.

docker

docker pull edxbackup:3.1.1

running

preparations

You need restic repository set up elsewhere for edxbackup to operate. Consult restic docs to do it.

Before running edxbackup make sure that RESTIC_REPOSITORY and RESTIC_PASSWORD are set.

config

You can use example/edxbackup.json in repo as a reference. All the sections are mandatory, but you can set mysql, mongo and s3 to empty list if you don’t want to backup those.

There’s two ways to pass config location to edxbackup:

  1. Put it in the EDXBACKUP_CONFIG_PATH environment variable

  2. Pass it as the value of -c or --config command line flag

If neither is used, edxbackup will /etc/edxbackup.json as fallback.

backup

Run edxbackup backup. The last line in it’s output will be backup ID.

list & show

edxbackup list and edxbackup show are informational commands. You can use the first one to show a list of available backups and the second one to inspect individual backup contents.

restore

Run edxbackup restore <BACKUP_ID>. Make sure to replace <BACKUP_ID> with your backup ID.

running regularily

There’s example systemd service & timer in systemd/ directory.

deleting old backups

There’s contrib/delete_old.py script in this repo that will run restic forget command with arguments adjustable by environment variables. Make sure that you read the script before running it. It is destructive.

Project details


Download files

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

Source Distribution

edxbackup-3.2.1.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

edxbackup-3.2.1-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file edxbackup-3.2.1.tar.gz.

File metadata

  • Download URL: edxbackup-3.2.1.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for edxbackup-3.2.1.tar.gz
Algorithm Hash digest
SHA256 b4d94b6c03b6ef628581c0d164cea984e23259fa479b1e70d3cc399209bee3b8
MD5 0e53e33b69538ceb9a73dc6b48e9bc89
BLAKE2b-256 3d737332899e8371629d472522e30a3ec322757481e20e85ee06a400e28484c1

See more details on using hashes here.

File details

Details for the file edxbackup-3.2.1-py3-none-any.whl.

File metadata

  • Download URL: edxbackup-3.2.1-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for edxbackup-3.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae8e123a9f4137f168377fd11af53f26a0da82b0d26381f09f9c24668d77c7b5
MD5 81fed3447b37d6ed6834489721dc219d
BLAKE2b-256 3128b7c86d67ceed51f8929dfc50bb0c7c6cd8b8e70845edeeffaf3c2aae4416

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page