-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUSAGE
57 lines (46 loc) · 2.12 KB
/
USAGE
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
hashstor <command> [options]
Commands :
Usage: hashstor.py [options] <command> [command options]
Parse file and create a HashStor storage point, commands are :
- init : Initialize storage point
- storages <command> : Manipulate storage names
- storages list : List all storage names
- storages delete <storage name> : Delete storage names
- update [files or directories] : Update with files, default with all at current directory
- compare [files or directories] : Compare with files, default with all at current directory
- diff <storage name> : Compare selected storage name with current storage name
- list [internal path] : List files in the storage point
- extract <destination directory> [internal file name] : Extract file, default all files
- delete [internal file name] : Delete file, default entire storage name
- check : Check integrity
Options:
-h, --help show this help message and exit
-d HASHSTOR, --hashstor=HASHSTOR
HashStor storage point, default .hashstor in current
directory
-c DIRECTORY, --directory=DIRECTORY
Use this directory for base path on file update
-s STORAGE, --storage=STORAGE
HashStor storage name, default name is 'default'
-v, --debug Show debug information
Examples :
In the current directory, initialize hashstor storage point and add all files :
# hashstor.py init
When files has changed, add the changes to a new storage name :
# hashstor.py -s myfirstrevision update
List files from the init :
# hashstor.py list
List files from the first change :
# hashstor.py -s myfirstrevision list
Remove init revision :
# hashstor.py delete
or
# hashstor.py storages delete default
The first change should stay :
# hashstor.py storages list
Extract the first change to a temp directory :
# hashstor.py -s myfirstrevision extract /tmp/myfirstrevision
Check to storage integrity :
# hashstor.py check
Add files from the storage point directory from another path :
# hashstor.py -c /path/to/storage/path -s myfirstrevision update file/in/the/storage/path