snapsync 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc752dde39434a87bfc9d28ecc91a4339a7e7640b12256b8a514f84e96ffd136
4
- data.tar.gz: ae46adaef896ec66a63f80a35974d0132972e6800929e36d087e9405c200816c
3
+ metadata.gz: 4e8460c2d2ec6ca78697933413dd8d94ac0296c5fa6260b347142c2f4e63941b
4
+ data.tar.gz: 8803931f41de5e109d0008a899426c50501df212d5bf11091e1ece40aa643471
5
5
  SHA512:
6
- metadata.gz: 4183ec333bff9a9fdde41249de9e09667cfb28b6392016560887dcfecb1c81393e7d7f04543a1b8cdc7aaffd9f8d8f68f60a297674cf5965f7eccba07ac5c870
7
- data.tar.gz: f2b341a3c674eb20444494e414fd6c231c960a5692fd686e3a14075387361184311428ef0075811f12ba73f6607b456f630c6b51db7cfd9197d4f6d495f2d710
6
+ metadata.gz: 94a27af03869d1b9dea48a8b0840db2e67fb65644faa41045d042ab220221ec685d3c79d57c4fe99a6a919e6f7d4ec478af8dc65b5230bdabecd33b9abb94dfc
7
+ data.tar.gz: 2b1417846f0e16afe8b1780ffc1e0ef163705084ac126b870d6cdcca27e3f5a75d33f9a9e5b2f938b9e89871fdc3f67e018b045c26b6c6468a4e62a96dcf0ecb
data/README.md CHANGED
@@ -91,8 +91,7 @@ properly. Use e.g. `--all=f` instead of `--no-all`
91
91
  ## Future development
92
92
 
93
93
  The main two functionalities that I plan to add to snapsync are having a
94
- per-session service that provides notifications of what snapsync is doing, and
95
- remote backup (through e.g. SSH)
94
+ per-session service that provides notifications of what snapsync is doing.
96
95
 
97
96
  ## Development
98
97
 
@@ -39,7 +39,7 @@ module Snapsync
39
39
  channel.on_data do |ch, data|
40
40
  read_buffer_in.write(data)
41
41
  end
42
- channel.on_extended_data do |ch, data|
42
+ channel.on_extended_data do |ch, type, data|
43
43
  data = data.chomp
44
44
  if data.length > 0
45
45
  Snapsync.error data
data/lib/snapsync/sync.rb CHANGED
@@ -52,12 +52,6 @@ module Snapsync
52
52
  end
53
53
 
54
54
  path.rmtree
55
- Snapsync.info "Flushing data to disk"
56
- begin
57
- btrfs_target.run("subvolume", "sync", path.path_part)
58
- rescue Btrfs::Error
59
- # Ignored
60
- end
61
55
  end
62
56
  end
63
57
 
@@ -188,12 +188,6 @@ module Snapsync
188
188
  return
189
189
  end
190
190
 
191
- Snapsync.info "Flushing data to disk"
192
- begin
193
- btrfs.run("subvolume", "sync", self.dir.to_s)
194
- rescue Btrfs::Error
195
- end
196
-
197
191
  s.snapshot_dir.rmtree
198
192
  end
199
193
  end
@@ -1,3 +1,3 @@
1
1
  module Snapsync
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
data/snapsync.service CHANGED
@@ -4,7 +4,7 @@ Wants=udisks2.service
4
4
 
5
5
  [Service]
6
6
  Type=simple
7
- ExecStart=/usr/bin/snapsync auto-sync --one-shot
7
+ ExecStart=/usr/bin/env HOME=/root /usr/bin/snapsync auto-sync --one-shot
8
8
  Nice=19
9
9
  IOSchedulingClass=idle
10
10
  KillSignal=SIGINT
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux