Commits

Jakub Zalewski  committed 18fd1d4

api and config mockup

  • Participants
  • Parent commits 8e15b99

Comments (0)

Files changed (2)

File fabric_pgbackup/config-sample.py

+PG_BACKUP_CONF = {
+    'SSH': {
+        'SOURCE': 'user@example.com:123',  # leave blank if running locally
+        'TARGET': '',  # leave blank if same as source
+    },
+    'DATABASES': {
+        'SOURCE': {
+            'HOST': '127.0.0.1',
+            'NAME': 'dbname',
+            'PORT': 5432,
+            'USER': 'joe',
+            'PASSWORD': '',
+        },
+        'TARGET': {
+            'HOST': '',
+            'NAME': '',
+            'PORT': 5432,
+            'USER': '',
+            'PASSWORD': '',
+        },
+    },
+    'BACKUP_FILES_LOCATION': '~/backups/',
+}

File fabric_pgbackup/fabric_pgbackup.py

+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+
+def pg_list_backups():
+    """
+
+    """
+    pass
+
+
+def pg_backup():
+    """
+
+    """
+    pass
+
+
+def pg_download():
+    """
+
+    """
+    pass
+
+
+def pg_restore():
+    """
+
+    """
+    pass
+
+
+def pg_check():
+    """
+
+    """
+    pass