Skip to main content


Project description


  • python3
  • sshpass
  • mysqldump
  • click

Set up

pip install sbackup2

Sample task config

Default placed in /etc/sbackup2.d/. sbackup2 loads all tasks with *.conf.

  "options": {
    "sftp_host": "",
    "sftp_user": "USER",
    "sftp_password": "PASSWORD",
    "sftp_options": "-oBatchMode=no",
    "sftp_remote_dir": "DIR",
    "file_name_tpl": "{host_name}_{year}_{month}_{day}__{hour}_{minutes}_{seconds}.tar.bz2"
  "tasks": [
      "fd_exclude": ["sessions"],
      "fd": [
      "db": [
        ["mysql", "db1"],
        ["mysql", "db2"],
        ["psql", "db1"]     // postgresql not support yet



For access to databases you should create the file /<user>/.my.cfg with context:


Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
sbackup2-1.1.3.tar.gz (4.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page