Skip to content

Instantly share code, notes, and snippets.

@otobrglez otobrglez/sync.sh

Last active Oct 19, 2017
Embed
What would you like to do?
Bash script for syncing WordPress theme to FlyWheel (sftp with lftp)
#!/usr/bin/env bash
# Oto Brglez - <otobrglez@gmail.com>
set -e
# Set path where your theme lives on server.
THEME_DIRECTORY=/org-myorg/site/wp-content/themes/some-theme
lftp -u $FLYWHEEL_USER,$FLYWHEEL_PASS sftp://sftp.flywheelsites.com << --EOF--
set sftp:auto-confirm yes
set ssl:verify-certificate false
cd $THEME_DIRECTORY
mirror --exclude sync.sh --exclude .git/ -R
quit
--EOF--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.