b0b192ab77
dsnap-sync: adapt src_uuid to respect target mountpoint
2018-07-17 01:03:16 +02:00
6c8f72dd1a
dsnap-sync: cleanup snapper_target_config name
2018-07-17 01:03:16 +02:00
df8422fa93
dsnap-sync: cosmetic changes
2018-07-17 01:03:16 +02:00
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
bcbe5e1cd9
dsnap-sync: rebase to an FHS structure
2018-07-17 01:03:15 +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
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
3f3c38d9df
snap-sync: Copyright update
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2017-11-22 21:59:19 +01:00
09d5f419a5
snap-sync: run_config() allow refine of backupdir
...
- in interactive mode: ask user to change/keep given backupdir
- introduce get_config()
get value from key/value pair in targets snapper config file
- introduce set_config()
update key/value pair in targets snapper config file
- use BTRFS_PIPE to redirect btrfs messages. Rely on retrun status
anything >0 signals a pipe error!
2017-11-22 21:59:19 +01:00
cae12a7bcb
snap-sync: get_answer_yes_no update, batch/interactive option
...
- rework get_answer_yes_no() with preselection value
- update parse_params to use --interactive and --batch option
keep --noconfirm for history
2017-11-22 21:59:19 +01:00
c6de0dec80
snap-sync: introduce cleanup() function
...
- for trapkill: call cleanup function
- remove temp-dirs
2017-11-22 21:59:19 +01:00
eac70fc001
snap-sync: parse_params update, reduce log-entry verbosity
2017-11-22 21:59:19 +01:00
9002e502c4
snap-sync: apply snapper description variables
...
- destinguish three states (running, synced, finished)
- adapt handling where needed
2017-11-22 21:59:19 +01:00
e3d052dc09
snap-sync: cleanup snap_sync_options, snapper call (long option name)
2017-11-22 21:59:19 +01:00
ec4723d65d
snap-sync: btrfs-send/btrfs-receive pipe handling
...
- snapper is using hardcoded subvolume name to store its ro snapshots
variable snapper_snapshots holds it (.snapshots)
- new optional progress visualiation (via pv)
- more robust error handling
rely on btrfs-send/btrfs-receive exit code
2017-11-22 21:59:19 +01:00
62a33aa88b
snap-sync: replace 'basename' with shell inline function
2017-11-22 21:59:19 +01:00
0593b2cfb5
snap-sync: new function run_finalize()
...
- new function run_finalize
- tagg already synced source snapshots (description and cleanup algorithem)
2017-11-22 21:59:19 +01:00
fea12084f9
snap-sync: cleanup target snapper structure handling
...
- verify_snapper_structure: better variable parsing
- handle situation of deleted snapper target structure
- lineup variable names
- ensure proper sync after snapper calls
- snapper metadata updates
- support multiple config option parameter
- update dry-run processing
- refuse to backup a snapshot to the target,
if new source snap-id already exists on target subvolume
- cleanup permission settings for backupdir
2017-11-22 21:59:19 +01:00
50680410bb
snap-sync: refine target_config, target_snapshot
...
- cleanup variable usage
target_config -> target_subvol
target_snapshot -> target_snapshots
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2017-11-22 21:59:18 +01:00
b8ed1bc2cc
snap-sync: cleanup presented disk infos in selection dialog
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2017-11-22 21:59:18 +01:00
a97ff0668c
snap-sync: new get_answer_yes_no(), check_snapper_failed_ids
...
- function get_answer_yes_no(): dialog requesting user feedback
- function check_snapper_failed_ids(): call cleanup as needed
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2017-11-22 21:59:18 +01:00
cd60b4d022
snap-sync: new cmdline-option 'backupdir'
...
- predefine a backupdir. This path is relative to the backup_root.
It will be created as a subdirectory on target disk if necessary.
- parse_params(): accept lowercase option --target, --uuid
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2017-11-22 21:59:18 +01:00
c36d92159e
snap-sync: trap handling, use prinf, snapper description handling
...
- substitute 'echo' calls with 'printf' calls where appropriate
- prepend $progname in notify messages
- trap handling in posix form
- update snapper description on successfull backup
- usage update: introduce subvolid
- usage update: introduce -t, --target
2017-11-22 21:59:18 +01: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
f99b720a21
snap-sync: support selection of SUBVOLID
...
- either use --subvolid 'id' or --SUBVOLID 'id'
- or --subvolid='id' or --SUBVOLID='id'
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2017-11-22 21:59:18 +01:00
3033822423
snap-sync: reflact subvolid for processed snapshot backup
...
- snapper_sync_id should take into account the selected_subvolid
in combination with the selected_uuid
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2017-11-22 21:59:18 +01:00
024cfc4392
snap-sync: 0.4.4 version bump
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2017-11-22 21:59:18 +01:00