Resticprofile Versions Save

Configuration profiles manager and scheduler for restic backup

v0.17.0

2 years ago

Here it is!

It's been a while since we released a new version 😞 The resticprofile team has been busy preparing some really cool new features:

  • simplify the command line by allowing the use of [profile].[command] - Thanks @Syphdias for the PR #89
  • shell completion (for bash, can also be used by zsh with bash compatibility) - Thanks @jkellerer for the PR #90
  • run a shell command to use as a stdin input (like mysqldump) - Thanks @jkellerer for the PR #98
  • run a shell command in the background when non fatal errors are detected from restic - Thanks @jkellerer for the PR #99

and a lot of bug fixes 👍🏻

Changelog

  • 83e423e Add run flag to to be able to have profile and job name as one argument (#89)
  • 20a3b81 Added "generate" command to create resources (#110)
  • 1d2b214 Added missing cmds that filter by host, tag & path
  • 8cef157 Feature: Take command output as stdin for restic (#98)
  • fe336ff Fix and unit tests for #91
  • ad511c4 Fix config includes when any pattern has no match (#95)
  • 3e856ce Implemented stream-error callbacks (#99)
  • 3688b90 Merge pull request #101 from jkellerer/fix-common-args
  • 4f13930 Merge pull request #94 from jkellerer/ft-add-missing-commands
  • a72f635 Only pass common CLI args to command hooks [#100]
  • 7553a24 Shell completion (#90)
  • ea52e93 display a neat stack trace on panic
  • ff13660 fix for profiles command not showing inherited commands fixes second part of #97
  • 69dd965 remove "includes" section from profiles in "profiles" command

v0.16.1

2 years ago

New maintenance version, with bug fixes:

  • fix multiplication of arguments when commands are retried
  • fix status file telling the backup was successful when a warning happened (file/dir not found)

Changelog

  • e18906b Fix args are multiplied when commands are retried (#84)
  • 358f060 Fix for #88 with unit tests
  • b011437 don't inherit profile description
  • 16ad4b1 prepare for future versions of the configuration
  • da8c255 show schedules separately
  • 358a5db simple implementation of a config file v2
  • e2bd2cf update packages

v0.16.0

2 years ago

This release adds a few new features:

Changelog

1fa7d48 Add support for copy command (#73) 271c128 Change codecov uploader to use GitHub Action v2 (#79) 85fcc20 Optional: Allow disabling path in retention with 'false' (#67) 8773899 Scheduler refactoring (#76) 48c822c Support "run-finally" in backup-section & profile (#70) ac13d06 Supporting config includes (e.g. profiles.d) (#65) 245a440 Systemd template (#75) 122620e add tests on crontab 0dad5a8 crontab RemoveJob returns error if the entry was not found ff2fc1f upgrade dependencies

Docker images

  • docker pull creativeprojects/resticprofile:0.16.0

v0.15.0

2 years ago

⚠️ Important

Version 0.15 fixed some issues with escaping parameters to the restic command line. If you've used any of these characters in file or directory names in your configuration, please make sure your backup is still working as expected: space, *, ?, \, [, ', ".

If for some reason the fix broke your configuration, there's a new flag legacy-arguments that you can activate in the global section to revert back to the broken implementation:

global:
    legacy-arguments: true

New features in 0.15:

  • add .Hostname in configuration template (#55)
  • add description field in profile section
  • add support for prometheus file export and push gateway
  • hide confidential values in output (#58)
  • add .TmpDir variable to configuration template (#62)

This version also includes fixes for:

  • resolving special paths starting with a ~ (unixes only)
  • warn when the restic binary was not found at the specified location (but still found at a different location)
  • resolve glob expressions in backup sources (#63)

Changelog

abf0b00 Add support for prometheus export and push (#57) 37a69d7 Added "{{.TmpDir}}" to TemplateData (#62) 8218e70 Feature: Hide confidential values in output (#58) 0be5d5f Resolve glob expressions in backup sources (#63) 8cc2574 Shell escape (#60) 34f693c Update non-confidential values to support shell.Args (#68) 0841959 add Hostname pre-defined variable to template resolver (#55) f58116b add description field in profile section 0f9b21e build with go 1.17 16308e9 don't send status summary in dry-run 88052c6 show description in output of profiles command

Docker images

  • docker pull creativeprojects/resticprofile:0.15.0

v0.14.1

2 years ago

Bug fix release

This release changes the way the restic binary is searched:

  • restic binary path in global configuration can now contain the ~ character like ~restic/bin/restic
  • if you specified a path in the global configuration and it cannot find the file, a warning will be displayed and resticprofile will keep trying to find a suitable binary

Changelog

4686dd2 use shell to resolve special paths with ~ 823304a warning when the restic-binary was not found

Docker images

  • docker pull creativeprojects/resticprofile:0.14.1

v0.14.0

3 years ago

Release 0.14.0

  • New locking/unlocking features. Thanks jkellerer for the PR

Changelog

331b710 Added resticprofile flags --no-lock & --lock-wait (#33) 7fc5b3a Summary from plain output when not run in terminal (#48) b7edeb5 Updated contrib script systemd/send-error.sh (#49) fa42cf2 add macOS arm64 target to install.sh script a87f76d add token as an environment variable

Docker images

  • docker pull creativeprojects/resticprofile:latest
  • docker pull creativeprojects/resticprofile:0.14.0

v0.13.2

3 years ago

This version fixes a defect where extended status wasn't returning the extended information on Windows.

Changelog

cab8909 add Homebrew Tap (#45) 794f404 add github token in config 5e06dbd fix test too slow on build agent 2f79a46 fix windows bogus prefix (#47)

Docker images

  • docker pull creativeprojects/resticprofile:latest
  • docker pull creativeprojects/resticprofile:0.13.2

v0.13.1

3 years ago

Bug fix:

  • regression from v0.13.0: a message was sent to stderr when initialize parameter was set and the repository already exists

Changelog

02e6414 Increase test coverage (#40) d64dc4f fix #41: a message was sent to stderr when parameter initialize=true and repo exists

Docker images

  • docker pull creativeprojects/resticprofile:latest
  • docker pull creativeprojects/resticprofile:0.13.1

v0.13.0

3 years ago

This version adds two new features:

  • parameter no-error-on-warning to consider a backup successful when restic produced a new snapshot but some files were missing (https://github.com/creativeprojects/resticprofile/discussions/38)
  • resticprofile now catches the error output (stderr) to be written in the status file, also makes the environment variable RESTIC_STDERR available to the targets run-after-fail.

Changelog

8968e33 add RESTIC_STDERR env variable to run-after-fail 6b7dea4 quick implementation of ignore warning 833d24d quick mock to do some testing with a fake restic 3c54cc6 returns stderr output in the status file

Docker images

  • docker pull creativeprojects/resticprofile:latest
  • docker pull creativeprojects/resticprofile:0.13.0

v0.12.0

3 years ago

This release mainly brings 2 new features and a few enhancements:

  • add support for --all in status, schedule, unschedule commands
  • add backup statistics to the status file (via a new extended-status flag)

Changelog

237a87f Add backup statistics in status file (#36) 6622a39 Added fail env variable ERROR_COMMANDLINE (#32) 0887354 Added support for --all to status & (un)schedule (#31) 16e6c19 Enhanced "unschedule" to remove all possible jobs (#28) 47489a2 add profile name when running status --all 01ae05a fix an issue where status --all was stopping at the first profile with no schedule f50131b update goreleaser config to v0.154 c700d60 upgrade packages 4569f0d upgrade self-update library 7eb663d use go 1.16

Docker images

  • docker pull creativeprojects/resticprofile:latest
  • docker pull creativeprojects/resticprofile:0.12.0