Skip to content

Commit

Permalink
Fix path issues with the backup script and rotating remote backups.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Sep 28, 2010
1 parent 6cdba63 commit 4d8558f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wre/sbin/backup.pl
Expand Up @@ -185,7 +185,7 @@ sub copyToRemote {

# get old versions
if ($rotations > 1) {
my $cmd = $config->getRoot('/prereqs/bin/lftp').' -e "ls; exit" -u '.$user.','.$pass.' '.$protocol.'://'.$host.$path.'/';
my $cmd = $config->getRoot('/prereqs/bin/lftp').' -e "cd '.$path.'; ls; exit" -u '.$user.','.$pass.' '.$protocol.'://'.$host.'/';
my @dirs = ();
if (open my $pipe, $cmd.'|') {
while (my $line = <$pipe>) {
Expand Down

0 comments on commit 4d8558f

Please sign in to comment.