https://github.com/akman/ansible-role-ocstore_backup
Backup ocStore application on Linux
https://github.com/akman/ansible-role-ocstore_backup
Last synced: 5 months ago
JSON representation
Backup ocStore application on Linux
- Host: GitHub
- URL: https://github.com/akman/ansible-role-ocstore_backup
- Owner: Akman
- License: mit
- Created: 2017-08-25T11:43:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-16T12:38:41.000Z (almost 8 years ago)
- Last Synced: 2025-07-09T04:39:53.518Z (12 months ago)
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: ocstore_backup
Backup ocStore on Linux.
## Requirements
None.
## Role Variables
Available variables are listed below, along with default values:
ocstore_backup_dir: "backup/yourdmain"
ocstore_backup_keep: 7
ocstore_backup_to: "/var/tmp"
ocstore_backup_prefix: ""
ocstore_mysql_databases: []
ocstore_backup_from: []
ocstore_backup_dumps_dir: "sql"
ocstore_backup_files_dir: "files"
## Dependencies
None.
## Example Playbook
- hosts: all
roles:
- Akman.ocstore_backup
*Inside `vars/main.yml`*:
ocstore_mysql_databases:
- name: "ocstore"
encoding: utf8
collation: utf8_general_ci
ocstore_backup_dir: "backup/ocstore"
ocstore_backup_keep: 7
ocstore_backup_to: "/var/tmp/ocstore"
ocstore_backup_prefix: "ocstore_"
ocstore_backup_dumps_dir: "sql"
ocstore_backup_files_dir: "shared"
ocstore_backup_from:
- path: "/var/www/ocstore/shared/"
options:
- "--include=/download/"
- "--include=/image/"
- "--exclude=/image/cache/"
- "--exclude=/*/"
- "--exclude=/*"
- "--exclude=index.html"
- "--exclude=.htaccess"
## License
MIT / BSD
## Author Information
This role was created in 2017 by Alexander Kapitman