-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathREADME
More file actions
81 lines (65 loc) · 2.1 KB
/
Copy pathREADME
File metadata and controls
81 lines (65 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
======================================================================
SwiftBash: bash interface to OpenStack Swift
======================================================================
DESCRIPTION
===========
SwiftBash is a bash functions library which provides access to Clodo
Cloud Storage (http://www.clodo.ru/cloud-storage/review/) and any
other OpenStack Swift (http://swift.openstack.org/) compatible
storage, like Rackspace Cloud Files.
This library is not intended to be the full API implementation but a
set of handy functions for everyday use in scripts.
REQUIREMENTS
============
curl (tested on 7.21.0)
mktemp (any)
bash (tested on 4.1)
grep
sed
cut
Operating Systems
=================
Should work on any unix-like OS with tools listed in requirements.
I use it on Debian GNU/Linux stable (6.0) and testing distributions.
INSTALL
=======
Just put it where you can source it from later.
USAGE
======
Helper scripts:
Both uploader.sh and deleter.sh require username and secret key to
access the storage in $STORAGE_USER and $STORAGE_KEY variables
respectively. You may create file ~/.swiftbash.sh and declare them
there like this:
realloc@motoko:~/projects/SwiftBash$ cat ~/.swiftbash.sh
STORAGE_USER='storage_6681_1'
STORAGE_KEY='62027a8e6n29ft3b00d586fb7865f22b'
Make sure access permissions on that file meet your security needs.
Helper scripts will source that file and use provided credentials to
access your cloud storage.
Run test.sh to make sure that everything works.
realloc@motoko:~/projects/clodo/SwiftBash$ ./test.sh 2>test.log
+ AUTH Passed
+ ACC_meta Passed
+ ACC_cont_list Passed
+ CONT_meta Passed
+ CONT_obj_list Passed
+ CONT_create Passed
+ OBJ_put Passed
+ OBJ_get Passed
+ OBJ_delete Passed
+ CONT_delete Passed
The library:
Please read helper scripts ans use them as example.
SUPPORT
=======
This tool is not officially supported by clodo.ru, but we will be
happy to help you as much as possible.
Please report bugs and feature requests in the github issue
tracker:
http://github.com/ClodoCorp/SwiftBash/issues
Author
======
Stanislav Bogatyrev <realloc@realloc.spb.ru>
Contributors
============