Jump to content

[SOLVED] How to: Situation needing compression during backup


blackcell

Recommended Posts

i back up my web dir using this code (Linux)

<?php
$backup_file='/backup/www/backup_www.tgz';
$dir_to_backup='/var/www/';
$command="tar -cvf $backup_file $dir_to_backup";
echo system($command);
?>

 

Scott.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.