From 802f95f41c2bdaa73789362665bba9cf69380933 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 15 Aug 2007 14:39:42 +0000 Subject: [PATCH] sort and tail now uses a slightly different syntax, as the old is deprecated in Etch --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index cf2e24b..32bb579 100755 --- a/backup.sh +++ b/backup.sh @@ -122,7 +122,7 @@ backup() touch -t $DATE ../.date #make a sortet filelist - grep -v ^d $DATE.idx | sort -n -r +2 > $DATE.sdx + grep -v ^d $DATE.idx | sort -n -r -k 2 > $DATE.sdx #fix perm chmod 600 *tgz #only for us @@ -247,7 +247,7 @@ do fi #delete complete backups - for full in `ls -1t $storagedir/$computer/$sfilesystem/full/*tgz | tail +$mf` + for full in `ls -1t $storagedir/$computer/$sfilesystem/full/*tgz | tail -n +$mf` do prefix=`echo $full | sed "s/\.[^.]*$//"` echo `date`": $computer:$filesystem sletter full $prefix (for mange)" >&2 -- 2.39.2