Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adfinis/backupctl
Tool to manage zfs volumes and create new dirvish vault configurations.
https://github.com/adfinis/backupctl
backup backup-utility cli dirvish zfs
Last synced: 9 days ago
JSON representation
Tool to manage zfs volumes and create new dirvish vault configurations.
- Host: GitHub
- URL: https://github.com/adfinis/backupctl
- Owner: adfinis
- License: gpl-3.0
- Created: 2018-04-13T13:32:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-28T11:10:56.000Z (almost 3 years ago)
- Last Synced: 2024-11-08T19:46:50.494Z (2 months ago)
- Topics: backup, backup-utility, cli, dirvish, zfs
- Language: Python
- Size: 151 KB
- Stars: 2
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: COPYING
Awesome Lists containing this project
README
===========
backupctl
===========Manage dirvish backups with an underlying zfs storage pool.
SYNOPSIS
=========``backupctl COMMAND [OPTIONS]``
``backupctl log``
``backupctl [--help]``
DESCRIPTION
============
Tool to manage zfs volumes and create new dirvish vault configurations. This
tool depends on a already present zfs pool, normally called backup.
This tool (which is pronounced "backup cuddle") should be run with root
privileges, if not possible, at least zfs fuse access as user is needed
(to create new or remove existing zfs datasets and set quotas).
This is more tricky and may not be tested as well as zfs with the kernel
module.COMMANDS
=========
All subcommands that modify zfs volumes and dirvish configurations.new -n customer [-v server/vault] [-s size]
--------------------------------------------
Create a new customer zfs volume or a new dirvish vault inside a customer.resize -n customer [-v server/vault] -s size
---------------------------------------------
Resize an existing customer zfs volume or dirvish vault inside a customer.
Shrinking is supported too. To unset a quota, set the size to "none".remove -n customer [-v server/vault]
-------------------------------------
Remove an existing customer zfs volume or dirvish vault inside a customer.
If removing a customer, all dirvish vaults inside this customer will be removed
too.log
----
Show the history of generating, resizing and removing customers and servers.OPTIONS
========-v, --vault Specify the hostname of the dirvish vault name.
--dirvish-client Specify a client ip or fqdn to back up. Needed if
different from option client.
-h, --help Show this help message and exit.
-n, --name Customer name. Used as a logical group of dirvish
vaults.
-s, --size Quota of a customer or a server. Size can be written
human readable as MB, GB and so on.EXAMPLES
=========CUSTOMER MANAGEMENT
--------------------Create a new customer with a quota of 10G.
backupctl new -n customer1 -s 10G
Resize the quota of an existing customer to 20G.
backupctl resize -n customer1 -s 20G
Remove a customer with all his servers. All data will be lost.
backupctl remove -n customer1
SERVER MANAGEMENT
------------------Create a new server/vault www.example.com for customer1 with no special quota
(it will inherit the quota of the customer).backupctl new -n customer1 -v www.example.com
Create a new server/vault www.example.com for customer1 with a quota of 10G.
Data inside this server will also count on the customer level).backupctl new -n customer1 -v www.example.com -s 10G
Create a new server/vault www.example.com which isn't directly accessible, so a
special dirvish client is needed, in this case the server is reachable with the
ip address 192.0.2.100.backupctl new -n customer1 -v www.example.com -s 10G --dirvish-client 192.0.2.100
Resize the quota of the server/vault www.example.com of customer1 to the size
of 20G.backupctl resize -n customer1 -v www.example.com -s 20G
Remove the server/vault www.example.com of customer1, this will delete all the
backups and also the dirvish configuration for this server.backupctl remove -n customer1 -v www.example.com
EXIT STATUS
============
The following exit values are returned:0
Successful completion.1
An error occurred.2
No command or an invalid command was given.FILES
======/etc/backupctl.ini
System-wide configuration file.$XDG_CONFIG_HOME/backupctl.ini
User specific configuration file. Will overwrite the configuration options of
the system-wide configuration file.$PWD/backupctl.ini
Local configuration file. Will overwrite the configuration options of any
previous configuration file./var/lib/backupctl/backupctl.db
backupctl history database. This is an sqlite3 database.SEE ALSO
=========* `backupctl(8)`_, backupctl man page
* `backupctl.ini(5)`_, backupctl configuration fileDEVELOPMENT
=========We use git pre-commit hooks to ease up some best practices.
To install the pre-commit hooks into the git repository, execute ``pre-commit install``Copyright
==========
Copyright 2018 Adfinis SyGroup AG License GPLv3+:
GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law... _backupctl(8): backupctl.8.rst
.. _backupctl.ini(5): backupctl.ini.5.rst.. vim: set et ts=2 sw=2 :