From 0d02def42804f58c754253a1f84b2b8f0dd9b2d7 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Thu, 25 Feb 2021 06:46:53 -0700 Subject: Fix rsync command and add mkblog for easier use of ssg --- .local/bin/lsync | 17 +++++++++++++++-- .local/bin/mkblog | 4 ++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100755 .local/bin/mkblog diff --git a/.local/bin/lsync b/.local/bin/lsync index bc0f140..dc74c0f 100755 --- a/.local/bin/lsync +++ b/.local/bin/lsync @@ -1,8 +1,21 @@ #!/bin/sh # Push to luevano.xyz -echo "rsync: pushing (U) local (lz) to webserver (lzserver)." -rsync -rtuvP --delete-after $HOME/dox/www/luevano/ lzr:/var/www/luevano/ +# This pushes everything! +echo "rsync: pushing (U) local (lz) to webserver (lzserver). (luevano.xyz)" +rsync -rtuvP --delete-after --exclude-from=$HOME/dox/www/luevano.xyz/.rsyncignore $HOME/dox/www/luevano.xyz/ lzr:/var/www/ + +# Only static.luevano.xyz. +# echo "rsync: pushing (U) local (lz) to webserver (lzserver). (luevano.xyz)" +# rsync -rtuvP --delete-after $HOME/dox/www/luevano.xyz/static/ lzr:/var/www/static/ + +# Only luevano.xyz. +# echo "rsync: pushing (U) local (lz) to webserver (lzserver). (luevano.xyz)" +# rsync -rtuvP --delete-after $HOME/dox/www/luevano.xyz/luevano/ lzr:/var/www/luevano/ + +# Only gb.luevano.xyz. +# echo "rsync: pushing (U) local (lz) to webserver (lzserver). (luevano.xyz)" +# rsync -rtuvP --delete-after $HOME/dox/www/luevano.xyz/gb/ lzr:/var/www/gb/ # echo "rsync: pulling (U) webserver (lzserver) to local (lz)." # rsync -rtuvP lzr:/var/www/luevano/ $HOME/dox/www/luevano diff --git a/.local/bin/mkblog b/.local/bin/mkblog new file mode 100755 index 0000000..c364202 --- /dev/null +++ b/.local/bin/mkblog @@ -0,0 +1,4 @@ +#!/bin/sh +# Run ssg to make the blog. (blog.luevano.xyz) + +ssg $HOME'/dox/www/luevano.xyz/blog/src' $HOME'/dox/www/luevano.xyz/blog/dst' "Luevano's blog" 'https://blog.luevano.xyz' -- cgit v1.2.3-54-g00ecf