Commit Graph

269 Commits

Author SHA1 Message Date
7047775567 dsnap-sync: handle postfix to be appended to config
- snapper config will be created with given postfix
- make postfix a sectable option
2018-07-17 01:03:16 +02:00
d86282b27b dsnap-sync: args parser
- prepare arguments as string for ssh call
2018-07-17 01:03:16 +02:00
b607ae3eba dsnap-sync: introduce coloured output and verbosity level
- handle 'verbose' as integer
- introduce verbosity level selectable with multiple verbose arguments
- introduce color variables
- embed printf strings with color statements
- cleanup output line-up
2018-07-17 01:03:16 +02:00
ce062ea920 dsnap-sync: change notification to use int value 2018-07-17 01:03:16 +02:00
c66b21969d Update Config-Template dsnap-sync
o adapt defaultes for timeline handling
2018-07-17 01:03:15 +02:00
7ffd5bee31 update documentation path 2018-07-17 01:03:15 +02:00
fa24a6a19e .gitignore: ignore debian packaging subdir 2018-07-17 01:03:15 +02:00
bcbe5e1cd9 dsnap-sync: rebase to an FHS structure 2018-07-17 01:03:15 +02:00
b154c7def0 dsnap-sync: verify_snapper_structure() - cleanup
o use generic "stat" for local and ssh calls
2018-07-17 01:03:15 +02:00
b39f4b8b1e dsnap-sync: run_finalize() - cleanup handling of metadata tagging 2018-07-17 01:03:15 +02:00
3e9fefbd91 dsnap-sync: run_backup() - cleanup btrfs send-recieve part
o show actual command call in verbose mode
o use more generic cmd variable
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
36bcc7877e dsnap-sync: make 'pv' output selectable 2018-07-17 01:03:14 +02:00
da2817b380 dsnap-sync: pre-check for working ssh, if remote is given
o user must have a working pubkey auth for remote backups via ssh
o be more precise and state the progname
2018-07-17 01:03:14 +02:00
811f3d43b6 dsnap-sync: search location for snapper config (etc/default/snapper)
o adapt to debian like systems (debian/ubuntu/arch-linux)
2018-07-17 01:03:14 +02:00
828befff42 Makefile: update installation target
o provide systemd example units (.service, .timer)
o include documentation
2018-07-17 01:03:14 +02:00
7040f191bb dsnap-sync: 0.5.3 version bump 2018-07-17 01:03:14 +02:00
3ccf1dbfe1 README.md: Extend the documentation 2018-07-17 01:03:14 +02:00
134d713bfc README.md: Extend the documentation 2018-07-17 01:03:13 +02:00
e34f80484d README.md: Extend the documentation 2018-07-17 01:03:13 +02:00
758fa1a2cf Delete find_snapper_config 2018-07-17 01:03:13 +02:00
0a0345585e Delete Makefile 2018-07-17 01:03:13 +02:00
5591e2c47a Delete snap-sync.bash 2018-07-17 01:03:13 +02:00
603685083d Delete dsnap-sync 2018-07-17 01:03:13 +02:00
8829266b75 Delete dsnap-sync 2018-07-17 01:03:12 +02:00
0bb776abe3 dsnap-sync: rebase the project tree 2018-07-17 01:03:12 +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
eafa132463 snap-sync: update year in Copyright 2018-07-17 01:03:12 +02:00
Toshifumi NISHINAGA
cf31ec569b Fix duplicated variable $i
Please improve this patch, because this is dirty hack.
2018-03-30 03:59:45 +09:00
Toshifumi NISHINAGA
a00326e28a Fix inappropriate regexp
This regexp replaces not only SNAPPER_CONFIG but also SNAPPER_CONFIG_DIR
to SNAPPER_CONFIG.

> 's@^SNAPPER_CONFIG.*@SNAPPER_CONFIG='$d'@g'

I change this regexp to fix SNAPPER_CONFIG_DIR will become not undefined.
2018-03-30 03:45:45 +09:00
Toshifumi NISHINAGA
492996e562 Fix DESTDIR behavior
We can not install config-templates
other than /etc/snapper/config-templates
in this version.

This patch fix it.
2018-03-30 03:29:42 +09:00
4951623980 snap-sync: 0.5.2.2 bump minor version 2018-02-06 18:16:46 +01:00
68a29f1d5d snap-sync: enhance verify_snapper_structure
- harden testings when creating snapper structure on target
- reorder function get_config
- remove tee to PIPE

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2018-02-06 18:16:35 +01:00
cb836bed8b snap-sync: 0.5.2.1 bump minor version
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2018-01-19 16:38:47 +01:00
2e5d8a2138 snap-sync: improve batch processing
- be precisely if waiting for snapper to include new snapshot in
  structure
- adapt pv command options
2018-01-19 16:38:33 +01:00
22954982cb snap-sync: correct bug in snapper config handling
- exclude sync for given config, if we find multiple instances
  of already synced snapshots

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2018-01-19 16:31:55 +01:00
4824959c2c snap-sync: make graphical notification via DBUS selectable
- introduce new configuration option --nonotify
- DBUS notificaton dialog only in interactive mode
2018-01-19 16:31:41 +01:00
b91b1e0cc0 snap-sync: enable remote syncing to selectable port
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2018-01-19 16:30:44 +01:00
108a9efc1d snap-sync: enable remote syncing to selectable port
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2018-01-19 14:22:25 +01:00
463e91af6a snap-sync: 0.5.2 bump version
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2018-01-17 18:33:36 +01:00
15fecae9b4 snap-sync: improve remote processing
- be more verbose advertising remote host
- require existence of selected snapper config

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2018-01-17 18:27:40 +01:00
655b159673 snap-sync: improved parse_params
- backupdir
- target
- uuid

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2018-01-17 18:25:14 +01:00
bd10895634 snap-sync: itroduce parameter for snap-sync template
- when creating a snapper structure on target system
  use the defined snap-sync template (default search-path /etc/snapper/config-templates)

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2018-01-17 18:22:15 +01:00
36964526f8 snap-sync: improve flag handling (parse_params)
- donotify
- do_pv_cmd

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2018-01-17 18:17:58 +01:00
6f05af8620 snap-sync: bug backupdir 2017-11-29 01:48:48 +01:00
660f3734c6 snap-sync: reflact snapper, call convention update
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2017-11-24 13:58:43 +01:00
ae000058ac snap-sync: improve parse_params()
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
2017-11-24 13:58:43 +01:00
8a57d7807d snap-sync: 0.5.1 bump version 2017-11-22 21:59:20 +01:00
45c53b7969 TODO.md: update task list 2017-11-22 21:59:20 +01:00
3586d800ec README.md: update documentation to compley with version 0.5.1 2017-11-22 21:59:19 +01:00