From owner-freebsd-questions Mon Jan 20 9:14:30 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2336737B401 for ; Mon, 20 Jan 2003 09:14:28 -0800 (PST) Received: from hotmail.com (dav56.sea1.hotmail.com [207.68.162.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE52143EB2 for ; Mon, 20 Jan 2003 09:14:27 -0800 (PST) (envelope-from kenzo_chin@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 20 Jan 2003 09:14:27 -0800 X-Originating-IP: [209.187.233.156] From: "Kenzo" To: References: <3E2C231F.2070603@potentialtech.com> Subject: Re: backup Date: Mon, 20 Jan 2003 11:14:25 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-OriginalArrivalTime: 20 Jan 2003 17:14:27.0508 (UTC) FILETIME=[63229F40:01C2C0A7] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I tried to include the whole path. ie: If I do it from the command line shlight //remote_computer/dir /NT -U usename -P password Using port 1473 for NFS cd /NT ls then I get all the listing. When I enter this in webmin I get some kernel errors. ----- Original Message ----- From: "Bill Moran" To: "Kenzo" Cc: Sent: Monday, January 20, 2003 10:26 AM Subject: Re: backup > Kenzo wrote: > > I'm trying to figure out the best way to backup my server. > > I don't have a CD burner, tape drive or other media to write backup to. > > So what I want to do, is connect to my other comp with cd burner and that > > runs on WinXP. > > I was thinking of using shlight since It seems to work good. > > In Webmin under backup you can issue a command to perform before and after > > the backup. > > I tried to set it up to mount the windows command before the backup and > > umount it after, but that didn't work. > > I think the kernel didn't like that. > > If I do it manually it works fine. > > Usually this is because you haven't specified the full path to the mount > command. When you type the command at a shell prompt, you have a search > path that is searched for the command. The webmin module probably doesn't > do this, so you'll have to enter the full path. i.e.: > /sbin/mount > ass opposed to just "mount" > You can use the "whereis" command to find the full path to the particular > command you're trying to run. i.e. > whereis mount > will tell you what directory 'mount' is in. > > > Now is there another/better way of doing what I want to do? > > I was also thinking about using Cron to issue the commands. > > A script might do it, but I don't know anything about writing sripts. > > It's not as hard as you might think. For example, the following script > is a good template for what you're trying to do: > > #!/bin/sh > /sbin/mount_nfs 172.16.0.1:/remote/drive /mnt/temp > /bin/cp -Rp /path/to/backup /mnt/tmp/. > /sbin/umount /mnt/temp > > Of course, you'll want to substitute the mount command that you need > (which may be at a different location) and the specific stuff you > want to back up, etc. > > -- > Bill Moran > Potential Technologies > http://www.potentialtech.com > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message