diff --git a/docs/userguide/dockervolumes.md b/docs/userguide/dockervolumes.md index 2a12f19596..776478a22e 100644 --- a/docs/userguide/dockervolumes.md +++ b/docs/userguide/dockervolumes.md @@ -263,7 +263,7 @@ elsewhere. Create a new container. Then un-tar the backup file in the new container's data volume. - $ docker run --rm --volumes-from dbstore2 -v $(pwd):/backup ubuntu bash -c "cd /dbdata && tar xvf /backup/backup.tar" + $ docker run --rm --volumes-from dbstore2 -v $(pwd):/backup ubuntu bash -c "cd /dbdata && tar xvf /backup/backup.tar --strip 1" You can use the techniques above to automate backup, migration and restore testing using your preferred tools.