Code Monkey home page Code Monkey logo

restore-bareos-backup's Introduction

restore-bareos-backup

Ansible role that restores a Bareos Backup that exists on your server and restores it to a given server and file path.

These links may help finish out adding the proper tasks to this role:

Requirements

Bareos Backup Server that holds the backups you want to restore.

Role Variables

(Required) The name of the client listed inside Bareos Server that you want to restore

	restore_bareos_backup_bareos_client_to_restore: "name of Bareos client"

(Required) The Bareos client name of the server where you want to restore this backup to.

	restore_bareos_backup_destination_client: "name of Bareos destination client"

(Required) The name of the Bareos Fileset to restore

	restore_bareos_backup_fileset: "{{ restore_bareos_backup_bareos_client_to_restore }}-FileSet"

(Optional) Bareos Server Job ID to restore. If filled in this will only restore files from that Job ID.

	restore_bareos_backup_jobid: 3

(Optional) Restores all backed up files from before a certain date.

	restore_bareos_backup_date_before: "2018-10-02 00:00:00"

(Default) The absolute file path where the backup files should be restored to. This is the default.

	restore_bareos_backup_restore_file_path_on_client: "/tmp/bareos-restores"

(Default) Bareos Server option to replace the existing files when restoring. This is the default.

	restore_bareos_backup_replace_files_on_client: "never"

(Default) Maximum time (in seconds) to wait for the Bareos restore job to complete. This is the default.

	restore_bareos_backup_wait_job_timeout: 900

Dependencies

None

Example Playbook

	- hosts: your_bareos_server
	  vars_files:
	    - vars/main.yml
	  roles:
	    - stancel.restore-bareos-backup

or

	- hosts: your_bareos_server
	  vars:
		restore_bareos_backup_bareos_client_to_restore: "bareos-name-of-server-where-backed-up"
		restore_bareos_backup_destination_client: "bareos-name-of-my-new-server"
		restore_bareos_backup_fileset: "{{ restore_bareos_backup_bareos_client_to_restore }}-FileSet"
	  roles:
	    - stancel.restore-bareos-backup

License

Proprietary for now

Author Information

Brad Stancel

restore-bareos-backup's People

Contributors

stancel avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kernt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.