X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FLang%2Fen.pm;h=2a417bc32487bd7e38b98dcb08492ae27143b3f1;hp=5b26015f115eea9afe3790f4f75c2adff7b48f28;hb=a7e968ce327855f2ba2624ca8517069a936c9b5b;hpb=7dee89bfce659051d486cc66515bb7f22bbc4f09 diff --git a/lib/BackupPC/Lang/en.pm b/lib/BackupPC/Lang/en.pm index 5b26015..2a417bc 100644 --- a/lib/BackupPC/Lang/en.pm +++ b/lib/BackupPC/Lang/en.pm @@ -1,11 +1,12 @@ #!/bin/perl -T #my %lang; - #use strict; # -------------------------------- +$Lang{Start_Archive} = "Start Archive"; +$Lang{Stop_Dequeue_Archive} = "Stop/Dequeue Archive"; $Lang{Start_Full_Backup} = "Start Full Backup"; $Lang{Start_Incr_Backup} = "Start Incr Backup"; $Lang{Stop_Dequeue_Backup} = "Stop/Dequeue Backup"; @@ -13,6 +14,44 @@ $Lang{Restore} = "Restore"; # ----- +$Lang{Only_privileged_users_can_view_admin_options} = "Only privileged users can view admin options."; +$Lang{H_Admin_Options} = "BackupPC Server: Admin Options"; +$Lang{Admin_Options} = "Admin Options"; +$Lang{Admin_Options_Page} = < +\${h1("Server Control")} +
+ +
Stop the server: +
Reload the server configuration: +
+
+\${h1("Server Configuration")} + +EOF +$Lang{Unable_to_connect_to_BackupPC_server} = "Unable to connect to BackupPC server", + "This CGI script (\$MyURL) is unable to connect to the BackupPC" + . " server on \$Conf{ServerHost} port \$Conf{ServerPort}. The error" + . " was: \$err.", + "Perhaps the BackupPC server is not running or there is a " + . " configuration error. Please report this to your Sys Admin."; +$Lang{Admin_Start_Server} = < +The BackupPC server at \$Conf{ServerHost} port \$Conf{ServerPort} +is not currently running (maybe you just stopped it, or haven't yet started it).
+Do you want to start it? + + + +EOF + +# ----- + $Lang{H_BackupPC_Server_Status} = "BackupPC Server Status"; $Lang{BackupPC_Server_Status}= < The servers PID is \$Info{pid}, on host \$Conf{ServerHost}, version \$Info{Version}, started at \$serverStartTime.
  • This status was generated at \$now. +
  • The configuration was last loaded at \$configLoadTime.
  • PCs will be next queued at \$nextWakeupTime.
  • Other info:
      @@ -40,8 +80,8 @@ $Lang{BackupPC_Server_Status}= < - - +
      Host
      + @@ -55,8 +95,8 @@ $Lang{BackupPC_Server_Status}= < -
      Host Type User Start Time
      - +
      Host
      + @@ -69,12 +109,13 @@ EOF # -------------------------------- $Lang{BackupPC__Server_Summary} = "BackupPC: Server Summary"; +$Lang{BackupPC__Archive} = "BackupPC: Archive"; $Lang{BackupPC_Summary}=< This status was generated at \$now. -

      +

      \${h2("Hosts with good Backups")}

      @@ -85,8 +126,9 @@ There are \$hostCntGood hosts that have been backed up, for a total of:

    • \$incrTot incr backups of total size \${incrSizeTot}GB (prior to pooling and compression). -
    • Host Type User Last Try
      - +

      +
      Host
      + @@ -98,14 +140,13 @@ There are \$hostCntGood hosts that have been backed up, for a total of: \$strGood
      Host User #Full Full Age/days Last attempt
      -

      - +

      \${h2("Hosts with no Backups")}

      There are \$hostCntNone hosts with no backups.

      - - +
      Host
      + @@ -119,6 +160,91 @@ There are \$hostCntNone hosts with no backups.
      Host User #Full Full Age/days
      EOF +$Lang{BackupPC_Archive}=< + + + +There are \$hostCntGood hosts that have been backed up for a total size of \${fullSizeTot}GB +

      +

      + + + +
      + + + + +\$strGood +\$checkAllHosts +
      Host User Backup Size
      +
      +

      + + +EOF + +$Lang{BackupPC_Archive2}=< +\$HostListStr +

    + +\$hiddenStr + + + + + + + + + + + + + + + + + + + + + + +
    Archive Location/Device
    CompressionNone
    + gzip
    + bzip2
    Number of Parity Files
    Split output into:Megabytes
    +EOF + # ----------------------------------- $Lang{Pool_Stat} = <Pool is \${poolSize}GB comprising \$info->{"\${name}FileCnt"} files @@ -181,38 +307,42 @@ EOF # -------------------------------- $Lang{Only_privileged_users_can_view_queues_} = "Only privileged users can view queues."; # -------------------------------- +$Lang{Only_privileged_users_can_archive} = "Only privileged users can Archive."; +# -------------------------------- $Lang{BackupPC__Queue_Summary} = "BackupPC: Queue Summary"; # -------------------------------- $Lang{Backup_Queue_Summary} = < +

    \${h2("User Queue Summary")}

    The following user requests are currently queued: - - +

    +
    Host
    + \$strUser
    Host Req Time User
    -

    +

    \${h2("Background Queue Summary")}

    The following background requests are currently queued: - - +

    +
    Host
    + \$strBg
    Host Req Time User
    -

    - +

    \${h2("Command Queue Summary")}

    The following command requests are currently queued: - - +

    +
    Host
    + @@ -241,8 +371,8 @@ $Lang{BackupPC__Log_File_History} = "BackupPC: Log File History"; $Lang{Log_File_History__hdr} = < -
    Host Req Time User Command
    - +
    File
    + \$str @@ -253,8 +383,8 @@ EOF $Lang{Recent_Email_Summary} = < -
    File Size Modification time
    - +
    Recipient
    + @@ -269,25 +399,26 @@ $Lang{Browse_backup__num_for__host} = "BackupPC: Browse backup \$num for \$host" # ------------------------------ $Lang{Restore_Options_for__host} = "BackupPC: Restore Options for \$host"; $Lang{Restore_Options_for__host2} = < You have selected the following files/directories from share \$share, backup number #\$num:
      \$fileListStr
    -

    +

    You have three choices for restoring these files/directories. Please select one of the following options. -

    +

    \${h2("Option 1: Direct Restore")}

    You can start a restore that will restore these files directly onto \$host. -

    +

    Warning: any existing files that match the ones you have selected will be overwritten! - - +

    + @@ -296,8 +427,17 @@ selected will be overwritten!
    Recipient Host Time Subject
    - +
    Restore the files to host + + + Search for available shares
    Restore the files to share +

    Warning: depending upon which files/directories you have selected, this archive might be very very large. It might take many minutes to create and transfer the archive, and you will need enough local disk space to store it. -

    +

    @@ -352,7 +492,7 @@ Archive::Zip is not installed so you will not be able to download a zip archive. Please ask your system adminstrator to install Archive::Zip from www.cpan.org. -

    +

    EOF @@ -363,12 +503,12 @@ $Lang{Option_3__Download_Zip_archive} = < +

    Warning: depending upon which files/directories you have selected, this archive might be very very large. It might take many minutes to create and transfer the archive, and you will need enough local disk space to store it. -

    +

    @@ -424,6 +564,13 @@ Reply from server was: \$reply Go back to \$hostDest home page. EOF +$Lang{BackupPC_Archive_Reply_from_server} = < +Reply from server was: \$reply +EOF + + # ------------------------- $Lang{Host__host_Backup_Summary} = "BackupPC: Host \$host Backup Summary"; @@ -434,7 +581,7 @@ $Lang{Host__host_Backup_Summary2} = < \$statusStr - +

    \${h2("User Actions")}

    @@ -443,12 +590,13 @@ $Lang{Host__host_Backup_Summary2} = < - +

    \${h2("Backup Summary")}

    Click on the backup number to browse and restore backup files. - - +

    +
    Backup#
    + @@ -461,11 +609,12 @@ Click on the backup number to browse and restore backup files.

    \$restoreStr - +

    +

    \${h2("Xfer Error Summary")} -

    -

    Backup# Type Filled Start Date
    - +

    +
    Backup#
    + @@ -475,20 +624,21 @@ Click on the backup number to browse and restore backup files. \$errStr
    Backup# Type View #Xfer errs
    -

    +

    \${h2("File Size/Count Reuse Summary")}

    Existing files are those already in the pool; new files are those added to the pool. Empty files and SMB errors aren\'t counted in the reuse and new counts. - - +

    +
    + - + @@ -501,18 +651,19 @@ Empty files and SMB errors aren\'t counted in the reuse and new counts. \$sizeStr
    Totals Existing Files New Files
    Backup# Type #Files
    -

    +

    \${h2("Compression Summary")}

    Compression performance for files already in the pool and newly compressed files. - - +

    +
    + - + @@ -524,7 +675,30 @@ compressed files. \$compStr
    Existing Files New Files
    Backup#
    Backup# Type Comp Level Size/MB
    +

    +EOF + +$Lang{Host__host_Archive_Summary} = "BackupPC: Host \$host Archive Summary"; +$Lang{Host__host_Archive_Summary2} = < +\$warnStr +

      +\$statusStr +
    + +\${h2("User Actions")} +

    +

    + + + + +
    + + +\$ArchiveStr + EOF # ------------------------- @@ -568,13 +742,21 @@ $Lang{Backup_browse_for__host} = < +
    + + + +
    • You are browsing backup #\$num, which started around \$backupTime (\$backupAge days ago), \$filledBackup +
    • Enter directory:
    • Click on a directory below to navigate into that directory, -
    • Click on a file below to restore that file. +
    • Click on a file below to restore that file, +
    • You can view the backup history of the current directory.
    +
    \${h2("Contents of \${EscHTML(\$dirDisplay)}")}
    @@ -584,18 +766,15 @@ $Lang{Backup_browse_for__host} = <
    - +
    -
    \$dirStr
    -
    - EOF +$Lang{checkAllHosts} = < +EOF + $Lang{fileHeader} = < + - + EOF @@ -847,15 +1093,15 @@ $Lang{This_display_is_merged_with_backup} = < Visit this directory in backup #\$otherDirs. +
  • Select the backup you wish to view: EOF $Lang{Restore_Summary} = < Click on the restore number for more details. -
  • - +
    \$fileHeader \$topCheckAll \$fileStr @@ -607,45 +786,111 @@ $Lang{Backup_browse_for__host} = < --> -
    EOF +# ------------------------------ +$Lang{DirHistory_backup_for__host} = "BackupPC: Directory backup history for \$host"; + +# +# These two strings are used to build the links for directories and +# file versions. Files are appended with a version number. +# +$Lang{DirHistory_dirLink} = "dir"; +$Lang{DirHistory_fileLink} = "v"; + +$Lang{DirHistory_for__host} = < +This display shows each unique version of files across all +the backups: +
      +
    • Click on a backup number to return to the backup browser, +
    • Click on a directory link (\$Lang->{DirHistory_dirLink}) to navigate + into that directory, +
    • Click on a file version link (\$Lang->{DirHistory_fileLink}0, + \$Lang->{DirHistory_fileLink}1, ...) to download that file, +
    • Files with the same contents between different backups have the same + version number, +
    • Files or directories not present in a particular backup have an + empty box. +
    • Files shown with the same version might have different attributes. + Select the backup number to see the file attributes. +
    + +\${h2("History of \${EscHTML(\$dirDisplay)}")} + +
    + +\$backupNumStr +\$backupTimeStr +\$fileStr +
    Backup number
    Backup time
    +EOF + # ------------------------------ $Lang{Restore___num_details_for__host} = "BackupPC: Restore #\$num details for \$host"; $Lang{Restore___num_details_for__host2 } = < + + + + + + + + + + + + + + + + + + + +
    Number \$Restores[\$i]{num}
    Requested by \$RestoreReq{user}
    Request time \$reqTime
    Result \$Restores[\$i]{result}
    Error Message \$Restores[\$i]{errorMsg}
    Source host \$RestoreReq{hostSrc}
    Source backup num \$RestoreReq{num}
    Source share \$RestoreReq{shareSrc}
    Destination host \$RestoreReq{hostDest}
    Destination share \$RestoreReq{shareDest}
    Start time \$startTime
    Duration \$duration min
    Number of files \$Restores[\$i]{nFiles}
    Total size \${MB} MB
    Transfer rate \$MBperSec MB/sec
    TarCreate errors \$Restores[\$i]{tarCreateErrs}
    Xfer errors \$Restores[\$i]{xferErrs}
    Xfer log file +View, +Errors +
    +

    +\${h1("File/Directory list")} +

    + + +\$fileListStr +
    Original file/dirRestored to
    +EOF + +# ------------------------------ +$Lang{Archive___num_details_for__host} = "BackupPC: Archive #\$num details for \$host"; + +$Lang{Archive___num_details_for__host2 } = < - - + + - - - - - - - + + - - - - -
    Number \$Restores[\$i]{num}
    Requested by \$RestoreReq{user}
    Number \$Archives[\$i]{num}
    Requested by \$ArchiveReq{user}
    Request time \$reqTime
    Result \$Restores[\$i]{result}
    Error Message \$Restores[\$i]{errorMsg}
    Source host \$RestoreReq{hostSrc}
    Source backup num \$RestoreReq{num}
    Source share \$RestoreReq{shareSrc}
    Destination host \$RestoreReq{hostDest}
    Destination share \$RestoreReq{shareDest}
    Result \$Archives[\$i]{result}
    Error Message \$Archives[\$i]{errorMsg}
    Start time \$startTime
    Duration \$duration min
    Number of files \$Restores[\$i]{nFiles}
    Total size \${MB} MB
    Transfer rate \$MBperSec MB/sec
    TarCreate errors \$Restores[\$i]{tarCreateErrs}
    Xfer errors \$Restores[\$i]{xferErrs}
    Xfer log file -View, -Errors +View, +Errors

    -\${h1("File/Directory list")} +\${h1("Host list")}

    - -\$fileListStr + +\$HostListStr
    Original file/dirRestored to
    HostBackup Number
    EOF @@ -659,7 +904,7 @@ $Lang{BackupPC__Lib__new_failed__check_apache_error_log} = "BackupPC::Lib->new f $Lang{Wrong_user__my_userid_is___} = "Wrong user: my userid is \$>, instead of \$uid" . "(\$Conf{BackupPCUser})\n"; -$Lang{Only_privileged_users_can_view_PC_summaries} = "Only privileged users can view PC summaries."; +# $Lang{Only_privileged_users_can_view_PC_summaries} = "Only privileged users can view PC summaries."; $Lang{Only_privileged_users_can_stop_or_start_backups} = "Only privileged users can stop or start backups on" . " \${EscHTML(\$host)}."; @@ -680,6 +925,8 @@ $Lang{Only_privileged_users_can_restore_backup_files} = "Only privileged users c $Lang{Bad_host_name} = "Bad host name \${EscHTML(\$host)}"; $Lang{You_haven_t_selected_any_files__please_go_Back_to} = "You haven\'t selected any files; please go Back to" . " select some files."; +$Lang{You_haven_t_selected_any_hosts} = "You haven\'t selected any hosts; please go Back to" + . " select some hosts."; $Lang{Nice_try__but_you_can_t_put} = "Nice try, but you can\'t put \'..\' in any of the file names"; $Lang{Host__doesn_t_exist} = "Host \${EscHTML(\$In{hostDest})} doesn\'t exist"; $Lang{You_don_t_have_permission_to_restore_onto_host} = "You don\'t have permission to restore onto host" @@ -692,17 +939,12 @@ $Lang{Empty_host_name} = "Empty host name"; $Lang{Unknown_host_or_user} = "Unknown host or user \${EscHTML(\$host)}"; $Lang{Only_privileged_users_can_view_information_about} = "Only privileged users can view information about" . " host \${EscHTML(\$host)}." ; +$Lang{Only_privileged_users_can_view_archive_information} = "Only privileged users can view archive information."; $Lang{Only_privileged_users_can_view_restore_information} = "Only privileged users can view restore information."; $Lang{Restore_number__num_for_host__does_not_exist} = "Restore number \$num for host \${EscHTML(\$host)} does" . " not exist."; - -$Lang{Unable_to_connect_to_BackupPC_server} = "Unable to connect to BackupPC server", - "This CGI script (\$MyURL) is unable to connect to the BackupPC" - . " server on \$Conf{ServerHost} port \$Conf{ServerPort}. The error" - . " was: \$err.", - "Perhaps the BackupPC server is not running or there is a " - . " configuration error. Please report this to your Sys Admin."; - +$Lang{Archive_number__num_for_host__does_not_exist} = "Archive number \$num for host \${EscHTML(\$host)} does" + . " not exist."; $Lang{Can_t_find_IP_address_for} = "Can\'t find IP address for \${EscHTML(\$host)}"; $Lang{host_is_a_DHCP_host} = <Last error is \"\${EscHTML(\$StatusHost{error})}\" +

  • Last error is \"\${EscHTML(\$StatusHost{error})}\". EOF # ------ @@ -818,23 +1056,31 @@ EOF $Lang{tryIP} = " and \$StatusHost{dhcpHostIP}"; -$Lang{Host_Inhost} = "Host \$In{host}"; +# $Lang{Host_Inhost} = "Host \$In{host}"; $Lang{checkAll} = <
  • +
     Select all - +
    + Select all + + +
    Name
    Name Type Mode # Size Mod time Date modified
    - +
    Restore#
    + @@ -869,6 +1115,21 @@ Click on the restore number for more details.

    EOF +$Lang{Archive_Summary} = < +Click on the archive number for more details. +

    Restore# Result Start Date Dur/mins
    + + + + + +\$ArchiveStr +
    Archive# Result Start Date Dur/mins
    +

    +EOF + $Lang{BackupPC__Documentation} = "BackupPC: Documentation"; $Lang{No} = "no"; @@ -882,8 +1143,9 @@ EOF #$Lang{on} = "on"; $Lang{off} = "off"; -$Lang{full} = "full"; -$Lang{incremental} = "incr"; +$Lang{backupType_full} = "full"; +$Lang{backupType_incr} = "incr"; +$Lang{backupType_partial} = "partial"; $Lang{failed} = "failed"; $Lang{success} = "success"; @@ -903,8 +1165,10 @@ $Lang{Reason_backup_done} = "backup done"; $Lang{Reason_restore_done} = "restore done"; $Lang{Reason_nothing_to_do} = "nothing to do"; $Lang{Reason_backup_failed} = "backup failed"; +$Lang{Reason_restore_failed} = "restore failed"; $Lang{Reason_no_ping} = "no ping"; $Lang{Reason_backup_canceled_by_user} = "backup canceled by user"; +$Lang{Reason_restore_canceled_by_user} = "restore canceled by user"; # --------- # Email messages