You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an utility to do various operation on docker volumes.
3
+
This is an utility to do various file based operations on a persistent volume. The toolkit is designed to work with the persistent volume mounted at `/data`.
|`ls`|`--path <path>`| List files in the specified directory. |
22
+
|`cat`|`--path <path>`| Display the contents of the specified file. |
23
+
|`cp`|`--path <src>``<dest>`| Copy a file from source to destination. |
24
+
|`mv`|`--path <src>``<dest>`| Move a file from source to destination. |
25
+
|`rm`|`--path <path>`| Remove the specified file or directory. |
26
+
|`mkdir`|`--path <path>`| Create a directory at the specified path. |
27
+
|`chmod`|`--path <path>``<mode>`| Change the permissions of the specified file. |
28
+
|`chown`|`--path <path>``--uid <uid>``--gid <gid>`| Change the ownership of the specified file. |
29
+
|`download`|`--path <dest>``<url>`| Download a file from a URL to the specified path. |
30
+
31
+
**Note :**`cat` command will stream the binary data of the file to stdout.
13
32
14
33
### Output format
15
34
@@ -21,8 +40,24 @@ This is an utility to do various operation on docker volumes.
21
40
}
22
41
```
23
42
24
-
####Notes
43
+
### Notes
25
44
26
45
-`/data` > This is the mounting point for the persistent volume
27
46
-`/app` > This is the mounting point for the toolkit. After export volume, the `backup.tar.gz` file will be created in this directory. And for import volume, the `backup.tar.gz` file should be placed in this directory.
28
47
- All the sizes will be in bytes format.
48
+
- File Metadata
49
+
```json
50
+
{
51
+
"name": "100MB.bin",
52
+
"size": 104857600,
53
+
"mode": "777",
54
+
"mod_time": "2020-05-20T11:14:26Z",
55
+
"uid": 999,
56
+
"gid": 999,
57
+
"is_dir": false
58
+
}
59
+
```
60
+
61
+
### License
62
+
63
+
This project is licensed under Apache 2.0 License - see the LICENSE file for details.
0 commit comments