From owner-freebsd-questions Mon Sep 25 18:13:46 2000 Delivered-To: freebsd-questions@freebsd.org Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93]) by hub.freebsd.org (Postfix) with ESMTP id 67AC537B42C for ; Mon, 25 Sep 2000 18:13:43 -0700 (PDT) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by serenity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 13djJW-000AZD-00 for freebsd-questions@freebsd.org; Tue, 26 Sep 2000 02:13:42 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) id CAA19140 for freebsd-questions@freebsd.org; Tue, 26 Sep 2000 02:13:42 +0100 (BST) (envelope-from jcm) Date: Tue, 26 Sep 2000 02:13:41 +0100 From: j mckitrick To: freebsd-questions@freebsd.org Subject: backup problems with tar script Message-ID: <20000926021341.A18819@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here is a script i copied and modified from the gnu site. I am only backing up /etc for testing reasons. #!/bin/csh set now = `date` set then = `cat ~/.admin/date.home.dump` tar -c -l -G -v\ -f /mnt/zip/backup.tar\ -N "$then"\ -V "Dump from $then to $now"\ /etc echo $now > ~/.admin/date.home.dump Here is the end of the output and the resulting error. etc/uucp/port.sample etc/uucp/sys1.sample etc/uucp/sys2.sample tar: Can't write to (null) : Bad address Any ideas what is going wrong? I tried searching the tar man page for the word 'null' in the error list, but had no luck. Apparently tar is choking on the first file (non-directory) after all the directories in /etc. What I want is an automated system that backs up all files modified or created since the last backup. I would prefer the backup file name to be generated automatically from the date, and for the script to determine the cutoff date automatically as well. jcm -- "I drank WHAT ?!" - Socrates To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message