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

Re: backup



On Thu, Oct 03, 2002 at 10:50:20PM -0700, Jeff wrote:
> Thatcher Ulrich, 2002-Oct-04 00:50 -0400:
> > On Oct 04, 2002 at 11:50 +1000, Joyce, Matthew wrote:
> > > 
> > > Hi,
> > > 
> > > I am running woody v3 / 2.4.18 on an old tosh laptop.
> > > 
> > > It is the only linux box I have at the moment, and I was wondering how I
> > > should go about backup it up.
> > > 
> > > I have heaps of diskspace on various win2k boxes, perhaps I could tar what I
> > > want and ftp it.
> > > 
> > > Is there some software which will backup specified folders only, and some
> > > config files, some email and stuff like that.
> > > 
> > > Any ideas ?
> > 
[snip]
> 
> 
> Here's a slick little script to tar and compress specified dirs:
> 
> <bof>
> #!/bin/bash
> SRCD="/home/jeff/Mail"
> TGTD="/var/backups/"
> OF=mail-$(date +%Y%m%d).tgz
> tar -cvzf $TGTD$OF $SRCD
> <eof>
> 
> This will tar and compress my Maildirs into a .tgz file and put it in
> /var/backups.   Then I ftp or scp the file to another system or burn
> it to CD.
> 
[snip]
> 
> jc
> 
> --
> Jeff Coppock		Systems Engineer
> Diggin' Debian		Admin and User
> 

I run samba on my linux machines, which makes it trivial to write tar's
to my windoze boxes.  Just create a directory on the win2k machine for
your linux backups and share it, then use smbmount to mount the shared
directory under linux.  Set TGTD in the above script to point to the
mounted directory.  You can even add the smbmount command to the above
script, with an smbumount at the end.

If you don't know what samba is, it lets you both access Windows shared
directories on other machines on your network and share linux
directories with those other machines as if the linux directories were
Windows shared directories.

...Marvin Renich



Reply to: