diff --git a/move_site.sh b/move_site.sh index f611495..8978827 100644 --- a/move_site.sh +++ b/move_site.sh @@ -106,9 +106,9 @@ else local_store_path="$HOME/orbit_sites/$new_site_name" mkdir -p "$local_store_path" if [[ -z "$use_local_command" ]]; then - $scp_command$root_path/* $local_store_path/. + $scp_command$root_path/{*,.[^.]*} $local_store_path/. 2>>/dev/null else - $scp_command$root_path/* $local_store_path/. + $scp_command$root_path/{*,.[^.]*} $local_store_path/. 2>>/dev/null fi cd $local_store_path new_nginx_file="/etc/nginx/orbit_sites/$new_site_name" diff --git a/move_site_interactive.sh b/move_site_interactive.sh index e5d2c2e..4bf2932 100644 --- a/move_site_interactive.sh +++ b/move_site_interactive.sh @@ -112,9 +112,9 @@ else local_store_path="$HOME/orbit_sites/$new_site_name" mkdir -p "$local_store_path" if [[ -z "$use_local_command" ]]; then - $scp_command$root_path/* $local_store_path/. + $scp_command$root_path/{*,.[^.]*} $local_store_path/. 2>>/dev/null else - $scp_command$root_path/* $local_store_path/. + $scp_command$root_path/{*,.[^.]*} $local_store_path/. 2>>/dev/null fi cd $local_store_path new_nginx_file="/etc/nginx/orbit_sites/$new_site_name"