projects
/
outofuni
/
backup.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding comments for other ideas ...
[outofuni/backup.git]
/
bin
/
backup
diff --git
a/bin/backup
b/bin/backup
index
6b04a56
..
43a1d4c
100755
(executable)
--- a/
bin/backup
+++ b/
bin/backup
@@
-105,6
+105,11
@@
for pb in $backupdir/[0-9]*; do
log continuing $pb as $cbd ...
fi
log continuing $pb as $cbd ...
fi
+ # if this is a new day backup, i.e.:
+ # - this is somewhere else!!!
+ # try to use content as basis
+ # ...
+
rsrc=""
for dir in $homedirs; do
rsrc="$rsrc :/home/$user/$dir"
rsrc=""
for dir in $homedirs; do
rsrc="$rsrc :/home/$user/$dir"
@@
-123,8
+128,13
@@
for pb in $backupdir/[0-9]*; do
log backup terminated before completion ...
exit -50
fi
log backup terminated before completion ...
exit -50
fi
- touch $backupdir/.$pb
- log "backup completed :)"
+
+ touch $backupdir/.`basename $cbd`
+ log "backup `basename $cbd` completed :)"
+ else
+ if [ "$pb" = "$cbd" ]; then
+ log backup $bdd found completed ...
+ fi
fi
ob="$ob $pb"
done
fi
ob="$ob $pb"
done