pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.
Expected
Since a .bashrc could already exist, i'd like to back it up and remove it from the destination prior to linking. I'd prefer to put all backups in a specific folder to declutter my homedir.
Solution (?)
I think the backup_dir option should be appending the target stem (basename) instead of the full path.
(from discord, cc @pylang)
Describe the bug