Hdup error "No such file or directory"
Tom Goulet <[email protected]> Mon, 8 Sep 2003 17:45:28 +0000
| Newsgroups | gmane.comp.sysutils.backup.hdup.devel |
|---|---|
| Message-ID | <[email protected]> |
--GID0FwUMdk1T2AWN
Content-Type: multipart/mixed; boundary="xHFwDpU9dbj6ez1V"
Content-Disposition: inline
--xHFwDpU9dbj6ez1V
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
The first attachment is the output of the Cron job trying to run Hdup.
The second attachment is my configuration file.
The problem is that I see:
| No such file or directory.
The system call that matches according to Strace is:
| 856 open("/backup/nova/08-09-2003/nova.08-09-2003.daily.tar.gz", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)
Now </backup/nova/> exists just fine, but </backup/nova/08-09-2003/>
exists not. I thought Hdup would create the date directory by itself?
But it didn't.
One more thing... Hdup only fails from Cron, never from the interactive
shell. I have no idea why.
This is Hdup version 1.6.18 on Debian testing (I installed the Debian
unstable version and "loosened" the dependency on the <libc> package.)
Some more snippets from Strace:
| 856 --- SIGCHLD (Child exited) @ 0 (0) ---
| 856 open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
| 856 open("/backup/nova/08-09-2003", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)
| 856 stat64("/backup/nova/etc/inclist.weekly", {st_mode=S_IFREG|0644, st_size=459191, ...}) = 0
| 856 fork() = 859
| 856 wait4(-1, <unfinished ...>
| 859 execve("/bin/sh", ["sh", "-c", "/bin/cp -f /backup/nova/etc/incl"...], [/* 14 vars */]) = 0
[ Hdup does some copying and some other stuff I can't identify ]
| 856 open("/backup/nova/08-09-2003/nova.08-09-2003.daily.tar.gz", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)
| 856 pipe([4, 5]) = 0
| 856 vfork() = 861
| 856 close(5 <unfinished ...>
| 861 close(4 <unfinished ...>
| 856 <... close resumed> ) = 0
| 861 <... close resumed> ) = 0
| 856 write(2, "No such file or directory\n", 26 <unfinished ...>
Hi again. You getting tired of me yet? :-)
--
Tom Goulet, [email protected], D8BAD3BC, http://web.em.ca/~tomg/contact.html
--xHFwDpU9dbj6ez1V
Content-Type: message/rfc822
Content-Disposition: inline
Envelope-to: [email protected]
Received: from root by nova.vor.em.ca with local (Exim 3.36 #1 (Debian))
id 19wPlm-0000Oq-00
for <[email protected]>; Mon, 08 Sep 2003 17:25:42 +0000
From: [email protected] (Anacron)
To: [email protected]
Subject: Anacron job 'cron.daily'
Message-Id: <[email protected]>
Date: Mon, 08 Sep 2003 17:25:42 +0000
/etc/cron.daily/hdup:
/usr/bin/hdup: nova: STARTING BACKUP.
No such file or directory
/usr/bin/hdup: WARNING: AN ERROR OCCURED!
Hdup version.: 1.6.18
Host.........: nova
Date.........: 08-09-2003
Scheme.......: daily
Archive......: nova.08-09-2003.daily.tar.gz
Encryption...: no
AN ERROR OCCURED!
NOTHING WAS DONE!
/bin/tar: Removing leading `/' from member names
--xHFwDpU9dbj6ez1V
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="hdup.conf"
[global]
archive dir = /backup
user = root
compression = gzip
proto = /usr/bin/scp
tar = /bin/tar
overwrite = yes
[nova]
dir = /
exclude = /proc, /extra, /backup, /mnt/giant, /floppy, /cdrom, /dev/pts
prerun = mount /backup
postrun = umount /backup
# && hdparm -Y /dev/hdd
--xHFwDpU9dbj6ez1V--
--GID0FwUMdk1T2AWN
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/XMA4eft5KNi607wRAnHGAJ4tiHv8OBlT3E95WIFdwmE2rPJjwgCfSRNB
oECsPysnOOem2eQCPRYQBag=
=jN5C
-----END PGP SIGNATURE-----
--GID0FwUMdk1T2AWN--