Follow symlinks when making backup

Is it possible to set up the Backups module of Virtualmin to follow symlinks? I have part of my web site pointing to a mounted drive via a symlink and currently it doesn’t follow and backup those files.

Thanks!

Hello,

Virtualmin uses tar to make backups. By default, tar does not dereference symbolic links, meaning it archives the link itself rather than the file or directory it points to.

Luckily, you can change this behavior by passing to tar additional -h or --dereference option with Additional parameters to tar command in System Settings ⇾ Virtualmin Configuration: Backup and restore page.

2 Likes

Worked perfectly, thank you.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.