Skip to content

Ansible role that restores a Bareos Backup onto a given server and file path.

Notifications You must be signed in to change notification settings

stancel/restore-bareos-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ansible role that restores a Bareos Backup onto a given server and file path.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages