diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md deleted file mode 100644 index fe46f5f..0000000 --- a/.chglog/CHANGELOG.tpl.md +++ /dev/null @@ -1,59 +0,0 @@ -{{ if .Versions -}} - -## [Unreleased] - -{{ if .Unreleased.CommitGroups -}} -{{ range .Unreleased.CommitGroups -}} -### {{ .Title }} -{{ range .Commits -}} -- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} -{{ end }} -{{ end -}} -{{ end -}} -{{ end -}} - -{{ range .Versions }} - -## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }} -{{ range .CommitGroups -}} -### {{ .Title }} -{{ range .Commits -}} -- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} -{{ end }} -{{ end -}} - -{{- if .RevertCommits -}} -### Reverts -{{ range .RevertCommits -}} -- {{ .Revert.Header }} -{{ end }} -{{ end -}} - -{{- if .MergeCommits -}} -### Pull Requests -{{ range .MergeCommits -}} -- {{ .Header }} -{{ end }} -{{ end -}} - -{{- if .NoteGroups -}} -{{ range .NoteGroups -}} -### {{ .Title }} -{{ range .Notes }} -{{ .Body }} -{{ end }} -{{ end -}} -{{ end -}} -{{ end -}} - -## History -For versions before 0.2.9, see [HISTORY.md](HISTORY.md) - -{{- if .Versions }} -[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD -{{ range .Versions -}} -{{ if .Tag.Previous -}} -[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }} -{{ end -}} -{{ end -}} -{{ end -}} diff --git a/.chglog/config.yml b/.chglog/config.yml deleted file mode 100644 index 1881dcf..0000000 --- a/.chglog/config.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -style: github -template: CHANGELOG.tpl.md -info: - title: CHANGELOG - repository_url: https://github.com/syntro-opensource/ansible.silverstripe -options: - commits: - filters: - Type: - - add - - fix - - change - - remove - - deprecate - - Bump - commit_groups: - title_maps: - add: 🍰 Added - fix: 🐞 Fixed - change: 🔧 Changed - deprecate: 💀 Deprecated - remove: 🗑 Removed - Bump: 🧬 Dependencies - header: - pattern: "^(\\w*)\\:?\\s(.*)$" - pattern_maps: - - Type - - Subject - notes: - keywords: - - BREAKING CHANGE diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 4a7ea30..0000000 --- a/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -root = true - -[*] -indent_style = space -indent_size = 2 -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false diff --git a/.github/galaxy.svg b/.github/galaxy.svg new file mode 100644 index 0000000..3c6a5ab --- /dev/null +++ b/.github/galaxy.svg @@ -0,0 +1,94 @@ + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.github/license.svg b/.github/license.svg new file mode 100644 index 0000000..4ab6d9a --- /dev/null +++ b/.github/license.svg @@ -0,0 +1,217 @@ + + + + + + image/svg+xml + + + + + + 3D <l3d@c3woc.de> + + + + + MIT License + + + + + + + + + + + + + + + + + + + + + + + + + + + MIT + MIT + + + license + license + + diff --git a/README.md b/README.md index 31de012..2e732d3 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,9 @@ > **Beta:** This role is in beta status. -![🎭 Tests](https://github.com/arillso/ansible.restic/workflows/%F0%9F%8E%AD%20Tests/badge.svg) -[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=popout-square)](https://sbaerlo.ch/licence) -[![Ansible Galaxy](https://img.shields.io/badge/ansible--galaxy-restic-blue.svg?style=popout-square)](https://galaxy.ansible.com/arillso/restic) -[![Ansible Role](https://img.shields.io/ansible/role/d/42773.svg?style=popout-square)](https://galaxy.ansible.com/arillso/restic) +[![🎭 Tests](https://github.com/roles-ansible/ansible_role_restic/actions/workflows/test.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_restic/actions/workflows/test.yml) +[![license](https://raw.githubusercontent.com/roles-ansible/ansible_role_restic/main/.github/license.svg)](https://github.com/roles-ansible/ansible_role_restic/blob/main/LICENSE) +[![Ansible Galaxy](https://raw.githubusercontent.com/roles-ansible/ansible_role_restic/main/.github/galaxy.svg)](https://galaxy.ansible.com/do1jlr/restic) ## Description [Restic](https://github.com/restic/restic) is a versatile Go based backup @@ -13,14 +12,14 @@ solution which supports multiple backends, deduplication and incremental backups. This role installs restic on a client, configures the backup repositories -and optionally sets up cronjobs to run said backups. +and optionally sets systemd timer or cronjobs to run the backups. Aditionally, it will setup executable scripts to run a Backup manually. -> This Project borrows heavily from the -> [donat-b/ansible-restic](https://github.com/donat-b/ansible-restic) -> ansible role. We try to make this role more semver deployment friendly -> by allowing to use version tags and keep these snapshots and adapting the -> automated backup definition for use with windows systems. +> This Project borrowed heavily from the +> [donat-b/ansible-restic](https://github.com/donat-b/ansible-restic) and +> tje [https://github.com/arillso/ansible.restic](https://github.com/arillso/ansible.restic) +> ansible role. We try to make this role more modern by using systemd timer, +> /etc/crontab to define backup paths, more absolute paths and less options. (no S3 Storage, No Windows...) ### Backup Scripts This role will create a backup script and a file with credentials usable with the `source` command on linux for each backup in the `restic_script_dir`. @@ -65,10 +64,10 @@ ansible-galaxy install arillso.restic | Name | Default | Description | | ---------------------- | ----------------------------------- | --------------------------------------------------------------------------- | | `restic_url` | `undefined` | The URL to download restic from. Use this variable to overwrite the default | -| `restic_version` | `'0.11.0'` | The version of Restic to install | +| `restic_version` | `'0.12.0'` | The version of Restic to install | | `restic_download_path` | `'/opt/restic'` | Download location for the restic binary | | `restic_install_path` | `'/usr/local/bin'` | Install location for the restic binary | -| `restic_script_dir` | `'~/restic'` | Location of the generated backup scripts | +| `restic_script_dir` | `'/opt/restic'` | Location of the generated backup scripts | | `restic_log_dir` | `'{{ restic_script_dir }}/log'` | Location of the logs of the backup scripts | | `restic_repos` | `{}` | A dictionary of repositories where snapshots are stored | | `restic_backups` | `{}` (or `[]`) | A list of dictionaries specifying the files and directories to be backed up | @@ -190,4 +189,3 @@ none ## License This project is under the MIT License. See the [LICENSE](LICENSE) file for the full license text. - diff --git a/defaults/main.yml b/defaults/main.yml index 5a4e96f..b9af5df 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,7 +1,7 @@ --- # defaults file for skeleton restic_url: '{{ restic_url_default }}' -restic_version: '0.11.0' +restic_version: '0.12.0' restic_download_path: '/opt/restic' restic_install_path: '/usr/bin' restic_script_dir: '/opt/restic' diff --git a/package.json b/package.json deleted file mode 100644 index d6613d3..0000000 --- a/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "scripts": { - "changelog": "git-chglog 0.2.8.." - } -}