Skip to content

savoirfairelinux/ansible-zbackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zbackup

Provisions a local backup storage folder powered by zBackup.

Other than automatically creating the zbackup repo, it also manages timestamps for dumps. So, each repo is accompanied by easy to use dump and getlatest scripts.

We don't manage the propagation of these backups to other servers. Other roles have to take care of that.

Requirements

  • Ansible 2.3+
  • One of these target systems:
    • Debian jessie
    • Ubuntu 14.04
    • Ubuntu 16.04

Usage

Here's an example usage:

zbackup_storage_path: /opt/myproject/backups
zbackup_owner: myproject_user

Once the system is provisioned, dump your tar directly in your backup's dump command with:

cat mybackup.tar | '/opt/myproject/backups/dump'

Important note: it needs to be a tar-NOT-gzipped file. Don't feed it something else.

Then, you can get back your latest dump with:

'/opt/myproject/backups/getlatest' > mybackup.tar

Or, you can get a gzipped version of the dump with:

'/opt/myproject/backups/getlatest -z' > mybackup.tar.gz

About

Provisions a local backup storage folder powered by zbackup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages