DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦80f60dea4⟧ TextFile

    Length: 1934 (0x78e)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 

TextFile

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;