Re: shell cript deleting backups
On Mon, Jun 06, 2005 at 07:20:06AM -0700, Alvin Oga wrote:
>
>
> 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
I'm always trying to learn something from you experts, but I
don't understand the above command. Is it right? I would
have expected
tar zcvf /backup/pkg.tgz /home/*/Maildir
to save everyone's files, or
tar zcvf /backup/pkg.tgz ~/Maildir
for a user to save his own files.
Was it a typo, or is this my ignorance?
> #
> # end of script
>
> put that cleaned up and tested "1 liner" into crontab and you're done
>
> c ya
> alvin
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
--
David Jardine
"Running Debian GNU/Linux and
loving every minute of it." -L. von Sacher-M.(1835-1895)
Reply to: