Skip to content

Releases: cloudfoundry/bosh-backup-and-restore

1.1.6 - update to golang 1.10

21 Feb 16:26
Compare
Choose a tag to compare

Stories

Commits

Extracted a job execution strategy and injected it using factories
[#153632732]

Order jobs into slice of slices
Scripts when run are still serial
[#153632732]

use the director lock ordere for director restore cleanup rather than Kahn Order
[#153632732]

Extracted out a serial job runner to execute actions on job
actions are things like: backup-lock, backup-unlock, restore-lock, restore-unlock
[#153632732]

Removing duplicated message consts

1.1.5

08 Feb 15:26
c3c227f
Compare
Choose a tag to compare

This release

  • To enable BOSH Addons to work, BBR doesn't fail when the release name for a job cannot be found.
  • Move 'keep-alive' warnings to debug mode.
  • Fix issue on machines with unusual permissions set on /var/vcap/store.

Stories

Commits

move pipeline to ci repo
[#153116798]

Move pipeline definition into main repo
[#153116798]

Add an integration test for the unrecognized (addon) job bug
[#153244079]

Do not fail when the release name for a job cannot be found
[#153244079]

Add instance.Logger.Warn()
[#153244079]

Fail when a locking dependency is not satisfied
[#153244079]

Revert "Add long timeout to try and resolve docker issues"
This reverts commit 012dcf5.

Add long timeout to try and resolve docker issues

Print 'keepalive failed' message in debug mode only
[#153281366]

Print names of files with mismatched checksums
(up to a limit of ten)
[#152717637]

Prepend constructor function names with 'New'

release_mapper.go -> release_mapping.go

Move remote runner to ssh package
Add remote runner factory to replace connection factory
[#153208780]

remove redundant env var sorting in remoteRunner
[#153062605]

Replace assertions on ssh fakes with RemoteRunnerFakes
[#153062605]

Fix integration test; remove unused methods from Instance interface
[#153208780]

Refactor deployedInstance tests to check calls to RemoteRunner
These tests no longer involve the SSH connection at all.
[#153208780]

Remove sshConnection fake from job_test
[#153208780]

fakeSSHConnection -> fakeRemoteRunner in some tests
[#153208780]

Finish adding unit tests for RemoteRunner
[#153062605]

Revert "Revert "Add tests for most RemoteRunner methods""
This reverts commit 61d8df4.

Fix previously broken test
This reverts commit 2d2e527.

Revert "Fix RemoteRunner.SizeOf for folders with no access permissions"
This reverts commit 2786175.

Revert "Add tests for most RemoteRunner methods"
This reverts commit f1c92cd.

Add tests for most RemoteRunner methods
[#153062605]

Fix RemoteRunner.SizeOf for folders with no access permissions
[#153062605]

Rearrange RemoteRunner methods
[#153062605]

CompressDirectory -> ArchiveAndDownload, ExtractArchive -> ExtractAndUpload
[#153062605]

Remove InstanceIdentifier from RemoteRunner
[#153062605]

Port Job and JobFinder to RemoteRunner
[#153062605]

Extract RemoteRunner interface; generate fake
[#153062605]

Add RemoteRunner.connectedUsername()
[#153062605]

Remove unused logAndRun method from Artifact
[#153062605]

Extract ssh interactions from backup/restore artifact
[#153062605]

Remove instance.SSHConnection in favour of ssh.SSHConnection
[#153062605]

Start extracting the RemoteRunner
[#153062605]

Remove RunOnInstance() from instance.DeployedInstance, add RemoveArtifactDir()
[#153062605]

Run docker pull when creating first docker image
[#153048952]

Fix unit test for instance.Artifact.Checksum()
[#153022714]

Fix non-sudo cd
This was causing issues on machines with unusual permissions set on
/var/vcap/store.
[#153022714]

added a debug line when we skip instance when scripts are not found
[#150171184]

Don't keep looking for scripts in instance groups with no scripts
[#150171184]

change link to cf summit europe bbr talk

Remove unwritable folder bug test, as it is very hard to make it work on CI

non-root -> not-root

Fix unwritable folder bug test
The test was failing on CI as concourse runs everything as root, so
chmoding the folder is not enough to trigger the error. We fixed the
problem by adding the possibility to run BBR as a non-root user, and
adding a 'not-root' to our CI Docker image.
[#152542290]

Make error handling across commands more consistent
This also fixes #152542290.

Cleanup/formatting/renaming

Move command utility functions to cli/command/utils.go

Unexport ExtractNameFromAddress

Add bbr build status badge to README
[#149884496]

Switch from glide to dep
[#152079674]

Update chmod of key to account for specified private key
[#152311285]

Fix path to specified BOSH_GATEWAY_KEY
[#152311285]

Default BOSH_GATEWAY_USER for director test
[#152311285]

Allow for overriding of gateway user and key
[#152311285]

Inject BOSH gateway host as a different machine from BOSH director
[#152311285]

Revert "Switch to dep from glide"
This reverts commit 4f596ef.

Switch to dep from glide
[#152079674]

1.1.4

15 Dec 13:19
Compare
Choose a tag to compare

Improved logging on locking order and a range of errors.
Faster script discovery

Stories

Commits

Move pipeline definition into main repo
[#153116798]

Add an integration test for the unrecognized (addon) job bug
[#153244079]

Do not fail when the release name for a job cannot be found
[#153244079]

Add instance.Logger.Warn()
[#153244079]

Fail when a locking dependency is not satisfied
[#153244079]

Revert "Add long timeout to try and resolve docker issues"
This reverts commit 012dcf5.

Add long timeout to try and resolve docker issues

Print 'keepalive failed' message in debug mode only
[#153281366]

Print names of files with mismatched checksums
(up to a limit of ten)
[#152717637]

Prepend constructor function names with 'New'

release_mapper.go -> release_mapping.go

Move remote runner to ssh package
Add remote runner factory to replace connection factory
[#153208780]

remove redundant env var sorting in remoteRunner
[#153062605]

Replace assertions on ssh fakes with RemoteRunnerFakes
[#153062605]

Fix integration test; remove unused methods from Instance interface
[#153208780]

Refactor deployedInstance tests to check calls to RemoteRunner
These tests no longer involve the SSH connection at all.
[#153208780]

Remove sshConnection fake from job_test
[#153208780]

fakeSSHConnection -> fakeRemoteRunner in some tests
[#153208780]

Finish adding unit tests for RemoteRunner
[#153062605]

Revert "Revert "Add tests for most RemoteRunner methods""
This reverts commit 61d8df4.

Fix previously broken test
This reverts commit 2d2e527.

Revert "Fix RemoteRunner.SizeOf for folders with no access permissions"
This reverts commit 2786175.

Revert "Add tests for most RemoteRunner methods"
This reverts commit f1c92cd.

Add tests for most RemoteRunner methods
[#153062605]

Fix RemoteRunner.SizeOf for folders with no access permissions
[#153062605]

Rearrange RemoteRunner methods
[#153062605]

CompressDirectory -> ArchiveAndDownload, ExtractArchive -> ExtractAndUpload
[#153062605]

Remove InstanceIdentifier from RemoteRunner
[#153062605]

Port Job and JobFinder to RemoteRunner
[#153062605]

Extract RemoteRunner interface; generate fake
[#153062605]

Add RemoteRunner.connectedUsername()
[#153062605]

Remove unused logAndRun method from Artifact
[#153062605]

Extract ssh interactions from backup/restore artifact
[#153062605]

Remove instance.SSHConnection in favour of ssh.SSHConnection
[#153062605]

Start extracting the RemoteRunner
[#153062605]

Remove RunOnInstance() from instance.DeployedInstance, add RemoveArtifactDir()
[#153062605]

Run docker pull when creating first docker image
[#153048952]

Fix unit test for instance.Artifact.Checksum()
[#153022714]

Fix non-sudo cd
This was causing issues on machines with unusual permissions set on
/var/vcap/store.
[#153022714]

added a debug line when we skip instance when scripts are not found
[#150171184]

Don't keep looking for scripts in instance groups with no scripts
[#150171184]

change link to cf summit europe bbr talk

Remove unwritable folder bug test, as it is very hard to make it work on CI

non-root -> not-root

Fix unwritable folder bug test
The test was failing on CI as concourse runs everything as root, so
chmoding the folder is not enough to trigger the error. We fixed the
problem by adding the possibility to run BBR as a non-root user, and
adding a 'not-root' to our CI Docker image.
[#152542290]

Make error handling across commands more consistent
This also fixes #152542290.

Cleanup/formatting/renaming

Move command utility functions to cli/command/utils.go

Unexport ExtractNameFromAddress

Add bbr build status badge to README
[#149884496]

Switch from glide to dep
[#152079674]

Update chmod of key to account for specified private key
[#152311285]

Fix path to specified BOSH_GATEWAY_KEY
[#152311285]

Default BOSH_GATEWAY_USER for director test
[#152311285]

Allow for overriding of gateway user and key
[#152311285]

Inject BOSH gateway host as a different machine from BOSH director
[#152311285]

Revert "Switch to dep from glide"
This reverts commit 4f596ef.

Switch to dep from glide
[#152079674]

1.1.3 - print locking order

13 Oct 15:50
cfbdb11
Compare
Choose a tag to compare

Stories

Commits

Print locking order when detected during backup/restore
[#151873487]

1.1.2

12 Oct 15:03
Compare
Choose a tag to compare

Stories

Commits

Make error assertions more specific
[#147123829]

Add log message for validating backup artifact
[#147012107]

Update info printed before looking for scripts to be more informative
[#147264131]

Make linux release of bbr binary statically linked
[#151462758]

1.1.1

12 Oct 14:58
Compare
Choose a tag to compare

Stories

Commits

Update info printed before looking for scripts to be more informative
[#147264131]

Make linux release of bbr binary statically linked
[#151462758]

1.1.0

26 Sep 17:03
Compare
Choose a tag to compare

This release adds locking during restore, and declarative order of locking for backups and restores.

Stories

Commits

extract builders and command from main.go
Still to refactor: exit errors and trapping SIGINT

Implement restore lock and unlock ordering
[#150215579]

Use latest version of fixture
[#150215579]

Refactoring kahn_lock_orderer
[#150215579]

Adding restore_should_be_locked_before and renaming should_be_locked_before
[#150215579]

Revert "Revert "Revert YAML format change for metadata""
[#150215579]
This reverts commit 06bd74a.

Use latest fixture
[#150215579]

Rename lifecycle_with_locking_order to have _test suffix
[#150215579]

Update deploy-systest-release to take RELEASE_NAME

Fix navigation between releases in deploy-systest-releases script

Add bbr repo as input to deploy-systest-releases task

Add deploy-systest-releases task and script

Use latest fixture

Revert "Revert YAML format change for metadata"
This reverts commit 7f544c5.

Merge branch 'master' of github.com:cloudfoundry-incubator/bosh-backup-and-restore

Include restore-cleanup subcommand in cli help text
[#148732575]

Update post-restore-unlock-step to use the post unlock error
[#148732575]

Add more test cases to the DeployedInstance tests
[#151286138]

Improve error messages in JobFinder
[#150804123]

Use eventually to prevent race conditions when untar backup artifact
[#148732575]

Add restore-cleanup recommendation to ctrl-c confirmation
[#148732575]

Cleanup the deployment in AfterEach
Uncomment changes to suite and focus that were accidentally committed
[#148732575]

Add restore cleanup for director
[#148732575]

Add restore-cleanup for deployment
[#148732575]

Fix tests

Unfocus tests
[#151286138]

Fix the instance identifier in StreamFromRemote logs

Don't try to upload or download artifacts that don't exist
[#151286138]

Re-generate FakeInstance

Make code lines shorter so you can read them

Alpha of bbr

21 Sep 10:40
Compare
Choose a tag to compare
Alpha of bbr Pre-release
Pre-release

Includes:

  • locking order for backups
  • calling lock/unlock scripts for restore

1.0.0

09 Aug 09:43
Compare
Choose a tag to compare

BBR v1.0 enables backup and restore of BOSH Deployments and BOSH Directors. BBR uses backup and restore functionality that is packaged in the BOSH Deployment or Director, so can only backup and restore versions that contain that functionality.

Stories

Commits

Merge pull request #4 from christopherclark/master
Update NOTICE

Update NOTICE

formatting fix

Add link to blog and CF Summit talk

change date to make just 2017

Move from pivotal-cf to cloudfoundry-incubator

  • update Go import paths
  • update Makefile etc. with correct paths
    [#149571703]

Add readme
[#149476845]

Remove redundant appendix from LICENCE
[#149476845]

Added a integration test for director restore
[#148732155]

Move running of script to the job

Get rid of [Is|Any][Pre|Post]BackupUnlockable() methods
[#148732155]

Remove unused function

Implement post-restore-unlock
[#148732155]

move script pattern definition from scripts to script
[#148732155]

Orchestration tests for post-restore-unlock
[#148732155]

Fix up tests which were using FileExists without actually asserting
[#148732155]

Test we post-backup-unlock if backup fails
[#148732155]

1.0.0-beta.4

13 Jul 16:21
Compare
Choose a tag to compare

Enable operator to ctrl-c an in-progress backup and add a new backup-cleanup command, to clean up after a killed backup.

Stories

Commits

Refactor: Renamed HasBackup script to IsBackupable
[#147747515]

Fixed cli test
[#147747515]

Changed the command name to 'backup-cleanup'

  • Added a help text for backup-cleanup
    [#147747515]

Invoking unlock and then cleanup for the clean up command
[#147747515]

Bumping the timeout of the director integration test

Adding a new verb 'CleanupPrevious' on the instance

  • to remove existing backup folders
  • implemented cleanup previous for director and deployment
    [#147747515]

Unfocus test

Removing dead code
[#147747515]

Fix race condition around trapSigint

Add director cleanup command
[#147747515]

Fix cleanup unit test
[#147747515]

Add cleanup command
[#147747515]

Add make step to run deployment systests locally
[#147747515]

wip

Fix shell escaping (again)
%q was a nice idea but also escapes whitespace, which makes its way
into the command to be executed. We're using single quotes, and en-
suring that the interpolated command contains only double quotes.
[#147747515]

Fix MustHaveEnv()

Fix SSH key permissions on remote
Running bbr director restore with vcap user caused an SSH permission
error.
[#147747515]

Run director systests when running systests locally

Correctly escape quotes when running command on remote

Use variables instead of functions for deployments

Extract the Instance type

Refactor the system test helpers by extracting the Deployment type

Fix deployment pre-backup-check system test

Add pre-backup-check test for deployments

When SIGINT received, stop outputting logs
print stored logs if the user answers "no" to cancel bbr
[#147521447]

Add PausableWriter package
[#147521447]

Ask whether or not to cancel backup on SIGINT
[#147521447]