do_rsync.sh v0.2


← back to scripts-page

↓ go to download do_rsync.sh


author Email: shellscritt@Karl-Voit.at
copyright ↔ GPL
version/date v0.1 @ 2002-07-17
description This script synchronizes two directories using rsync.

dirlistfile is an ordinary textfile which consists of a list od directories which are to synchronize like:
   data/work # my data for work
   data/school/currentproject # my data for school
   scripts# my scriptfiles

directoryA and directoryB are the two base-directories which should hold the two synchronized dirlists.

Alternatively, the two directories can be stored in files instead of typing them in on command line. The script assumes them in the same directory as the dirlistfile but with the additional _PRIMARY and _SECUNDARY behind the filename of the dirlistfile. E.g. dirlistfile is maggie; then the two directoryfiles are maggie_PRIMARY and maggie_SECUNDARY.

All three configfiles can be commented by using # at any point of the file but only the last entry of the files *_PRIMARY and *_SECUNDARY are taken as the bouth base-directories.
Empty lines or comment-only lines are ignored in every file.

Note: the directory of the dirlistfiles and logfiles are defined in this script section "PERSONALISATION".

Please email me suggestions for improvements and errors! I am still learning how to write good shell-scripts *g*

download Download scriptfile "do_rsync.sh" version 0.2
  Download scriptfile "rsyncdirs.sh" (a very simple version of do_rsync.sh)

↑   go to top of page


Email: shellscritt@Karl-Voit.at
Last modified: Wed Aug 20 15:48:41 CEST 2003