Update of /cvsroot/bobs/bobs/inc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2485/inc
Modified Files:
class_backup.php
Log Message:
Use rsync compression.
Index: class_backup.php
===================================================================
RCS file: /cvsroot/bobs/bobs/inc/class_backup.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- class_backup.php 2 Apr 2004 19:59:05 -0000 1.10
+++ class_backup.php 29 May 2004 23:43:29 -0000 1.11
@@ -32,7 +32,7 @@
// ssh only works with pathes and not share on the remote server
var $rsync_ssh_user = 'root'; // 'root' is default
// user used for connection by ssh
- // additional a public (on remote server)/ private key (on backup server)
+ // additional a public (on remote server)/ private key (on backup server)
// pair must be given
var $smb_share = ''; // name of the smb share
@@ -172,7 +172,7 @@
}
- /* classic way -> rsync using an daemon
+ /* classic way -> rsync using an daemon
* which has to run !!! on the remote side (backuped side)
*/
function rsync_backup ($exclude_from) {
@@ -192,7 +192,7 @@
*/
// put together the script we need to execute
- $backupcommand = 'rsync --archive --verbose --delete --backup ' ;
+ $backupcommand = 'rsync --archive --verbose --delete --backup --compress' ;
$backupcommand .= $exclude_from;
$backupcommand .= '--backup-dir="' . $this->incomingdir . '/' . $this->server . '/' . $this->share . '/"' ;
@@ -238,7 +238,7 @@
*/
// put together the script we need to execute
- $backupcommand = 'rsync -e ssh --archive --verbose --delete --backup ' ;
+ $backupcommand = 'rsync -e ssh --archive --verbose --delete --backup --compress' ;
$backupcommand .= $exclude_from;
$backupcommand .= '--backup-dir="' . $this->incomingdir . '/' . $this->server . '/' . $this->share . '/"' ;
@@ -313,7 +313,7 @@
// rsync if true
// exit if false
- $backup_cmd = 'rsync --archive --delete --backup --backup-dir="' . $this->incomingdir . '/' . $this->server . '/' . $this->share . '" ';
+ $backup_cmd = 'rsync --archive --verbose --delete --backup --compress --backup-dir="' . $this->incomingdir . '/' . $this->server . '/' . $this->share . '" ';
$backup_cmd .= ' "' . $this->processdir . '/mounts/' . $this->server . '/' . $this->share . '/" "' . $this->backupdir . '/' . $this->server . '/' . $this->share . '/"';
$t->define (array('content' => $this->siteroot . '/inc/templates/backup_smb_backup_files.sh'));
@@ -398,7 +398,7 @@
// rsync if true
// exit if false
- $backup_cmd = 'rsync --archive --delete --backup --backup-dir="' . $this->incomingdir . '/' . $this->server . '/' . $this->share . '" ';
+ $backup_cmd = 'rsync --archive --verbose --delete --backup --compress --backup-dir="' . $this->incomingdir . '/' . $this->server . '/' . $this->share . '" ';
$backup_cmd .= ' "' . $this->processdir . '/mounts/' . $this->server . '/' . $this->share . '/" "' . $this->backupdir . '/' . $this->server . '/' . $this->share . '/"' . "\n";
$t->define (array('content' => $this->siteroot . '/inc/templates/backup_nfs_backup_files.sh'));
|