lnbackup 2.2 → 2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,7 @@
1
1
  #!/bin/bash
2
2
 
3
+ LNBACKUP=/usr/bin/lnbackup
4
+
3
5
  if [ "$1" == "--help" ]; then
4
6
  echo "usage: $0 [--rw] [lnbackup arguments]"
5
7
  echo
@@ -9,8 +11,7 @@ fi
9
11
 
10
12
  if [ "$1" == "--rw" -o "$1" == "--mountrw" ]; then
11
13
  shift
12
- /usr/sbin/lnbackup --mountrw --log-file - "$@"
14
+ $LNBACKUP --mountrw --log-file - "$@"
13
15
  else
14
- /usr/sbin/lnbackup --mount --log-file - "$@"
16
+ $LNBACKUP --mount --log-file - "$@"
15
17
  fi
16
-
data/bin/lnbackup-stat ADDED
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ LNBACKUP=/usr/bin/lnbackup
4
+ $LNBACKUP --status --log-file - "$@"
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+
3
+ LNBACKUP=/usr/bin/lnbackup
4
+ $LNBACKUP --umount --log-file - "$@"
5
+
data/bin/pc_backup CHANGED
@@ -17,7 +17,6 @@ if [ -z "$1" ]; then
17
17
  mkdir -p $MOUNTS_ROOT/$HOST
18
18
  echo -n "trying $HOST ... "
19
19
 
20
- #echo mount -t smb -o username=$BACKUP_USER,password=$BACKUP_PASSWORD,workgroup=$BACKUP_WORKGROUP //$HOST/$BACKUP_SHARE $MOUNTS_ROOT/$HOST
21
20
  if mount -t smb -o username=$BACKUP_USER,password=$BACKUP_PASSWORD,workgroup=$BACKUP_WORKGROUP //$HOST/$BACKUP_SHARE $MOUNTS_ROOT/$HOST >/dev/null 2>&1 &&
22
21
  ls /mnt/pc_backups/$HOST >/dev/null 2>&1; then
23
22
 
@@ -34,19 +33,6 @@ if [ -z "$1" ]; then
34
33
  umount $MOUNTS_ROOT/$HOST >/dev/null 2>&1
35
34
  done
36
35
  else
37
- # echo "running in TEST mode"
38
- #
39
- # for HOST in $BACKUP_HOSTS; do
40
- # echo -n "trying $HOST ... "
41
- # if mount -t smb -o username=backup,password=luroj3op,workgroup=is //$HOST/is /mnt/pc_backups/$HOST >/dev/null 2>&1 &&
42
- # ls /mnt/pc_backups/$HOST >/dev/null 2>&1; then
43
- # echo "passed"
44
- # else
45
- # echo "failed"
46
- # fi
47
- # umount /mnt/pc_backups/$HOST >/dev/null 2>&1
48
- # done
49
- #fi
50
36
  echo "running in TEST mode"
51
37
 
52
38
  for HOST in $BACKUP_HOSTS; do
@@ -63,4 +49,3 @@ fi
63
49
 
64
50
  echo -n 'finished at '
65
51
  date
66
-
@@ -1,3 +1,3 @@
1
1
  module LnBackup
2
- VERSION=2.2
2
+ VERSION=2.3
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lnbackup
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.2'
4
+ version: '2.3'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-08 00:00:00.000000000 Z
12
+ date: 2012-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sys-filesystem
@@ -27,15 +27,37 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: acl
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
30
46
  description: ! "\nLnbackup is a hardlink backup system for hard drives. \n\nLnbackup
31
47
  operates in a way similar to the '--link-dest' switch in rsync.\n\nIt creates incremental
32
- backups using hardlinks so that each backup seems like a full backup. Additionaly
33
- it can make (using hardlinks) bootable mirror from the latest backup.\n\nObviously
48
+ backups using hardlinks so that each backup seems like a\nfull backup. Additionaly
49
+ it can make (using hardlinks) bootable mirror from the\nlatest backup.\n\nObviously
34
50
  the target filesystem of lnbackup needs to support hardlinks.\n\nIt's run on ~200
35
51
  servers for several years and it is considered stable.\n\nRead the man page for
36
52
  more information."
37
53
  email: martin.povolny@gmail.com
38
- executables: []
54
+ executables:
55
+ - lnbackup-stat
56
+ - lnbackup
57
+ - lnbackup-umount
58
+ - lnbackup-mount
59
+ - pc_backup
60
+ - sql_backup.sh
39
61
  extensions: []
40
62
  extra_rdoc_files: []
41
63
  files:
@@ -44,10 +66,10 @@ files:
44
66
  - lib/lnbackup/freespace.rb
45
67
  - lib/lnbackup/backup.rb
46
68
  - lib/lnbackup/util.rb
69
+ - bin/lnbackup-stat
47
70
  - bin/lnbackup
48
- - bin/lnumount
49
- - bin/lnmount
50
- - bin/lnstat
71
+ - bin/lnbackup-umount
72
+ - bin/lnbackup-mount
51
73
  - bin/pc_backup
52
74
  - bin/sql_backup.sh
53
75
  homepage: https://github.com/martinpovolny/lnbackup
data/bin/lnstat DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/bash
2
-
3
- /usr/sbin/lnbackup --status --log-file - "$@"
4
-
data/bin/lnumount DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/bash
2
-
3
- /usr/sbin/lnbackup --umount --log-file - "$@"
4
-