This repository has been archived on 2023-08-03. You can view files and clone it, but cannot push or open issues or pull requests.
sito-web/deploy-ftp-example.sh

12 lines
392 B
Bash

#!/bin/sh
# Creazione file statici per Hugo
hugo --gc
# Eliminazione file generati inutilizzati
find public/ -name \*xcf -exec rm -f "{}" \;
#find public/ -name \*jpg -exec rm -f "{}" \;
find public/ -name \*png -exec rm -f "{}" \;
rclone sync --interactive --sftp-host sftp.example.com --sftp-user www-data --sftp-password obscured_password public/ :sftp:/domains/tuosito.it/public_html/