Rsync Error


koz97

Recommended Posts

Hi Guys,

 

I am currently using an rsync script on my UNRAID server to copy some files off it to another server on my network. 

 

Whilst running the script, I am receiving this error for one of the shares I am trying to copy across:

 

     rsync: mkdir "/mnt/disks/UNRAID_Backups/Rysnc/ftp" failed: No such file or directory (2)
     rsync error: error in file IO (code 11) at main.c(664) [Receiver=3.1.3]

 

The ftp folder has been created on the destination, so I am quite confused on why it is giving this error that the directory does not exist?

 

Other shares have copied across sucessfully, I am just getting this error on the 'ftp' share.

 

For reference, this is the whole rsync script that I am running:

#!/bin/bash
rsync -avzh --delete --log-file=/mnt/disks/UNRAID_Backups/Rsync-logs/Miscellaneous_log.`date '+%d_%m_%Y__%H_%M_%S'`.log /mnt/user/Miscellaneous/ /mnt/disks/UNRAID_Backups/Rsync/Miscellaneous
rsync -avzh --delete --log-file=/mnt/disks/UNRAID_Backups/Rsync-logs/ftp_log.`date '+%d_%m_%Y__%H_%M_%S'`.log /mnt/user/ftp /mnt/disks/UNRAID_Backups/Rysnc/ftp

if [ $? -eq 0 ]
then
/usr/local/emhttp/webGui/scripts/notify -s "`hostname` to BKNAS Rsync Backup complete" -d "Sync completed. `date`"
else
/usr/local/emhttp/webGui/scripts/notify -s "`hostname` to BKNAS Rsync Backup FAILED" -i "alert" -d "Sync failed. `date`"
fi  

Any help would be appreciated.

 

Cheers!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.