Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docker_management [2020/01/10 11:08] – andonovj | docker_management [2020/01/10 19:24] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 90: | Line 90: | ||
> | > | ||
+ | </ | ||
+ | |||
+ | |||
+ | Export of the database, as said again, is done with the standard utils: | ||
+ | <sxh bash> | ||
+ | root@8385665052a3:/# | ||
+ | 2020-01-10T10: | ||
+ | 2020-01-10T10: | ||
+ | root@8385665052a3:/# | ||
+ | </ | ||
+ | |||
+ | And then we can copy it to the main machine: | ||
+ | |||
+ | <sxh bash> | ||
+ | root@8385665052a3:/# | ||
+ | [root@tpb-mts-stdkr1 ~]# | ||
+ | [root@tpb-mts-stdkr1 ~]# | ||
+ | [root@tpb-mts-stdkr1 ~]# docker cp 8385665052a3: | ||
+ | [root@tpb-mts-stdkr1 ~]# ls -lart | ||
+ | total 784672 | ||
+ | -rw-r--r--. | ||
+ | -rw-r--r--. | ||
+ | -rw-r--r--. | ||
+ | -rw-r--r--. | ||
+ | drwxr-----. | ||
+ | drwx------. | ||
+ | drwx------. | ||
+ | -rw-r--r--. | ||
+ | -rw-r--r--. | ||
+ | -rw-r--r--. | ||
+ | dr-xr-xr-x. 18 root root 239 Jun 19 2019 .. | ||
+ | drwxr-xr-x. | ||
+ | drw-r--r--. | ||
+ | drwxr-xr-x. | ||
+ | -rw-r--r--. | ||
+ | drwxr-xr-x. 11 root root 4096 Aug 21 13:25 net.box | ||
+ | -rw-r--r--. | ||
+ | drwxr-xr-x. | ||
+ | drw-r--r--. | ||
+ | drwxr-xr-x. | ||
+ | -rw-r--r--. | ||
+ | -rw-r--r--. | ||
+ | drwx------. | ||
+ | -rw-------. | ||
+ | -rwxr-xr-x. | ||
+ | -rw-r--r--. | ||
+ | </ | ||
+ | |||
+ | |||
+ | We can also perform couple operations like, exchange the BAC -> DT | ||
+ | <sxh bash> | ||
+ | sed ' | ||
+ | </ | ||
+ | |||
+ | We can also remove the _id column as follows: | ||
+ | |||
+ | <sxh bash> | ||
+ | sed -i '/" | ||
+ | </ | ||
+ | |||
+ | And we can take it back: | ||
+ | <sxh bash> | ||
+ | docker cp dt_procedures.json 8385665052a3: | ||
</ | </ |