You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
423 B

  1. #!/bin/bash
  2. CAPTAIN_SERVER=cap.server
  3. CAPTAIN_DESTINATION_S3_SERVICE=site-files
  4. CAPTAIN_SOURCE_WORDPRESS_SERVICE=site
  5. BUCKET=media
  6. SRC="/var/lib/docker/volumes/captain--${CAPTAIN_SOURCE_WORDPRESS_SERVICE}-wp-data/_data/wp-content/uploads/"
  7. DESTINATION="/var/lib/docker/volumes/captain--${CAPTAIN_DESTINATION_S3_SERVICE}-db-data/_data/${BUCKET}/"
  8. ssh root@$CAPTAIN_SERVER "rsync -a --info=progress2 ${SRC} ${DESTINATION}"