On Thursday 14 September 2006 13:31, James Ray wrote: > All, > I am seeing problems when trying to restore a hard link. This comes > around when I am trying to restore a file where the file it was > originally a hard link of has disappeared (which is allowed to happen). > > I see the following message: > 14-Sep 11:56 malfunction-fd: malfunction-RestoreFiles.2006-09-14_10.38.25 > Error: create_file.c:249 Could not hard link > /mnt/sda1/var/spool/imap/e/user/XXXXXX/15096. -> > /mnt/sda1/var/spool/imap/e/user/YYYYYY/17341.: ERR=No such file or directory > > Under this situation surely the better way to handle this would be to > check the file it was trying to link to existed, if it does not still > exist then to restore the file it originally linked to to the name of > the file that was trying to link to it. So above it would be: > > if /mnt/sda1/var/spool/imap/e/user/YYYYYY/17341. doesn't exist on > filesystem at present: > restore /mnt/sda1/var/spool/imap/e/user/YYYYYY/17341. as > > /mnt/sda1/var/spool/imap/e/user/XXXXXX/15096. > else: > Hardlink it
Normally, that is exactly what Bacula's restore does. I suspect that you are doing something a bit unusual such as restoring by JobId rather than option 5 (current system) and so Bacula is unable to find where the file is actually backed up, since Bacula normally only writes the data for the first hard link of the file it finds. > > Comments/Ideas? I guess for the time being I will just have to turn > hardlinks=off in my fileset {} block? > > > -- > James Ray. <[EMAIL PROTECTED]> > Computing Services > Queen Mary, University of London > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users