Am 2005-04-28 14:42:05, schrieb Martin Wegmann:
> #!/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/martin
>
> # excludes file - this contains a wildcard pattern per line of files to
> exclude
> EXCLUDES=$HOME/office
> EXCLUDES=$HOME/music
> EXCLUDES=$home/.gimp-2.0
Das kann nicht funktionieren...
Entweder Du schreibst.
EXCLUDES=$HOME/office,$HOME/music,$home/.gimp-2.0
oder Du schmeist alles in eine externe Datei "exclude"
und machst dann später:
<snip>
> BACKUPDIR=`date +%A`
> OPTS="--force --ignore-errors --delete-excluded --exclude-from=$EXCLUDES
OPTS="--force --ignore-errors --delete-excluded --exclude-from=`cat exclude`
> --delete --backup --backup-dir=/$BACKUPDIR -a"
Greetings
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.pgp
Description: Digital signature