I've got a problem with my previously working backup-script.
In short it simply calls duplicity and orders it to copy files via rsync to a NAS.
However when I now start my script, it returns always a permission denied Error.
I've narrowed it down to rsync not working as I thought it would.
In my test setup I now execute the following code:
rsync -av test/ remoteuser@nas.domain.com
What happens is that in the current directory a folder called "remoteuser@nas.domain.com" is created and rsync syncs the files from test into that new folder. If I append the target-directory on the remote (...:/home/remoteuser/backup) it returns the previously mentioned "Permission denied" error
Permission denied, please try again.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.1]
Connection via ssh to my nas works without a problem btw.