[Eisfair] Backup-Zip Argument --rsync-path funktioniert nicht
Marcus Röckrath
marcus.roeckrath at gmx.de
So Jan 16 12:21:53 CET 2022
Hallo Matthias,
Matthias Prill wrote:
> #!/bin/bash
> echo Aufruf mit Parameter als Variable:
> tecopt=--rsync-path="sudo rsync"
> echo $tecopt
> rsync --exclude-from=/root/backup.exclude -a --delete $tecopt
> pi at 192.168.227.115:/etc/ /mnt -v
>
> Aufruf mit Parameter als Variable:
> --rsync-path=sudo rsync
> Unexpected remote arg: pi at 192.168.227.115:/etc/
> rsync error: syntax or usage error (code 1) at main.c(1512) [sender=3.2.3]
Mal vielleicht so:
echo "$tecopt"
rsync --exclude-from=/root/backup.exclude -a --delete "$tecopt"
--
Gruß Marcus
[eisfair-Team]
Mehr Informationen über die Mailingliste Eisfair