--- nfs_shares: - mount_point: /mnt/Benjamin server: nas.lan export: /mnt/DocNas/Benjamin options: "defaults,_netdev,rsize=8192,wsize=8192" - mount_point: /mnt/Margot server: nas.lan export: /mnt/DocNas/Margot options: "defaults,_netdev,rsize=8192,wsize=8192" - mount_point: /mnt/Commun server: nas.lan export: /mnt/DocNas/Commun options: defaults,_netdev,rsize=8192,wsize=8192 borgmatic_name: on_start borg_source_directories: "{{ nfs_shares | map(attribute='mount_point') }}" borg_repository: /backup/borgmatic borgmatic_hooks: on_error: - echo "`date` - Error while creating a backup." before_backup: - echo "`date` - Starting backup." after_backup: - echo "`date` - Finished backup." - poweroff