diff options
| author | David Luevano Alvarado <david@luevano.xyz> | 2021-02-25 06:46:53 -0700 |
|---|---|---|
| committer | David Luevano Alvarado <david@luevano.xyz> | 2021-02-25 06:46:53 -0700 |
| commit | 0d02def42804f58c754253a1f84b2b8f0dd9b2d7 (patch) | |
| tree | 9fc3e00967791e4848703deead238d2cc39aa0a6 /.local/bin/lsync | |
| parent | 775c5741711daf4622ec4cee916c7548dbc4bd80 (diff) | |
Fix rsync command and add mkblog for easier use of ssg
Diffstat (limited to '.local/bin/lsync')
| -rwxr-xr-x | .local/bin/lsync | 17 |
1 files changed, 15 insertions, 2 deletions
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 |
