So to make a backup/restore process possible, you have to write a
script that'll rename files based on the inode of the file that the
name is generated from.

The general approach is

foreach file in $queue_dir; do 
  $INUM=$(ls -ils | awk '{print $1}')

  for i in $(find $queue_dir -name $file*); do
      mv $i $INUM
  done
done

This is just the idea.  I don't remember w/o reading the internals of
the precise filenames and directory structures, but the above could be
turned into a queue_restore process after some trial and error.

-Peter

On Tue, Apr 16, 2002 at 10:01:48AM -0400, Sam Varshavchik wrote:
> Thierry DELHAISE writes: 
> 
> 
> >We use NetBackup ( a commercial product ) to accomplish the "save/restore"
> >step. All FS under our machine are UFS. I think the save process is made by
> >a TAR clone, not a cpio one, neither a "DD". 
> >
> >At re-startup, Courier send a lot of : 
> >
> >Courierd : Queue file corruption inode 57061
> >Courierd : Queue file corruption inode ...
> >Courierd : Queue file corruption inode ... 
> >
> >in syslog.
> 
> The mail queue is inode-based.  When you restore, the mail queue files are 
> restored to different inodes. 
> 
> -- 
> Sam 
> 
> 
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to