Revision 9801
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/local.sh | ||
---|---|---|
2 | 2 |
# links to locally-available resources |
3 | 3 |
. "$(dirname "${BASH_SOURCE[0]}")"/util.sh |
4 | 4 |
. "$(dirname "${BASH_SOURCE[0]}")"/db.sh |
5 |
. "$(dirname "${BASH_SOURCE[0]}")"/sync.sh |
|
5 | 6 |
|
6 | 7 |
if self_not_included; then |
7 | 8 |
|
... | ... | |
68 | 69 |
|
69 | 70 |
public_schema_exists() { psql_script_vegbien </dev/null 2>/dev/null; } |
70 | 71 |
|
72 |
|
|
73 |
#### sync |
|
74 |
|
|
75 |
: "${sync_local_dir=$root_dir}" |
|
76 |
: "${sync_remote_url=jupiter:/data/dev/aaronmk/bien}" |
|
77 |
|
|
78 |
sync_upload() { echo_func; use_sync; upload "$@"; } |
|
79 |
|
|
80 |
sync_download() { echo_func; use_sync; upload "$@"; } |
|
81 |
|
|
71 | 82 |
fi |
Also available in: Unified diff
lib/sh/local.sh: added sync_upload(), sync_download() with $sync_local_dir, $sync_remote_url config vars