Rotierendes Backup | Probleme mit inkrementellen Anteilen

  • Hallo zusammen,


    ich habe folgendes Script, dass ein rotierendes Backup produziert. Es stammt aus einem der Rsync-Beispiele.


    ----------


    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 will therefore be deleted after 7 days,# and the current full backup goes into a directory called "current"# tridge@linuxcare.com# Modified by GMP for backups on a LCS 8220 via ssh with passwordless login# Due to reduced memory on the NAS, large backup trees need to be split into "small branches"!# directory to backupBDIR=/share/MD0_DATA/# excludes file - this contains a wildcard pattern per line of files to excludeEXCLUDES=# the IP of the backup machineBSERVER="IP Adresse des Backup-Rechners"# backup directory on backup serverBSERVERDIR=/share/MD0_DATA/backup/# path to rsync on backup serverRSYNCREMOTE=/usr/bin/rsync# your password on the backup server#export RSYNC_PASSWORD=# path to your local ssh authentication key#SSHKEY=/share/MD0_DATA/



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




    -----


    Grundsätzlich funktioniert es gut. Allerdings sind die Unterverzeichnisse der Wochentage sehr groß und enthalten Verzeichnisse, die es im Original-Datenbestand seit über einer Woche nicht mehr gibt.
    Das Script wird immer nachts mit einem cronjob ausgeführt.


    Vielleicht kann jemand am Code direkt erkennen, ob es Probleme beim Datenabgleich bzw. an der Löschung der inkrementellen Bereiche gibt.


    Danke


    Grüße,
    BO

    Einmal editiert, zuletzt von GorillaBD () aus folgendem Grund: Code Block hinzugefügt! Siehe Forenregeln.