RE: Help backing up to networked drive

2006-01-19 Thread Mike Loiterman

For those that are interested this is how got things to work:

On the Mac Mini I edited /etc/smb.conf and put in this:

 [backup] 
 path = /Volumes/Server-Backup
 writeable = yes

Then I restarted Windows File Sharing by going to System
Preferences->Sharing and then turning off Windows File Sharing and then
turning it back on.

Then, on my server, I mounted the Mini's drive with this command:

/usr/sbin/mount_smbfs //[EMAIL PROTECTED]/backup /mnt/backup

Now I'm using this script to do a level 0 dump:

/sbin/dump 0aufL - / | bzip2 >/mnt/backup/root-dump-l0.bz2 
/sbin/dump 0aufL - /tmp | bzip2 >/mnt/backup/tmp-dump-l0.bz2 
/sbin/dump 0aufL - /usr | bzip2 >/mnt/backup/usr-dump-l0.bz2 
/sbin/dump 0aufL - /var | bzip2 >/mnt/backup/var-dump-l0.bz2 

Once I see that this is working well, I'll probably set up folders for a
weekly level 0 and dailys level 9's.

Thanks to Chuck for the hint on adding the drive in the Mini's smb.conf
file.

--
Mike Loiterman
grantADLER
Tel: 630-302-4944
Fax: 773-442-0992
Email: [EMAIL PROTECTED]
PGP Key: 0xD1B9D18E

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Help backing up to networked drive

2006-01-19 Thread Gayn Winters
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Mike Loiterman
> Sent: Thursday, January 19, 2006 8:17 AM
> To: freebsd-questions@freebsd.org
> Subject: RE: Help backing up to networked drive
> 
> 
> Mike Loiterman <mailto:[EMAIL PROTECTED]> wrote:
> > I would like to backup my server to a firewire drive
> > connected to a Macintosh Mini. Both machines are on my local
> > network and, of course, behind a secure firewall.
> > 
> > Right now I'm using this script to take backups:
> > 
> > #!/bin/sh
> > 
> >  /sbin/dump -0uanL -f - / | gzip -2 | ssh -c blowfish
> > [EMAIL PROTECTED] dd of=/Volumes/Server-Backup/dump-root.gz && \
> >  /sbin/dump -0uanL -f - /tmp | gzip -2 | ssh -c blowfish
> > [EMAIL PROTECTED] dd of=/Volumes/Server-Backup/dump-tmp.gz && \
> >  /sbin/dump -0uanL -f - /usr | gzip -2 | ssh -c blowfish
> > [EMAIL PROTECTED] dd of=/Volumes/Server-Backup/dump-usr.gz && \
> >  /sbin/dump -0uanL -f - /var | gzip -2 | ssh -c blowfish
> > [EMAIL PROTECTED] dd of=/Volumes/Server-Backup/dump-var.gz
> > 
> > This is working fine, but I have to run the script mannually
> > and enter the password.
> > 
> Actually, I take it back.  The original script doesn't work.
> 
> dd gives an error when I try to backup /usr saying that the 
> file is too
> large...it dies at 4GB.
> 
Not knowing anything about the mac mini, I can only guess:  Have you
tried using a partition name for dd of= instead of a file name?

-gayn

Bristol Systems Inc.
714/532-6776
www.bristolsystems.com 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Help backing up to networked drive

2006-01-19 Thread Mike Loiterman
Mike Loiterman  wrote:
> I would like to backup my server to a firewire drive
> connected to a Macintosh Mini. Both machines are on my local
> network and, of course, behind a secure firewall.
> 
> Right now I'm using this script to take backups:
> 
> #!/bin/sh
> 
>  /sbin/dump -0uanL -f - / | gzip -2 | ssh -c blowfish
> [EMAIL PROTECTED] dd of=/Volumes/Server-Backup/dump-root.gz && \
>  /sbin/dump -0uanL -f - /tmp | gzip -2 | ssh -c blowfish
> [EMAIL PROTECTED] dd of=/Volumes/Server-Backup/dump-tmp.gz && \
>  /sbin/dump -0uanL -f - /usr | gzip -2 | ssh -c blowfish
> [EMAIL PROTECTED] dd of=/Volumes/Server-Backup/dump-usr.gz && \
>  /sbin/dump -0uanL -f - /var | gzip -2 | ssh -c blowfish
> [EMAIL PROTECTED] dd of=/Volumes/Server-Backup/dump-var.gz
> 
> This is working fine, but I have to run the script mannually
> and enter the password.
> 
> So my question are these:
> 1.  Is there any other way of doing this so that I would not
> have to deal with the password issue from ssh?  This is all
> taking place behind a secure firewall on my local network, so
> ssh is probably not necessary.
> 
> 2.  How can I use samba to mount the Mini's drive?
> mount_smbfs would only see the home share belonging to the
> user I was logging in with and not the /Volume directory on
> the Mac.  Sym-links from the users /home to /Volumes didn't
> work correctly.  How can I access the drives in /Volumes via samba?

Actually, I take it back.  The original script doesn't work.

dd gives an error when I try to backup /usr saying that the file is too
large...it dies at 4GB.

--
Mike Loiterman
grantADLER
Tel: 630-302-4944
Fax: 773-442-0992
Email: [EMAIL PROTECTED]
PGP Key: 0xD1B9D18E

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Help backing up to networked drive

2006-01-19 Thread Chuck Swiger

Mike Loiterman wrote:
[ ... ]

This is working fine, but I have to run the script mannually and enter the
password.  


So my question are these:
1.  Is there any other way of doing this so that I would not have to deal
with the password issue from ssh?  This is all taking place behind a secure
firewall on my local network, so ssh is probably not necessary.


You can use ssh-keygen to generate a RSA or DSA keyapir without a passphrase; 
copy that to ~/.ssh/authorized_keys on the other machine, and you can ssh 
without entering a password.



2.  How can I use samba to mount the Mini's drive?  mount_smbfs would only
see the home share belonging to the user I was logging in with and not the
/Volume directory on the Mac.  Sym-links from the users /home to /Volumes
didn't work correctly.  How can I access the drives in /Volumes via samba?


You either have to configure Samba to explicitly list the path under /Volumes as 
a share, or you have to enable the option to follow symlinks outside the share 
which contains your symlink


--
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Help backing up to networked drive

2006-01-19 Thread Mike Loiterman
I would like to backup my server to a firewire drive connected to a
Macintosh Mini. Both machines are on my local network and, of course, behind
a secure firewall.

Right now I'm using this script to take backups:

#!/bin/sh 
  
 /sbin/dump -0uanL -f - / | gzip -2 | ssh -c blowfish [EMAIL PROTECTED] dd
of=/Volumes/Server-Backup/dump-root.gz && \ 
 /sbin/dump -0uanL -f - /tmp | gzip -2 | ssh -c blowfish [EMAIL PROTECTED]
dd of=/Volumes/Server-Backup/dump-tmp.gz && \ 
 /sbin/dump -0uanL -f - /usr | gzip -2 | ssh -c blowfish [EMAIL PROTECTED]
dd of=/Volumes/Server-Backup/dump-usr.gz && \ 
 /sbin/dump -0uanL -f - /var | gzip -2 | ssh -c blowfish [EMAIL PROTECTED]
dd of=/Volumes/Server-Backup/dump-var.gz 

This is working fine, but I have to run the script mannually and enter the
password.  

So my question are these:
1.  Is there any other way of doing this so that I would not have to deal
with the password issue from ssh?  This is all taking place behind a secure
firewall on my local network, so ssh is probably not necessary.

2.  How can I use samba to mount the Mini's drive?  mount_smbfs would only
see the home share belonging to the user I was logging in with and not the
/Volume directory on the Mac.  Sym-links from the users /home to /Volumes
didn't work correctly.  How can I access the drives in /Volumes via samba?

--
Mike Loiterman
grantADLER
Tel: 630-302-4944
Fax: 773-442-0992
Email: [EMAIL PROTECTED]
PGP Key: 0xD1B9D18E

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"