Sha256: be2fc2cf9562b5dec958174931d5cce71e7350f931fa47250b722645e60b3eb4
Contents?: true
Size: 798 Bytes
Versions: 1
Compression:
Stored size: 798 Bytes
Contents
#!/bin/bash # This file was generated by Ansible for {{ ansible_fqdn }} # Do NOT modify this file by hand! WORKDIR={{backup_work}}/{{item.name}} {% if item.source.startswith('postgresql://') %} DBNAME={{item.source.split('postgresql://')[-1]}} pg_dump -U {{backup_postgres_user}} {{ '-h ' + backup_postgres_host if backup_postgres_host else ''}} {{ ('-p %s' % backup_postgres_port) if backup_postgres_port else ''}} -c $DBNAME -f ${WORKDIR}/dump {% elif item.source.startswith('mysql://') %} DBNAME={{item.source.split('mysql://')[-1]}} mysqldump -u {{backup_mysql_user}} -p{{backup_mysql_pass}} $DBNAME > ${WORKDIR}/dump {% elif item.source.startswith('mongo://') %} mongodump --out $WORKDIR/dump {% endif %} {% for action in item.pre_actions|default([]) %} {{ action }} {% endfor %}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
taperole-1.6.0 | vendor/Stouts.backup/templates/pre.j2 |