loviuz-website/deploy-ftp-example.sh

12 lines
392 B
Bash
Raw Normal View History

2022-06-05 16:45:41 +02:00
#!/bin/sh
2022-07-24 22:24:22 +02:00
# Creazione file statici per Hugo
hugo --gc
# Eliminazione file generati inutilizzati
find public/ -name \*xcf -exec rm -f "{}" \;
2022-08-19 12:59:12 +02:00
#find public/ -name \*jpg -exec rm -f "{}" \;
2022-07-24 22:24:22 +02:00
find public/ -name \*png -exec rm -f "{}" \;
2022-06-05 16:45:41 +02:00
rclone sync --interactive --sftp-host sftp.example.com --sftp-user www-data --sftp-password obscured_password public/ :sftp:/domains/tuosito.it/public_html/