Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 426 Bytes

backup.md

File metadata and controls

9 lines (5 loc) · 426 Bytes

Backup docker-volume

docker run --rm -v aiim_aiim-db_data:/data -v $(pwd):/backup ubuntu tar cvf /backup/aiim-db_data_volume.tar /data

Restore docker-volume

docker run --rm -v aiim_aiim-db_data:/data -v $(pwd):/backup ubuntu bash -c "cd /data && tar xvf /backup/aiim-db_data_volume.tar --strip 1"

docker run --rm -v aiim_aiim-db_data_restore:/data -v $(pwd):/backup ubuntu tar xvf /backup/aiim-db_data_volume.tar /data