Signed-off-by: Evgeny Lukianchikov <mail@eluck.me>
| ... | ... |
@@ -205,7 +205,7 @@ elsewhere. Create a new container. |
| 205 | 205 |
|
| 206 | 206 |
Then un-tar the backup file in the new container's data volume. |
| 207 | 207 |
|
| 208 |
- $ docker run --volumes-from dbdata2 -v $(pwd):/backup busybox tar xvf /backup/backup.tar |
|
| 208 |
+ $ docker run --volumes-from dbdata2 -v $(pwd):/backup ubuntu cd /dbdata && tar xvf /backup/backup.tar |
|
| 209 | 209 |
|
| 210 | 210 |
You can use the techniques above to automate backup, migration and |
| 211 | 211 |
restore testing using your preferred tools. |