BookStackApp / system-cli

MIGRATED TO CODEBERG -- A simple CLI to manage BookStack instances
https://codeberg.org/bookstack/system-cli
MIT License
5 stars 0 forks source link

CLI fails to backup files when sub-folders are symlinked #10

Closed ssddanbrown closed 1 year ago

ssddanbrown commented 1 year ago

At least that's what I think is going on. Occurs on linuxserver image. CLI targets storage/uploads, but storage/uploads/{files,images} are the ones symlinked.

Likely need to use realpath on this line: https://github.com/BookStackApp/system-cli/blob/6066bc3c760e712549f8f3ac0e168ce5cd8a4670/src/Commands/BackupCommand.php#L166