crc32_file (line 66)
Calculate CRC32 for a file. Based on a function in the PHP docs.
integer
crc32_file
(PATH $filename)
create_zip_file (line 124)
Create a zip file.
mixed
create_zip_file
(array $file_array, [boolean $stream = false], [boolean $get_offsets = false])
-
array
$file_array: A list of maps (time,data/full_path,name) covering everything to zip up
-
boolean
$stream: Whether to stream the output direct to the browser
-
boolean
$get_offsets: Whether to return the tuple
zip_scan_folder (line 28)
Add a folder to the TAR archive, however only store files modifed after a threshold time. It is incremental (incremental backup), by comparing against a threshold before adding a file (threshold being time of last backup)
array
zip_scan_folder
(PATH $path, [PATH $subpath = ''])
-
PATH
$path: The full path to the folder to add
-
PATH
$subpath: The subpath relative to the path (should be left as the default '', as this is used for the recursion to distinguish the adding base path from where it's currently looking)