22 May
2004
22 May
'04
17:20
am trying this script :- ................................ #!/bin/sh # backup /var # cd ~ exec tar czvf /bup/var`date +%y%m%d`.tar.gz /var/named /var/cron/tabs /var/spool/mail /usr/X11R6/lib/X11/app-defaults /usr/X11R6/lib/X11/fonts/greek {} \; >/dev/null 2>&1 # delete /bup files older than 7 days cd /bup find ./test -mtime +7 -exec rm -f {} \* ; cd ~ ............................... . . . But, the "find & Delete" line is not working :( < find ./test -mtime +7 -exec rm -f {} \* ; > does not run, and, complains : " Find missing argument to `-exec' " What do I need, please, to make it find and delete backup files older than 7 Days ? thanks ____________ sent on Linux ____________