Skip to content

"Links not supported" error when running "backup:monitor" #1367

Answered by erikn69
TobiasGasser asked this question in Q&A
Discussion options

You must be logged in to vote

Did you try V7?
I made a test for this and it's ok

/** @test */
private function createSymlinkDisk() {
    symlink($this->getDiskRootPath('local'), $this->getTempDirectory('symlink_disk'));
    config()->set('filesystems.disks', array_merge(config()->get('filesystems.disks'), [
        'symlink' => [
            'driver' => 'local',
            'root' => $this->getTempDirectory('symlink_disk'),
        ]
    ]));
    config()->set('backup.monitor_backups.0.disks', ['symlink']);
}

/** @test */
public function it_succeeds_when_destination_is_symlink()
{
    $this->createSymlinkDisk();

    $this->artisan('backup:monitor')->assertExitCode(0);

    Event::assertDispatched(HealthyBackupWasFou…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@TobiasGasser
Comment options

@erikn69
Comment options

@TobiasGasser
Comment options

Answer selected by TobiasGasser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #1299 on August 11, 2021 21:52.