src/stored/fd_cmds.c
static bool append_data_cmd(JCR *jcr)
{
   BSOCK *fd = jcr->file_bsock;

   Dmsg1(120, "Append data: %s", fd->msg);
   if (jcr->session_opened) {
      Dmsg1(110, "<bfiled: %s", fd->msg);
      jcr->setJobType(JT_BACKUP);
      jcr->errmsg[0] = 0;
      if (do_append_data(jcr)) {
         return true;
      } else {
         fd->suppress_error_messages(true); /* ignore errors at this point */
         fd->fsend(ERROR_append, jcr->errmsg);
      }
   } else {
      pm_strcpy(jcr->errmsg, _("Attempt to append on non-open session.\n"));
      fd->fsend(NOT_opened);
   }
   return false;
}
/*
 *   Append Data command
 *     Open Data Channel and receive Data for archiving
 *     Write the Data to the archive device
 */
Append Data command
Open Data Channel and receive Data for archiving
Write the Data to the archive device
Append Data command Open Data Channel and receive Data for archiving Write the Data to the archive device
static bool append_data_cmd(JCR *jcr)
{
   BSOCK *fd = jcr->file_bsock;
   Dmsg1(120, "Append data: %s", fd->msg);
   if (jcr->session_opened) {
      Dmsg1(110, "<bfiled: %s", fd->msg);
      jcr->setJobType(JT_BACKUP);
      jcr->errmsg[0] = 0;
      if (do_append_data(jcr)) {
         return true;
      } else {
         fd->suppress_error_messages(true); 
         fd->fsend(ERROR_append, jcr->errmsg);
      }
   } else {
      pm_strcpy(jcr->errmsg, _("Attempt to append on non-open session.\n"));
      fd->fsend(NOT_opened);
   }
   return false;
}
static bool append_data_cmd ( JCR * jcr ) { BSOCK * fd = jcr -> file_bsock ; Dmsg1 ( 120 , " " , fd -> msg ) ; if ( jcr -> session_opened ) { Dmsg1 ( 110 , " " , fd -> msg ) ; jcr -> setJobType ( JT_BACKUP ) ; jcr -> errmsg [ 0 ] = 0 ; if ( do_append_data ( jcr ) ) { return true ; } else { fd -> suppress_error_messages ( true ) ; fd -> fsend ( ERROR_append , jcr -> errmsg ) ; } } else { pm_strcpy ( jcr -> errmsg , _ ( " \n " ) ) ; fd -> fsend ( NOT_opened ) ; } return false ; }
Append Data command
     Open Data Channel and receive Data for archiving
     Write the Data to the archive device
Append Data command Open Data Channel and receive Data for archiving Write the Data to the archive device
/* ignore errors at this point */