diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2021-10-11 15:08:51 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2021-10-11 15:08:51 -0500 |
commit | 2cf3ea2f828f6da07adff92a7dc5bce6069620ab (patch) | |
tree | 213dabd2d9301d3930f47f2a03c901dfbb100297 /sync/sink | |
parent | 551e1c638a6a4ff2130b3c374774f6006b28467d (diff) | |
download | scripts-2cf3ea2f828f6da07adff92a7dc5bce6069620ab.tar.xz scripts-2cf3ea2f828f6da07adff92a7dc5bce6069620ab.zip |
sinking
Diffstat (limited to 'sync/sink')
-rwxr-xr-x | sync/sink | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2,7 +2,7 @@ printusage() { echo "Usage: $0 [<repos> ...] (repos: all,`echo $repos | tr ' ' ','`) [up|down]" && exit; } -repos="docs sites patches" +repos="docs patches" oper=`echo $@ | sed 's/.* //'` # Get last argument ([ -z $2 ] || ([ "$oper" != "up" ] && [ "$oper" != "down" ])) && printusage @@ -31,10 +31,9 @@ sync() { } # arg1 = options + containing directory path, arg2 = file/directory name -syncdocs() { destdir="" && sync "/home/timmy/" "docs"; } +syncdocs() { destdir="" && sync "/home/timmy/docs/" "school"; } #syncsites() { destdir="" && sync "--exclude=pass /home/timmy/.local/src/" "sites"; } # Excludes password file syncpatches() { destdir="" && sync "--exclude=.git /home/timmy/.local/src/programs/" "patches"; } # Excludes git files -syncsite() { destdir="/var/www/tjkeller/" && sync "/home/timmy/.local/src/sites/" "tjkeller"; } for arg in "$@"; do case $arg in |