I am trying to backup some drives mounted under /mnt to a personal backup server.
I keep getting this error:
koen@Koen-Desktop:~$ rsync -vrlzHPh --exclude='*Private' -e ssh /mnt/ firstname.lastname@example.org:/home/backup
sending incremental file list
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: mkdir "/home/backup" failed: Permission denied (13)
rsync error: error in file IO (code 11) at main.c(605) [Receiver=3.0.9]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
/home/backup is the mountpoint of an external usb-drive on the server. permissions seems to be correct. (i know it is not secure, but the server will only be turned on when i make a backup, so it does not really matter)
On the server:
koen@koen-server:~$ ls -lh /home/koen/
drwxrwxrwx 2 koen koen 760K jul 24 17:50 backup
drwxr-xr-x 2 koen koen 4,0K jul 23 12:12 test
koen@koen-server:~$ ls -alh /home/koen/backup/
drwxrwxrwx 2 koen koen 760K jul 24 17:50 .
drwxr-xr-x 8 koen koen 4,0K jul 23 12:12 ..
any idea why this is going wrong?