Martin Kennedy
ae270aeebd
[v2] feat: lvm: Add lvm-based backup functionality
...
This commit implements the needs of #75[^1]: it allows for the
creation of atomic backups when the backup target is a file/dir whose
fs rests on LVM. This ensures the snapshot will be atomic.
By using a mount namespace, the LVM snapshot can be done in the same
directory -- so existing LVM-based applications of ansible_role_restic
can be migrated to this implementation without any discontinuity in
what appears to be backed up.
This combination of LVM's snapshotting layer and mount namespaces
comes with some caveats:
- you cannot backup / due to namespace issues
- subdirs with a separate fs won't be correctly detected
- not all filesystems are happy about LVM snapshots -- btrfs, e.g.
- LVM snapshots come with a performance penalty when active
- fstrim and LVM snapshots don't like each other whatsoever
[^1]: https://github.com/roles-ansible/ansible_role_restic/issues/75
--
Changes in v2:
- Use `findmnt -v` to find snapshot when cleaning up
- Check for _snap before `lvremove -y`
Signed-off-by: Martin Kennedy <hurricos@gmail.com>
2022-08-28 16:12:46 -04:00
aa70e1d29c
Merge pull request #77 from Hurricos/pr-fixup-default-install-path
...
fix: defaults: Match restic_install_path value to docs
2022-08-28 11:18:47 +02:00
Martin Kennedy
4aecbbeffd
fix: defaults: Match restic_install_path value to docs
...
The README (Role Variables) asserts that `restic_install_path`
defaults to `/usr/local/bin`, when in fact it defaults to
`/usr/bin`. Fix the defaults to match the documentation.
Signed-off-by: Martin Kennedy <hurricos@gmail.com>
2022-08-27 18:36:13 -04:00
efd21f0d0a
Merge pull request #73 from rndmh3ro/monitoring
...
add a monitoring call possibility
2022-07-12 22:07:49 +02:00
Sebastian Gumprich
9f710b8a0f
add a monitoring call possibility
2022-07-12 21:25:34 +02:00
d89d649725
Merge pull request #70 from roles-ansible/dependabot/github_actions/github/super-linter-4.9.4
...
Bump github/super-linter from 4.9.2 to 4.9.4
2022-06-06 02:22:48 +02:00
7d305d9d2b
Merge pull request #68 from roles-ansible/dependabot/github_actions/robertdebock/galaxy-action-1.2.1
...
Bump robertdebock/galaxy-action from 1.2.0 to 1.2.1
2022-06-06 02:22:29 +02:00
e113e8951d
Merge pull request #67 from roles-ansible/dependabot/github_actions/robertdebock/molecule-action-4.0.8
...
Bump robertdebock/molecule-action from 4.0.7 to 4.0.8
2022-06-06 02:22:11 +02:00
dependabot[bot]
3db7ab3910
Bump github/super-linter from 4.9.2 to 4.9.4
...
Bumps [github/super-linter](https://github.com/github/super-linter ) from 4.9.2 to 4.9.4.
- [Release notes](https://github.com/github/super-linter/releases )
- [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md )
- [Commits](https://github.com/github/super-linter/compare/v4.9.2...v4.9.4 )
---
updated-dependencies:
- dependency-name: github/super-linter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-30 09:13:51 +00:00
dependabot[bot]
5ab018ab24
Bump robertdebock/galaxy-action from 1.2.0 to 1.2.1
...
Bumps [robertdebock/galaxy-action](https://github.com/robertdebock/galaxy-action ) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/robertdebock/galaxy-action/releases )
- [Commits](https://github.com/robertdebock/galaxy-action/compare/1.2.0...1.2.1 )
---
updated-dependencies:
- dependency-name: robertdebock/galaxy-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 09:09:55 +00:00
dependabot[bot]
6646c61a70
Bump robertdebock/molecule-action from 4.0.7 to 4.0.8
...
Bumps [robertdebock/molecule-action](https://github.com/robertdebock/molecule-action ) from 4.0.7 to 4.0.8.
- [Release notes](https://github.com/robertdebock/molecule-action/releases )
- [Commits](https://github.com/robertdebock/molecule-action/compare/4.0.7...4.0.8 )
---
updated-dependencies:
- dependency-name: robertdebock/molecule-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 09:11:56 +00:00
5233dfe102
Merge pull request #66 from roles-ansible/dependabot/github_actions/github/super-linter-4.9.2
...
Bump github/super-linter from 4.9.0 to 4.9.2
2022-04-04 11:47:33 +02:00
dependabot[bot]
cacabaffb0
Bump github/super-linter from 4.9.0 to 4.9.2
...
Bumps [github/super-linter](https://github.com/github/super-linter ) from 4.9.0 to 4.9.2.
- [Release notes](https://github.com/github/super-linter/releases )
- [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md )
- [Commits](https://github.com/github/super-linter/compare/v4.9.0...v4.9.2 )
---
updated-dependencies:
- dependency-name: github/super-linter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 09:12:15 +00:00
1e0d0b9c92
Merge pull request #65 from roles-ansible/docs
...
improve README
2022-04-01 11:12:35 +02:00
acef0d2dbc
change ansible to use FQCN and lowercase restic_systemd_timer_default_OnCalendar
2022-04-01 11:07:52 +02:00
1121ff2511
improve README
...
thanks to @warwick-lill for the hint
CLOSE https://github.com/roles-ansible/ansible_role_restic/issues/64
2022-04-01 11:00:22 +02:00
30b45c6154
Merge pull request #63 from roles-ansible/dependabot/github_actions/robertdebock/galaxy-action-1.2.0
...
Bump robertdebock/galaxy-action from 1.1.1 to 1.2.0
2022-04-01 00:22:48 +02:00
dependabot[bot]
dea2ebf5e9
Bump robertdebock/galaxy-action from 1.1.1 to 1.2.0
...
Bumps [robertdebock/galaxy-action](https://github.com/robertdebock/galaxy-action ) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/robertdebock/galaxy-action/releases )
- [Commits](https://github.com/robertdebock/galaxy-action/compare/1.1.1...1.2.0 )
---
updated-dependencies:
- dependency-name: robertdebock/galaxy-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 09:14:24 +00:00
c1d7ea9cd0
Merge pull request #61 from roles-ansible/dependabot/github_actions/actions/checkout-3
...
Bump actions/checkout from 2.4.0 to 3
2022-03-27 19:41:55 +02:00
dependabot[bot]
9ef6501d03
Bump actions/checkout from 2.4.0 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2.4.0 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2.4.0...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 09:19:42 +00:00
dfde5d9674
Merge pull request #59 from roles-ansible/dependabot/github_actions/robertdebock/molecule-action-4.0.7
...
Bump robertdebock/molecule-action from 2.7.2 to 4.0.7
2022-02-16 17:16:54 +01:00
b623f966b2
Merge pull request #60 from roles-ansible/dependabot/github_actions/github/super-linter-4.9.0
...
Bump github/super-linter from 4.8.5 to 4.9.0
2022-02-16 17:16:09 +01:00
dependabot[bot]
186c71b164
Bump github/super-linter from 4.8.5 to 4.9.0
...
Bumps [github/super-linter](https://github.com/github/super-linter ) from 4.8.5 to 4.9.0.
- [Release notes](https://github.com/github/super-linter/releases )
- [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md )
- [Commits](https://github.com/github/super-linter/compare/v4.8.5...v4.9.0 )
---
updated-dependencies:
- dependency-name: github/super-linter
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-16 09:08:04 +00:00
dependabot[bot]
6c30165fd5
Bump robertdebock/molecule-action from 2.7.2 to 4.0.7
...
Bumps [robertdebock/molecule-action](https://github.com/robertdebock/molecule-action ) from 2.7.2 to 4.0.7.
- [Release notes](https://github.com/robertdebock/molecule-action/releases )
- [Commits](https://github.com/robertdebock/molecule-action/compare/2.7.2...4.0.7 )
---
updated-dependencies:
- dependency-name: robertdebock/molecule-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-11 10:07:05 +00:00
5d842e30a1
Merge pull request #53 from roles-ansible/txpo
...
delete cronjobs when they should be deleted
2022-01-18 18:05:35 +01:00
dd5672f99d
Merge pull request #52 from roles-ansible/cache
...
optional cache directory
2022-01-18 18:05:10 +01:00
5607345762
delete cronjobs when they should be deleted
2022-01-18 18:01:39 +01:00
d30e30fcae
optional cache directory
2022-01-18 17:20:02 +01:00
3e39c9200d
Merge pull request #50 from roles-ansible/dependabot/github_actions/github/super-linter-4.8.5
...
Bump github/super-linter from 4.8.4 to 4.8.5
2022-01-10 14:44:03 +01:00
94bb2aba89
Merge pull request #51 from roles-ansible/ansible-5
...
restructure schedule.yml to prevent failing on Ansible 5
2022-01-10 14:43:50 +01:00
390c780b24
Skip linting for selected tasks
2022-01-10 14:31:25 +01:00
d072148312
explain restic_do_not_cleanup_cron variable
2022-01-10 14:25:50 +01:00
75e78c5876
Adding task name prefix to task
2022-01-10 14:19:53 +01:00
9b8962cc5f
in case of systemd timers are used, remove possible installed cronjobs
2022-01-10 12:05:14 +01:00
619f4263e9
print if someone is already running
2022-01-10 11:17:20 +01:00
3bd09b48f8
create a pidfile bevore running script, delete after
2022-01-10 11:01:01 +01:00
770598ffca
rename some tasks
2022-01-07 20:13:57 +01:00
25ee60fb5a
start making this role compatible with ansible 5
2022-01-07 20:13:43 +01:00
dependabot[bot]
6129f51752
Bump github/super-linter from 4.8.4 to 4.8.5
...
Bumps [github/super-linter](https://github.com/github/super-linter ) from 4.8.4 to 4.8.5.
- [Release notes](https://github.com/github/super-linter/releases )
- [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md )
- [Commits](https://github.com/github/super-linter/compare/v4.8.4...v4.8.5 )
---
updated-dependencies:
- dependency-name: github/super-linter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-21 09:09:16 +00:00
e614bdc661
Merge pull request #48 from roles-ansible/DO1JLR-patch-1
...
increase role verion for quick version check
2021-12-07 19:06:17 +01:00
598a6ed5da
increase role verion for quick version check
2021-12-07 19:03:12 +01:00
33108803f4
Merge pull request #47 from roles-ansible/m
...
disable timeout mechanism
2021-12-07 17:53:28 +01:00
ee06222b20
disable timeout mechanism
2021-12-07 17:47:51 +01:00
92e62aa67c
Merge pull request #46 from lisuml/main
...
Fix #45 : send email also on the main command failure
2021-11-30 12:30:00 +01:00
Michał Lisowski
47f548d77e
Fix #45 : send email also on the main command failure
2021-11-30 12:26:37 +01:00
cca34cffae
Merge pull request #44 from lisuml/main
...
Fix support for systemd OnCalendar
2021-11-30 01:43:57 +01:00
Michał Lisowski
132126abe3
Fix #10 : support for systemd OnCalendar
2021-11-29 19:00:02 +01:00
d697eff938
Merge pull request #43 from roles-ansible/dependabot/github_actions/github/super-linter-4.8.4
...
Bump github/super-linter from 4.8.1 to 4.8.4
2021-11-17 19:57:42 +01:00
dependabot[bot]
a938acb64b
Bump github/super-linter from 4.8.1 to 4.8.4
...
Bumps [github/super-linter](https://github.com/github/super-linter ) from 4.8.1 to 4.8.4.
- [Release notes](https://github.com/github/super-linter/releases )
- [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md )
- [Commits](https://github.com/github/super-linter/compare/v4.8.1...v4.8.4 )
---
updated-dependencies:
- dependency-name: github/super-linter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-17 09:08:31 +00:00
3195ab6bf8
Merge pull request #41 from roles-ansible/dependabot/github_actions/actions/checkout-2.4.0
...
Bump actions/checkout from 2.3.5 to 2.4.0
2021-11-03 17:13:22 +01:00