Navigation

Search

package_create_backup

Description

Creates backup files in Packages/backups.

Syntax

void package_create_backup ([string $id])



Parameter $id

Expected type: String
Description: The ID to stick at the end of the backup package (see code). Default is 'backup'


Notes

  • Called when installing, uninstalling or upgrading a mod
  • Called from the packageInstall() function in Sources/Packages.php
  • Only called if $modSettings['package_make_backups'] is true
  • Creates a backup of your forum files in an archive with the name "YYYY-MM-DD_before_package.tar.gz" in the Packages/backups directory
View all versions of this function