[slbackup-commit] CVS update: slbackup/src slbackup-cron

finnarne-guest at alioth.debian.org finnarne-guest at alioth.debian.org
Tue Jan 29 14:48:17 UTC 2008


  User: finnarne-guest
  Date: 08/01/29 14:48:17

  Modified:    src      slbackup-cron
  Log:
  Encapsulate arguments/locations for rdiff-backup (Closes: #463087)
  
  Revision  Changes    Path
  1.22                 slbackup/src/slbackup-cron
  
  Index: slbackup-cron
  ===================================================================
  RCS file: /cvsroot/slbackup/slbackup/src/slbackup-cron,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- slbackup-cron	22 Dec 2007 18:00:10 -0000	1.21
  +++ slbackup-cron	29 Jan 2008 14:48:17 -0000	1.22
  @@ -298,12 +298,12 @@
   	    # there is more than one location to exclude (=> exclude
   	    # is an array)
   	    for my $loc (@{$config->{client}->{$key}->{exclude}}) {
  -		$execstr .= "--exclude $loc ";
  +		$execstr .= "--exclude '$loc' ";
   	    }
   	} else {
   	    # there is only one location to exclude (=> exclude is a string)
   	    my $loc = $config->{client}->{$key}->{exclude};
  -	    $execstr .= "--exclude $loc ";
  +	    $execstr .= "--exclude '$loc' ";
   	}
       }
       
  @@ -323,12 +323,12 @@
       } elsif (ref ($config->{client}->{$key}->{location}) eq "ARRAY") {
   	# there are more than one location => location is an array
   	for my $loc (@{$config->{client}->{$key}->{location}}) {
  -	    $execstr .= "--include $loc ";
  +	    $execstr .= "--include '$loc' ";
   	}
       } else {
   	# there is only one location => location is a string
   	my $loc = $config->{client}->{$key}->{location};
  -	$execstr .= "--include $loc ";
  +	$execstr .= "--include '$loc' ";
       }
   
       # exclude everything else
  
  
  



More information about the slbackup-commit mailing list