Commit Graph

9 Commits

Author SHA1 Message Date
86b3873651 tape-admin: extended functionality
* check_prerequisites(): test for needed helper programs
* get_mediapool_names(): introduce new function
* get-lastwrite(): introduce new function
* get_poolmember_next(): handle selection of next tape
* mount(): handle ltfs and mtx calls in a correct order
* mount_tape(): check that mounted tape is member of selected mediapool
* ltfs_label(): use mkltfs to format and partitionin a given tape
* update_lastwrite()
* update_retensiondate()
* date_iso_to_seconds(): parse and format date-string
* date_seconds_to_iso(): parse and format date-string
* date_string_to_iso(): parse and format date-string
* typo cleanups
* update sample MediaPools.json file

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2018-09-21 15:53:58 +02:00
ec121aecd1 type_admin: introduce media-changer / tape admin wrapper
- tape_admin: helper script to handle common tape handling routines
- mtx: is used for media-changer functions
- json: define media-pools, corresponding volume-names and attributes

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2018-09-21 15:53:58 +02:00
73b28575ef dsnap-sync template: changes to support CONFIG_TYPE 2018-07-17 01:03:19 +02:00
a7b4a998ee dsnap-sync template: snapper options for derived dsnap-sync configs
- adapt to rely on systemd units
- enable timeline cleanups, since snapshots are marked to support
  this algorithm
- typo correction for SNAP_SYNC_EXCLUDE
2018-07-17 01:03:18 +02:00
c66b21969d Update Config-Template dsnap-sync
o adapt defaultes for timeline handling
2018-07-17 01:03:15 +02:00
d93a11ab70 dsnap-sync: introduce snapper config-types and config-postix
o snapper config-types
  enhance snapper config template which new fields
  CHILD_CONFIG=<true | false>  default: missing -> means false
  PARENT_CONFIG=<parent config name>
o Use the types for distinctable snapshot runs:
  disk2disk (1st stage snapshots  CHILD_CONFIG='false' or missing
  cloning   (2st stage snapshots  CHILD_CONFIG='true' or missing
o snapper config postfix
  to overcome snapper config name clashes, enable dsnap-sync with
  selectable postfix (default: .<hostname>)
  cloning a "home" config to remote host will not interfere with
  a "home" d2d-config on this remote host
o update the snapper template dsnap-sync
2018-07-17 01:03:14 +02:00
603685083d Delete dsnap-sync 2018-07-17 01:03:13 +02:00
96b71f0094 dsnap-sync: rename project and introduce the fork
o distict the dash version from original work of Wes Barnett
o circumvit any name clashes
2018-07-17 01:03:12 +02:00
fe15397f33 snap-sync: enable snapper to admin snap-sync backups on target
- create and verify snapper compatible structure on target host
- create snapper config (snap-$selected_config) on target host
  if not already available. use a snap-sync template.
- change userdata for snapper listings on target config
  subvolid, uuid and hostname reflact the values from the source system
- introduce a snapper template (/etc/snapper/config-templates/snap-sync)
- adapt Makefile to support an initial snap-sync template
  per default, this templates excludes snap-sync backup configs
  from timeline and cleanup tasks

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2017-11-22 21:59:18 +01:00