From owner-freebsd-questions Mon Jan 20 8:26:53 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 45B2437B401 for ; Mon, 20 Jan 2003 08:26:51 -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 6A64A43F43 for ; Mon, 20 Jan 2003 08:26:45 -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 h0KGS6ko000285; Mon, 20 Jan 2003 11:28:06 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E2C231F.2070603@potentialtech.com> Date: Mon, 20 Jan 2003 11:26:07 -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: 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'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