You are here

private function TarArchiveWriter::writeFooter in Backup and Migrate 8.4

Write a footer to mark the end of the archive.

1 call to TarArchiveWriter::writeFooter()
TarArchiveWriter::closeArchive in lib/backup_migrate_core/src/Service/TarArchiveWriter.php
This will be called when all files have been added. It gives the implementation a chance to clean up and commit the changes if needed.

File

lib/backup_migrate_core/src/Service/TarArchiveWriter.php, line 192

Class

TarArchiveWriter
Class TarArchiver.

Namespace

BackupMigrate\Core\Service

Code

private function writeFooter() {

  // ----- Write the last 0 filled block for end of archive.
  $v_binary_data = pack('a1024', '');
  $this->archive
    ->write($v_binary_data);
}