Categories
Tags
Actual AI Astro Backup Bookworm Budgeting Caddy Caddyfile Cloud Storage Cloudflare Compression Copilot Dashboard Data Hoarding Debian DeepSeek DNS Docker Docker Compose FFmpeg File Management Flatnotes Forgejo Format Disk GitHub Google Anaytics Homarr ImageMagick Instagram jdupes Kimai Link Shortener LinkStack Linktree Linux Lychee Mail Server Mailcow Misskey Movie Tracker Navidrome Networking Nextcloud Node.js NTFS NVM OpenSSL Password Manager Passwords Performance Photoprism Privacy RAM Reverse Proxy rsync Secure Erase Security Server Spotify SVG Swap Memory tar Time Management Time Tracker Traggo Twitter Uptime USB Drives Vaultwarden Vibe Coding Video VPN VPS Web Analytics Yamtrack YOURLS Zstandard
79 words
1 minutes
Snippet: Deploy Astro Sites to a VPS with rsync
Snippet: Deploy Astro Sites to a VPS with rsync
Deploy blog:
# local
(cd ~/fuwari && pnpm build) && rsync -ahvzP -e 'ssh -p 2222' ~/fuwari/ username@1.2.3.4:~/astro/fuwari/
# vps
sudo rsync -ahvz --delete ~/astro/fuwari/dist/ /var/www/html/blog/
# NOTE
# change site variable in astro.config.mjs. This URL will be used when generating dist/site-map-index.xml
#
# export default defineConfig({
# site: 'https://fuwari.vercel.app/',
#
Deploy resume:
# local
npm run build
rsync -ahPvz -e 'ssh -p 2222' devscard/ usernamen@1.2.3.4:~/astro/devscard/
# vps
sudo rsync -ahvz --delete ~/astro/devscard/dist/ /var/www/html/job/
Snippet: Deploy Astro Sites to a VPS with rsync
https://blog.juyung.com/posts/en/2026/10/20-11/