Skip to content

Commit

Permalink
Im Multi-rsync-Modus wird nun für das erste Log '*_0.log' verwendet.
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaV0lt committed Nov 26, 2017
1 parent dcecad4 commit 86084b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MV_Backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# => http://paypal.me/SteBlo <= Der Betrag kann frei gewählt werden. #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
VERSION=171028
VERSION=171126

# Dieses Skript sichert / synchronisiert Verzeichnisse mit rsync.
# Dabei können beliebig viele Profile konfiguriert oder die Pfade direkt an das Skript übergeben werden.
Expand Down Expand Up @@ -716,7 +716,7 @@ for PROFIL in "${P[@]}" ; do
for i in "${!MAPFILE[@]}" ; do
[[ "${MAPFILE[i]:0:1}" != '/' ]] && echo "${MAPFILE[i]}" >> "$EXFROM" # Beginnt nicht mit "/"
done
echo "==> $dt - $SELF_NAME [#${VERSION}] - Start:" >> "$LOG" # Sicherstellen, dass ein Log existiert
echo "==> $dt - $SELF_NAME [#${VERSION}] - Start:" >> "${LOG%.log}_${cnt}.log" # Sicherstellen, dass ein Log existiert
while read -r dir ; do # Alle Ordner in der Quelle bis zur $maxdepth tiefe
[[ -e "${TMPDIR}/.stopflag" ]] && break # Platte voll!
DIR_C="${dir//[^\/]}" # Alle Zeichen außer "/" löschen
Expand Down

0 comments on commit 86084b9

Please sign in to comment.