mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-07-30 23:36:21 -04:00
Fold the standalone rsync-web repo into the rsync source tree as rsync-web/, eliminating the sibling-checkout convention and the drift it causes between the release-time HTML snapshot in ../release/rsync-html and the source of truth in ../rsync-web. Flat-copy import (no git history merge). The standalone repo at github.com/RsyncProject/rsync-web is retained for historical reference and will be archived once the in-tree copy proves itself. Add /rsync-web/ to .gitattributes with export-ignore so the website content does not bloat the release source tarball produced by 'git archive' in packaging/release.py step_7_tarball. A follow-up commit repoints HTML_SRC in packaging/release.py at the new in-tree location.
37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
#!/bin/sh
|
|
|
|
# This script does personal backups to a rsync backup server. You will end up
|
|
# with a 7 day rotating incremental backup. The incrementals will go
|
|
# into subdirectories named after the day of the week, and the current
|
|
# full backup goes into a directory called "current"
|
|
# tridge@linuxcare.com
|
|
|
|
# directory to backup
|
|
BDIR=/home/$USER
|
|
|
|
# excludes file - this contains a wildcard pattern per line of files to exclude
|
|
EXCLUDES=$HOME/cron/excludes
|
|
|
|
# the name of the backup machine
|
|
BSERVER=owl
|
|
|
|
# your password on the backup server
|
|
export RSYNC_PASSWORD=XXXXXX
|
|
|
|
|
|
########################################################################
|
|
|
|
BACKUPDIR=`date +%A`
|
|
OPTS="--force --ignore-errors --delete-excluded --exclude-from=$EXCLUDES
|
|
--delete --backup --backup-dir=/$BACKUPDIR -a"
|
|
|
|
export PATH=$PATH:/bin:/usr/bin:/usr/local/bin
|
|
|
|
# the following line clears the last weeks incremental directory
|
|
[ -d $HOME/emptydir ] || mkdir $HOME/emptydir
|
|
rsync --delete -a $HOME/emptydir/ $BSERVER::$USER/$BACKUPDIR/
|
|
rmdir $HOME/emptydir
|
|
|
|
# now the actual transfer
|
|
rsync $OPTS $BDIR $BSERVER::$USER/current
|