Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packaging/solaris/build_pkg.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/sh
# The build target is Solaris 8. Its /bin/sh is the pre-POSIX Bourne
# shell, which does not support "$(...)": keep the legacy backticks.
# No values in this script are expected to contain spaces: ARCH, START,
# FAKE_ROOT, OUTPUTFILE, PKGNAME and NAME derive from hardcoded constants
# (PKGNAME=SMBrsync, VERSION="2.5.5", NAME=rsync, BASEDIR=/usr/local) or
# single-token commands (`uname -p`, `pwd`), so the unquoted expansions of
# FAKE_ROOT, OUTPUTFILE and PKGNAME are safe here.
# shellcheck disable=SC2006,SC2086,SC2164,SC2103
# Shell script for building Solaris package of rsync
# Author: Jens Apel <jens.apel@web.de>
# License: GPL
Expand Down
1 change: 1 addition & 0 deletions rsync-ssl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function rsync_ssl_run {
exec rsync --rsh="'$0' --HELPER" "${@}"
}

# shellcheck disable=SC1073,SC1009,SC1056,SC1072,SC2086
function rsync_ssl_helper {
if [[ -z "$RSYNC_SSL_TYPE" ]]; then
found=$(path_search openssl socat stunnel4 stunnel) || exit 1
Expand Down
6 changes: 6 additions & 0 deletions rsync-web/backup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,22 @@ export RSYNC_PASSWORD=XXXXXX

########################################################################

# shellcheck disable=SC2006
BACKUPDIR=`date +%A`
OPTS="--force --ignore-errors --delete-excluded --exclude-from=$EXCLUDES
--delete --backup --backup-dir=/$BACKUPDIR -a"

# shellcheck disable=SC2086
export PATH=$PATH:/bin:/usr/bin:/usr/local/bin

# the following line clears the last weeks incremental directory
# shellcheck disable=SC2086
[ -d $HOME/emptydir ] || mkdir $HOME/emptydir
# shellcheck disable=SC2086
rsync --delete -a $HOME/emptydir/ $BSERVER::$USER/$BACKUPDIR/
# shellcheck disable=SC2086
rmdir $HOME/emptydir

# now the actual transfer
# shellcheck disable=SC2086
rsync $OPTS $BDIR $BSERVER::$USER/current
Loading