attic icon indicating copy to clipboard operation
attic copied to clipboard

Let attic take a remote path option for cases where attic cannot be installed in standard places (like rsync, git, etc)

Open sergiocallegari opened this issue 9 years ago • 3 comments

Most programs that support remote operation via ssh requiring a server on the remote host, let one specify the path of the remote host.

For instance, rsync supports the --rsync-path=PROGRAM to specify the rsync to run on remote machine. Git has something similar for the full path of git-upload-pack on the remote host.

Conversely, in attic, the remote path seems to be hardwired to attic, which creates issues whenever attic cannot be installed in standard places.

sergiocallegari avatar Jul 29 '15 15:07 sergiocallegari

could this be solved by adjusting the remote user's PATH?

ThomasWaldmann avatar Jul 29 '15 18:07 ThomasWaldmann

No, unfortunately it cannot and this is why other software using a similar ssh based remote access have an option for the full path of the remote server.

Issue is that when ssh is passed a command, the command is executed on the remote host /instead/ of a login shell. This means that the command is executed in the system default environment, without the option to personalize the path or anything in .bashrc. And I think this is done for security reasons.

sergiocallegari avatar Jul 29 '15 20:07 sergiocallegari

@sergiocallegari ok, understood! I'll assimilate this issue. :)

ThomasWaldmann avatar Jul 29 '15 21:07 ThomasWaldmann