Problem (Marker File Not Found) over SSH
Hi guys Enviroment:
- NAS DS223J (source device)
- NAS DS1010+ (destination device)
I setup the nas ds223j for connect via ssh to ds1010+ with ssh-key and it works, but if i give this command without the options --rsync-path="/usr/syno/bin/rsync" the command doesn't work i need to run with this below:
rsync -avz --progress --exclude '#recycle' --rsync-path="/usr/syno/bin/rsync" /volume1/Archivio/* [email protected]:/volume1/Archivio
If i run this command on DS223J:
bash rsync-backup-to-ds1010.sh /volume1/Archivio/* [email protected]:/volume1/Archivio this is the error i get:
rsync-backup-to-ds1010: Safety check failed - the destination does not appear to be a backup folder or drive (marker file not found). rsync-backup-to-ds1010: If it is indeed a backup folder, you may add the marker file by running the following command: rsync-backup-to-ds1010: rsync-backup-to-ds1010: mkdir -p -- "/volume1/Archivio/@eaDir" ; touch "/volume1/Archivio/@eaDir/backup.marker" rsync-backup-to-ds1010:
Even if the file already exist on the destination folder as you can see:
Backupstation> pwd /volume1/Archivio/@eaDir -rwxrwxrwx 1 admin users 30 Oct 31 08:59 backup.marker
Debug on this function,
fn_run_cmd() {
if [ -n "$SSH_DEST_FOLDER_PREFIX" ]
then
eval "$SSH_CMD '$1'"
else
eval $1
fi
}
What will you see?
Maybe you will get the reason after checking the find command, its return, err-code, spaces, etc.
Hi I resolve the problem by adding this line on the script rsync_tmbackup.sh:
# Add the --rsync-path option here
CMD="$CMD --rsync-path='/usr/syno/bin/rsync'"
And the command i use for start rsync is this:
bash /volume1/script/rsync_tmbackup.sh /volume1/Archivio/ [email protected]:/volume1/Archivio
I had the same issue, but it turned out that the source simply had no ssh access to the destination (password authentication was disabled, source had no public key). Somewhat strange that the error message wasn't "permission denied (publickey)"