Added symlinks to CA.
This commit is contained in:
parent
d00c40ca13
commit
7b075f1b40
|
@ -117,6 +117,11 @@ sub backup2disk {
|
|||
$d =~ s,//+,/,g;
|
||||
mkdir_p($d) or die "cannot mkdir $d: $!"; # XXX
|
||||
$self->setmeta($f);
|
||||
} elsif ($f->{t} eq 'l') {
|
||||
my $l = "$self->{this_backup}/$f->{name}";
|
||||
symlink($f->{lt}, $l) or die "cannot symlink $l -> $f->{lt}: $!"; # XXX
|
||||
# $self->setmeta($f); ignore for symlinks. would need to use
|
||||
# lchown, lchmod, etc.
|
||||
} else {
|
||||
# create local copy (or insert into DB only?)
|
||||
print STDERR "ignored $_\n";
|
||||
|
@ -141,6 +146,7 @@ sub parse {
|
|||
$f->{g} = unquote($f->{g});
|
||||
$f->{acl} = unquote($f->{acl});
|
||||
$f->{m} = $1 if $f->{m} =~ /^(\d+)$/;
|
||||
$f->{lt} = unqote($f->{lt}) if defined $f->{lt};
|
||||
return $f;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue