[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shell cript deleting backups




On Mon, 6 Jun 2005, mess-mate wrote:

> Alvin Oga <aoga@mail.Linux-Consulting.com> wrote:
> | 
> | save it as
> | 
> | /backup/mon
> | /backup/tue
> | /backup/wed

...
 
> But can't save as /backup/mon, etc.. There is nochoice about the
> backup name except the primairy name = 'Maildir', with konserve.
> 'Maildir' is directory ( ~/Maildir/INBOX.debian )

there is always a choice ... too many gazillion choices.. its *unix*

> I'm looking for a simple backup package independant of KDE.

#
# whacky script for ~/Maildir
# 
#
# for using date: 1, 2, 3, ... 30
# pkg=`date '+%d'`
#
# for using mon, tue, wed
# pkg=`date '+%a'`

tar zcvf /backup/pkg.tgz /home/~/Maildir
#
# end of script

put that cleaned up and tested "1 liner" into crontab and you're done

c ya
alvin



Reply to: