localsnar="${storagedir}/${computer}/${sfilesystem}/.incremental.snar"
remotesnar="$remotehome/.backup/${sfilesystem}.snar"
- if [ "$backuplevel" = "daglig" ]; then
+ if [ "$backuplevel" = "daily" ]; then
# If incremental backup, we need to copy the incremental status to $computer.
# If it does not exist, whine a bit and then run date-based instead.
if [ -s "$localsnar" ]; then
{
infomsg "$computer:$filesystem $backuplevel non-privileged backup"
- if [ "$backuplevel" = "daglig" ]; then
+ if [ "$backuplevel" = "daily" ]; then
lastd=`cat ../.date`
lastcmd="'$lastd'"
else
# Prepare storage area
mkdir -m 755 -p $storagedir/$computer/$sfilesystem/full 2>/dev/null
- mkdir -m 755 -p $storagedir/$computer/$sfilesystem/daglig 2>/dev/null
+ mkdir -m 755 -p $storagedir/$computer/$sfilesystem/daily 2>/dev/null
# Default backuplevel
- backuplevel=daglig
+ backuplevel=daily
if [ ! -s $storagedir/$computer/$sfilesystem/.date ]; then
# Take the first full backup of this filesystem on this computer
# Delete incremental backups older than the oldest full backup
oldf=`ls -t1 $storagedir/$computer/$sfilesystem/full/*tgz* | tail -1`
find \
- $storagedir/$computer/$sfilesystem/daglig \
+ $storagedir/$computer/$sfilesystem/daily \
-type f \
\! -newer $oldf \
-printf "`date`: $computer: Deleting old incremental backup: %p\n" \
# Get timestamp on form 2012-10-15 00:16
LASTFULL_TIMESTAMP=$(echo `basename $LASTFULL .tgz` | sed -re 's/^([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2}).*/\1-\2-\3 \4:\5/')
find $DIR/full/$LASTFULL
-find $DIR/daglig -newermt "$LASTFULL_TIMESTAMP" -name '*.tgz'
+find $DIR/daily -newermt "$LASTFULL_TIMESTAMP" -name '*.tgz'