did some upgrades while launching a site
This commit is contained in:
15
bin/file-sync.sh
Normal file
15
bin/file-sync.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
#check if root
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run as root" 1>&2
|
||||
exit;
|
||||
fi
|
||||
|
||||
#Grab dotenv
|
||||
rsync -azhvc --del /var/lib/docker/volumes/harvst-ca_joomla/_data/ html/
|
||||
|
||||
# You probably should do something more like this:
|
||||
# docker create --name temp-container -v <source_volume>:/source_data busybox
|
||||
# docker cp temp-container:/source_data /path/to/destination_directory
|
||||
# docker rm temp-container
|
||||
Reference in New Issue
Block a user