Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ID and Password or for local-path-to-local-path #3

Open
NateEaton opened this issue Jan 9, 2025 · 2 comments
Open

Comments

@NateEaton
Copy link

Is your feature request related to a problem? Please describe.

The current rsync add-on requires SSH for syncing files. However, this creates a limitation when working with systems like Synology NAS, where only admin-group accounts can use SSH. I use a standard user ID with limited rights for security purposes, which prevents me from utilizing the add-on to sync files to my NAS. Additionally, I cannot configure the add-on for local path-to-local path rsync, such as syncing data between Home Assistant's internal storage and an external storage location like a mounted network share.

Describe the solution you'd like

I would like the add-on to support one of the following enhancements:

  1. Allow using a standard user ID and password as an alternative to SSH when configuring rsync connections.
  2. Add support for rsync operations between local paths within the Home Assistant environment, such as syncing from an internal directory to an external storage mount (e.g., /share/HomeAssistOnNAS/logs/).

For example, this could enable running a command like:

rsync -av --ignore-existing /var/log/journal/ /share/HomeAssistOnNAS/logs/

Describe alternatives you've considered

  1. Manually running rsync commands in the terminal to sync files locally, but this is not automatable or scalable.
  2. Setting up a more privileged account (e.g., admin) on the NAS to enable SSH access, but this compromises security principles and increases the risk of unauthorized access.
  3. Using other sync methods outside of the add-on, which requires more setup complexity and moves away from the convenience of integrated Home Assistant automation.

Additional context

This feature would make the add-on more versatile for users with limited SSH options, such as those using Synology NAS or other networked storage devices with similar restrictions. Supporting local path-to-path rsync would also improve usability by removing the dependency on SSH for situations where files are accessible within the local environment.

Thank you for considering this feature!

@Poeschl
Copy link
Member

Poeschl commented Jan 10, 2025

I see no issue in implementing it as a alternative method to the current ssh transfer.

So that would be basically a sync to or from a samba share? I'm not sure if its possible to connect to a already mounted share on the system. Or if the add-on needs to mount it by itself.

@NateEaton
Copy link
Author

NateEaton commented Jan 11, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants