0 |
#!/bin/sh |
1 |
|
2 |
RSYNC_DRYRUN="--dry-run" |
3 |
if test "$1" = "--real"; then |
4 |
RSYNC_DRYRUN="" |
5 |
fi |
6 |
|
7 |
rsync $RSYNC_DRYRUN --recursive --delete --archive --verbose ./x_x/ $(whoami)@xwx.moe:/srv/http/jam.xwx.moe/x_x/ |
8 |
rsync $RSYNC_DRYRUN --archive --verbose ./*.conf $(whoami)@xwx.moe:/etc/nginx/conf.d/ |
9 |
|
10 |
if test "$RSYNC_DRYRUN" = "--dry-run"; then |
11 |
echo "==================================================" |
12 |
echo "Ran in --dry-run mode!" |
13 |
echo "Try '$(basename "$0") --real' if the output seems OK." |
14 |
echo "==================================================" |
15 |
fi |