DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦75089e706⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Archivate, seg_03b5e2

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



with Archive;
with Directory_Tools;
with Ftp;
with Ftp_Profile;
with Ftp_Defs;
with Profile;
procedure Archivate (The_Objects : String := "<IMAGE>";
                     Archive_On_R1000 : String := "!users.mathis.archives.";
                     Remote_Directory : String := "/home/belladone/mathis/";
                     Remote_Machine : String := "belladone";
                     Username : String := "mathis";
                     Password : String := "") is

    type Files is (Data, Index);
    type Pstring is access String;

    type File_Names is array (Files) of Pstring;

    The_R1000_Files : constant File_Names :=
       (new String'(".data"), new String'(".index"));
    The_Belladone_Files : constant File_Names :=
       (new String'("/data"), new String'("/index"));

    Name : constant String :=
       Directory_Tools.Naming.Expanded_Name (The_Objects);

begin

    Archive.Save (Objects => Name,
                  Options => "R1000",
                  Device => Archive_On_R1000,
                  Response => "<PROFILE>");

    for I in Files loop
        Ftp.Put (From_Local_File => Archive_On_R1000 & The_R1000_Files (I).all,
                 To_Remote_File => Remote_Directory &
                                      The_Belladone_Files (I).all,
                 Remote_Machine => Remote_Machine,
                 Username => Username,
                 Password => Password,
                 Account => Ftp_Profile.Account,
                 Remote_Directory => Ftp_Profile.Remote_Directory,
                 Remote_Type => Ftp_Profile.Remote_Type,
                 Append_To_File => False,
                 Transfer_Type => Ftp_Defs.Image,
                 Transfer_Mode => Ftp_Profile.Transfer_Mode,
                 Transfer_Structure => Ftp_Profile.Transfer_Structure,
                 Send_Port => Ftp_Profile.Send_Port_Enabled,
                 Response => Profile.Get);  
    end loop;
end Archivate;

E3 Meta Data

    nblk1=4
    nid=4
    hdr6=6
        [0x00] rec0=1f rec1=00 rec2=01 rec3=010
        [0x01] rec0=13 rec1=00 rec2=03 rec3=058
        [0x02] rec0=03 rec1=00 rec2=02 rec3=000
        [0x03] rec0=03 rec1=00 rec2=02 rec3=000
    tail 0x21533f44c851c8784327d 0x42a00088462060003
Free Block Chain:
  0x4: 0000  00 00 00 04 80 01 20 01 02 03 04 05 06 07 08 69  ┆               i┆