We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents baa3005 + 0bb0d65 commit 11df72bCopy full SHA for 11df72b
okapi/services/replicate/ReplicateCommon.php
@@ -597,8 +597,11 @@ public static function generate_fulldump()
597
598
$dumpfile_tarname = "okapi-dump.tar";
599
$dumpfilename = $dumpfile_tarname.($use_bzip2 ? ".bz2" : ".gz");
600
+
601
+ # First create empty archive; next add to them the rest of files - then tar not return any warning
602
self::execute(
- "tar --directory $dir -c".($use_bzip2 ? "j" : "z")."f $dir/$dumpfilename index.json ".implode(" ", $json_files),
603
+ "touch $dir/$dumpfilename; ".
604
+ "tar --directory $dir -c".($use_bzip2 ? "j" : "z")."f $dir/$dumpfilename --exclude=$dumpfilename .",
605
$shell_output
606
);
607
0 commit comments