https://github.com/n1k0r/ansible-role-backup
Backup role for Ansible
https://github.com/n1k0r/ansible-role-backup
administration ansible ansible-role backup deployment linux rclone server
Last synced: 2 months ago
JSON representation
Backup role for Ansible
- Host: GitHub
- URL: https://github.com/n1k0r/ansible-role-backup
- Owner: n1k0r
- Created: 2024-04-01T10:13:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-27T15:51:52.000Z (over 1 year ago)
- Last Synced: 2025-06-08T03:24:54.114Z (about 1 year ago)
- Topics: administration, ansible, ansible-role, backup, deployment, linux, rclone, server
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Backup role for Ansible
## Variables
```yaml
backup:
schedule:
minute: "0"
hour: "5"
day: "*"
weekday: "*"
month: "*"
target:
type: b2
prefix: bucketname/
args:
b2-account: 123account0id12345678
b2-key: anI3eu8yJRJzOVCf2fzOVhDwn0cXPtL
b2-hard-delete: "true"
dirs:
- src: "{{ services_path }}/app/data/"
exclude: [ backups, "*.log" ]
dest: app
max_age: 10d
- src: "{{ services_path }}/service/db/"
dest: service
max_age: 3d
compress: yes
```