OS5 broke remote backups on EX2 Ultra

@electronicsuk @pym Thanks for posting the issue with Remote Backup job failure.
If you’re interested, here are some steps to help troubleshoot the issue assuming the Remote Backup Job starts the rsync process and the rsync fails and captures logging.

NOTE: We’re aware of the double directory path issue created on the destination and working on a fix in a future Remote Backup app release.

TROUBLESHOOTING REMOTE BACKUPS:

  1. Enable SSH and Log into the My Cloud

  2. Start a Remote Backup job

  3. Run the ‘ps -ef | grep sync’ command to get the backup job information

root@MyCloudPR2100 ~ # ps -ef |grep sync
386 root 9388 S rsyncmd -b -r PR2100
453 root 40748 S /usr/sbin/rsync --job-name=PR2100 -aHq8 -e /usr/bin/sshpass -p XXXXXX ssh -ax -o StrictHostKeyChecking=no -o HostKeyAlgorithms=+ssh-dss -c aes128-ctr -l sshd --delete --timeout=600 --exclude .AppleDouble --exclude .AppleDB --exclude .DS_Store --exclude .bin --exclude .AppleDesktop --exclude Network Trash Folder --exclude .!@#$recycle --exclude lost+found --exclude Nas_Prog --exclude Ajaxpf --exclude .systemfile --exclude P2P --exclude aMule --exclude .!@$mmc --exclude .wdmc /mnt/HD/HD_a2/Public sshd@192.168.0.20:/mnt/HD/HD_a2/Backups/WNAP26440012_MyCloudPR2100/PR2100/Public/ --dump-size --dry-run
454 root 2580 S /usr/bin/sshpass -p zzzzzzzzzzzz ssh -ax -o StrictHostKeyChecking=no -o HostKeyAlgorithms=+ssh-dss -c aes128-ctr -l sshd -l sshd 192.168.0.20 rsync --server -nlHogDtpre.iLsfxC --timeout=600 --delete . /mnt/HD/HD_a2/Backups/WNAP26440012_MyCloudPR2100/PR2100/Public/
455 root 8984 S ssh -ax -o StrictHostKeyChecking=no -o HostKeyAlgorithms=+ssh-dss -c aes128-ctr -l sshd -l sshd 192.168.0.20 rsync --server -nlHogDtpre.iLsfxC --timeout=600 --delete . /mnt/HD/HD_a2/Backups/WNAP26440012_MyCloudPR2100/PR2100/Public/
1114 root 4704 S grep sync

  1. Stop the Remote Backup Job or let it fail

  2. Replace the VARIABLES in the command listed below with the information from your backup jobs output

PASSWORD: your remote NAS SSH password
JOBNAME: the name of your Remote Backup Job (PR2100)
PATH_TO_SOURCE_SHARE: absolute path to the share from the sync job output (/mnt/HD/HD_a2/Public)
DEST_IP_ADDRESS: the IP Address of the remote NAS (192.168.0.20)
PATH_TO_DESTINATION_SHARE: the absolute path to the destination share (/mnt/HD/HD_a2/Backups/WNAP26440012_MyCloudPR2100/PR2100/Public/)

SSHPASS=‘SSH_PASSWORD’ /usr/sbin/rsync --job-name=‘JOBNAME’ -vvvvaHq8 -e ‘/usr/bin/sshpass -e ssh -ax -o StrictHostKeyChecking=no -o HostKeyAlgorithms=+ssh-dss -c aes128-ctr -l sshd’ --delete --timeout=600 --exclude ‘.AppleDouble’ --exclude ‘.AppleDB’ --exclude ‘.DS_Store’ --exclude ‘.bin’ --exclude ‘.AppleDesktop’ --exclude ‘Network Trash Folder’ --exclude ‘.!@#$recycle’ --exclude ‘lost+found’ --exclude ‘Nas_Prog’ --exclude ‘Ajaxpf’ --exclude ‘.systemfile’ --exclude ‘P2P’ --exclude ‘aMule’ --exclude ‘.!@$mmc’ --exclude ‘.wdmc’ ‘PATH_TO_SOURCE_SHARE’ ‘sshd@DEST_IP_ADDRESS:PATH_TO_DESTINATION_SHARE’ --log-file=/shares/Public/backup.log &

  1. Copy and run the command on the My Cloud using SSH using your job details

EXAMPLE COMMAND:
SSHPASS=‘YOUR_SSH_PASSWORD’ /usr/sbin/rsync --job-name=‘PR2100’ -vvvvaHq8 -e ‘/usr/bin/sshpass -e ssh -ax -o StrictHostKeyChecking=no -o HostKeyAlgorithms=+ssh-dss -c aes128-ctr -l sshd’ --delete --timeout=600 --exclude ‘.AppleDouble’ --exclude ‘.AppleDB’ --exclude ‘.DS_Store’ --exclude ‘.bin’ --exclude ‘.AppleDesktop’ --exclude ‘Network Trash Folder’ --exclude ‘.!@#$recycle’ --exclude ‘lost+found’ --exclude ‘Nas_Prog’ --exclude ‘Ajaxpf’ --exclude ‘.systemfile’ --exclude ‘P2P’ --exclude ‘aMule’ --exclude ‘.!@$mmc’ --exclude ‘.wdmc’ ‘/mnt/HD/HD_a2/Public’ ‘sshd@192.168.0.20:/mnt/HD/HD_a2/Backups’ --log-file=/shares/Public/backup.log &

  1. Use the ‘cat’ and or ‘tail’ command to see the output

    cat /shares/Public/backup.log
    tail /shares/Public/backup.log

1 Like