blog.hugopoi.net/deploy.sh

10 lines
357 B
Bash
Raw Normal View History

2022-11-19 16:33:50 +01:00
#!/bin/bash
# Build
hugo
# Backup current deploy
ssh home.hugopoi.net sudo yunohost backup create --apps my_webapp
# Deploy full legacy and new blog
rsync -rlgoD --checksum --verbose www/ home.hugopoi.net:/var/www/my_webapp/www/
# Deploy only the new hugo blog
rsync -rlgoD --verbose --checksum --delete www/v2/ home.hugopoi.net:/var/www/my_webapp/www/v2/