cf2de4d984
dsnap-sync: align calulation for size in GiB
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:58 +02:00
afb7702391
dsnap-sync: btrfs send/receive
...
* asure we have matching source and target subvol id's
if we want to send only the differences
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:58 +02:00
adef351e9d
dsnap-sync: refine eval calls
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:58 +02:00
36a0c57971
dsnap-sync: make btrfs_quota usage an option
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:58 +02:00
293dfba348
dsnap-sync: 0.5.8 version bump
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:58 +02:00
37264eb4f5
dsnap-sync: inculde btrfs quota check
...
* get size of snapshot from 'btrfs qgroup show' function
* precise size information needs sync, which can take a while
but is far cheeper then du --sum on big subvolume
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:58 +02:00
c4244cb34d
dsnap-sync: be more precise on completion message
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:58 +02:00
831544f86d
dsnap-sync: btrfs send/recieve pipe update
...
* always use btrfs with '-p flag' for sending incremental streams
Andrei: https://www.spinics.net/lists/linux-btrfs/msg69369.html
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:58 +02:00
a8b609ce94
dsnap-sync: correct lookup for common sync_id
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:58 +02:00
a433ee1a9b
dsnap-sync: verbosity level update
...
- v1: Basic messages (main function calls)
- v2: Notice messages (feedback from main functions)
- v3: Informaional messages (feedback from helper functions)
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:57 +02:00
3403ddc235
dsnap-sync: update pv handling
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:57 +02:00
75c4f8c5bb
dsnap-sync: function updates
...
* verify_structure() stat function evaluation cleanup
* get_disk_info() cmd alingnment
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:57 +02:00
7e6ec2a997
dsnap-sync: cleanup global variable assignment
...
* declare defaults
* assign integer values
* evaluate command
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:57 +02:00
b910ca6086
dsnap-sync: update btrfs type handling
...
* adapt dry-run output
* differenciate handling for btrfs-snapshot, btrfs-clone and btrfs-archive
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:57 +02:00
9b39792fb9
dsnap-sync: automounter handling update
...
- use systemd unit and stat the file-system
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:57 +02:00
9c2c9c6194
dsnap-sync: code identation update
...
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de >
2018-09-21 15:53:57 +02:00
f461599b2e
dsnap-sync: 0.5.7 version bump
2018-07-17 01:03:19 +02:00
43cb219fb7
dsnap-sync: introduce support for automounter
...
- add parameter to set automounter-path
- handle start of systemd-unit on target
2018-07-17 01:03:19 +02:00
752cc32bfc
dsnap-sync: structure update
...
- introduce verbosity level
- introduce colorized output for messages
- introduce snapper config types
(btrfs-snaphot, btrfs-clone, btrfs-archive)
- order functions lexical ascending
- modify handling of failed snapshots
- get_snapper_config_value() - parse config-values from snapper-configs
- get_snapper_last_sync_id() - parse snapper config for last snapshots
handle backups and last sync's
- quote_args() - prepare for ssh call
- get_backupdir() - parse out backupdir handling
- verify_backupdir() - parse given backupdir
- get_snapper_config_type() - parse the config type
- verify_archive_structure() - parsing btrfs-archive backups
- verify_snapper_structure() - parsing btrfs-clone and btrfs-snapshot
- destinction between snapper_source_sync_snapshots and
snapper_target_sync_snapshots
- destinction between snapper_source_sync_id and
snapper_target_sync_id
- destinction between snapper_source_id and
snapper_target_id
- adapt pv options
2018-07-17 01:03:18 +02:00
3b43db5328
dsnap-sync: correct btrfs handling if subvolumes is in a subdir
2018-07-17 01:03:18 +02:00
e1bbe55784
dsnap-sync: coding cleanup
2018-07-17 01:03:18 +02:00
5a446e2d11
dsnap-sync: refine snapper template handling
2018-07-17 01:03:18 +02:00
777aef5f8a
dsnap-sync: 0.5.5 version bump
2018-07-17 01:03:17 +02:00
c23124e7f5
dsnap-sync: function updates
...
o run_backup: update printf parameters
o run_finalize: verbosity handling, update tagging
o verify_snapper_structure: updatecommenting, update command calls
2018-07-17 01:03:17 +02:00
2c3c6f1f59
dsnap-sync: pv option no using splice
2018-07-17 01:03:17 +02:00
ae3401135b
dsnap-sync: command line-up
2018-07-17 01:03:17 +02:00
675fc77d64
dsnap-sync: cleanup run_finalize()
...
- structure source and target tagging
- hack to force update of snapper subvol listing
2018-07-17 01:03:17 +02:00
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