Commit Graph

8 Commits

Author SHA1 Message Date
Harm Verhagen
688a6a8545 Fix docker_clone_volume.sh to preserve hard-links
When using docker_clone_volume.sh,  I found that when copying a volume with influxdb data,
the clones image was bigger than the original.

cause: alpine base image contains a cp version (busybox) which  does _not_ preserve
hardlinks, even with the -a option.

This is fixed by using an ubuntu base image instead of alpine.

downside: ubuntu image is larger than alpine.

Source volume:

 influxdb_data               380.2 MB

Before:

 influxdb_data.bak           443.5 MB

After:

 influxdb_data.ubuntu.bak    380.2 MB
2023-02-17 08:43:58 +01:00
Felipe Santos
173893e5f7 Add execution permission to scripts 2020-04-30 16:53:17 +00:00
Bernhardt Straub
04d818ca66 Fix cp 2017-11-07 16:19:42 +01:00
Guido Diepen
23db7997b1 Fixed Issue #3 (not copying dot files from source)
Fixed issue #3:
https://github.com/gdiepen/docker-convenience-scripts/issues/3
2017-08-28 13:17:46 +02:00
Zsolt Györffi
300d65a2c2 swap source and destination volume mapping
source volume -> /from
destination volume -> /to
2016-05-09 18:28:21 +02:00
Zsolt Györffi
82f299a524 execute the command instead of just printing it 2016-05-09 18:26:03 +02:00
Luiz Eduardo Kowalski
67f0560fc3 Letter L downcased 2016-05-04 12:10:01 +02:00
Guido Diepen
73ce677b3f Added initial version of docker_clone_volume.sh
Convenience script that can help me to easily create a clone of a given
data volume. The script is mainly useful if you are using named volumes
2016-05-01 08:18:21 +02:00