From owner-freebsd-questions Mon Jan 20 9:21: 1 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 2F6C037B401 for ; Mon, 20 Jan 2003 09:20:59 -0800 (PST) Received: from mail.adelphia.net (pa-plum1b-166.pit.adelphia.net [24.53.161.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 709A143F18 for ; Mon, 20 Jan 2003 09:20:54 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([172.16.0.95]) by mail.adelphia.net (8.12.3/8.12.3) with ESMTP id h0KHMEko000415; Mon, 20 Jan 2003 12:22:14 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E2C2FD0.1080700@potentialtech.com> Date: Mon, 20 Jan 2003 12:20:16 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021127 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kenzo Cc: freebsd-questions@FreeBSD.ORG Subject: Re: backup References: <3E2C231F.2070603@potentialtech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Kenzo wrote: > 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. What are the errors? And "shlight" does not include the path to shlight. At a shell prompt, enter "whereis shlight" Whereever it tells you it is, you'll need that full path specified, for example: whereis shlight shlight: /usr/local/bin Thus you'll need to replace your command above with: /usr/local/bin/shlight //remote_computer/dir /NT -U usename -P password DO NOT USE /usr/local/bin. I don't know where the shlight binary is installed, so you _must_ do the "whereis" step above to locate it and use the result of that command to setup your script. > ----- Original Message ----- > From: "Bill Moran" >>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