Ergon: File duplication on different tapes - mfdupli

The mfdupli command allows obtaining a file copy with the assurance that it will be migrated to a different tape than that which stores the original file. The goal is to protect your data in case of possible damage to a tape. Each tape stores up to 2.5 TB or an average of 50 000 files.

The duplicated file has the same characterisics as the original file:

  • It has a lifespan of one year.
  • Its size is included in the quotas.
  • It is managed by using the classic UNIX commands.
  • It is recommended that the original file and the copy remain identical: If the original file is changed (renamed, modified, deleted or has the expiration date changed), the copy should equally be updated at the same time.

You can regard the mfdupli command as a simple cp which assures that the copy will be located on a different tape than the original file.

The mfdupli command has the following characteristics:

  • It is not synchronous: The copy is not actually made until some hours later.
  • The file copies are located in the $DUPLI directory (called $HOME/DUPLI) in order to distinguish them from the originals.
  • It cannot overwrite files with the same name which already exist in $DUPLI.

Using the mfdupli command from Ergon

# To duplicate a file
ergon-rlab001 : mfdupli fic fic
+ dupli /arch/home/idris/lab/rlab001/fic /linkhome/idris/lab/rlab001/DUPLI/fic 
+++ 1 duplications ; 0 entrees dupli existantes ; 1 mkdir +++

# To duplicate a file tree
ergon-rlab001 : mfdupli -r rep rep
+ dupli /arch/home/idris/lab/rlab001/rep//fic1 /linkhome/idris/lab/rlab001/DUPLI/rep//fic1
+++ 1 duplications ; 0 entrees dupli existantes ; 2 mkdir +++

# To view duplications in process
ergon-rlab001 : mfdupli -l
/linkhome/idris/lab/rlab001/DUPLI/copie -> /arch/home/idris/lab/rlab001/original

Using the mfdupli command from Adapp

# The following **must** be done before using the mfdupli command
adapp-rlab001 : cd $ARCHIVE
adapp-rlab001 : pwd
/arch/home/idris/lab/rlab001

# To duplicate a file
adapp-rlab001 : mfdupli fic fic
+ dupli /arch/home/idris/lab/rlab001/fic /arch/home/idris/lab/rlab001/DUPLI/fic 
+++ 1 duplications ; 0 entrees dupli existantes ; 1 mkdir +++

# To duplicate a file tree
ergon-rlab001 : mfdupli -r rep rep
+ dupli /arch/home/idris/lab/rlab001/rep//fic1 /arch/home/idris/lab/rlab001/DUPLI/rep//fic1
+++ 1 duplications ; 0 entrees dupli existantes ; 2 mkdir +++

# To view duplications in process
ergon-rlab001 : mfdupli -l
/arch/home/idris/lab/rlab001/DUPLI/copie -> /arch/home/idris/lab/rlab001/original