s3-mysql-backup 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/s3-mysql-backup +4 -8
- metadata +1 -1
data/bin/s3-mysql-backup
CHANGED
@@ -14,20 +14,16 @@ end
|
|
14
14
|
|
15
15
|
def usage
|
16
16
|
puts <<-END
|
17
|
-
Usage: s3-mysql-backup
|
18
|
-
Options:
|
19
|
-
-h, --help This help screen
|
20
|
-
-d, --database The database name to back up
|
17
|
+
Usage: s3-mysql-backup DATABASE CONFIG_FILE
|
21
18
|
|
22
19
|
END
|
23
20
|
exit 1
|
24
21
|
end
|
25
22
|
|
26
23
|
def process_options
|
27
|
-
usage
|
28
|
-
$DATABASE
|
29
|
-
|
30
|
-
$CONFIG_FILE_NAME = File.expand_path(ARGV.first)
|
24
|
+
usage unless ARGV.size == 2
|
25
|
+
$DATABASE = ARGV.first
|
26
|
+
$CONFIG_FILE_NAME = File.expand_path(ARGV.last)
|
31
27
|
end
|
32
28
|
|
33
29
|
def main
|