Zaaphod
Contributor
- Joined
- Dec 15, 2015
- Messages
- 109
I recently added some storage to my FreeNAS system. I wanted to transfer a large directory to the new dataset and I thought I would try rsync. I have never use rsync before and I'm not sure if I'm missing something.
I'm using PuTTY, I loged in to FreeNas with a user that has all permissions and used the command:
It ran for a while listing my directories and folders, but after a while, it just stopped. I waited and waited, and finally decided it had way more than enough time to advance to another file, so I hit CTRL-C
as soon as I did that, I got a whole list of errors like:
with one rsync: mkstemp listing for each file with the same failed message. Also when I looked at the new location, all the directories were created, however they were ALL empty. Apparently I was getting the errors and files were not being copied, but I couldn't see the errors until I canceled it.
I checked the permissions with ls -l as follows:
So I tried to copy the files with the commandand this worked, but I did get 5 messages like but only 5 of these, out of hundreds of directiores, and the files within seem to have copied ok, however I did notice that the timestamp on the directories with errors were todays date, not the original directory date as all the other directories were. I'm currently running to make sure all the copies are identical
I would like to figure out what is causing these errors. I had planned on using rsync to synchronize directories to removable storage for use with my laptop when I am out of town.. so rsync to the removable drive before I leave, then rsync back when I return. I would like to use something like Rsync because I do not want any of my client computers to be bothered with this task, I want it to be done on the server because it's running anyway. I'm not sure what I'm doing wrong, if I have some permission issue, or if I'm not formatting the command correctly? any advice is greatly appreciated!
I'm using PuTTY, I loged in to FreeNas with a user that has all permissions and used the command:
Code:
rsync -vah /mnt/Old /mnt/New
It ran for a while listing my directories and folders, but after a while, it just stopped. I waited and waited, and finally decided it had way more than enough time to advance to another file, so I hit CTRL-C
as soon as I did that, I got a whole list of errors like:
Code:
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(632) [sender=3.1.1] rsync: mkstemp "/mnt/New/Filename.avi.uT731z" failed: Operation not permitted (1) rsync: mkstemp "/mnt/New/Filename2.avi.BubdoR" failed: Operation not permitted (1) ... rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504) [generator=3.1.1]
with one rsync: mkstemp listing for each file with the same failed message. Also when I looked at the new location, all the directories were created, however they were ALL empty. Apparently I was getting the errors and files were not being copied, but I couldn't see the errors until I canceled it.
I checked the permissions with ls -l as follows:
Code:
User@freenas:/mnt/New % ls -l total 29 drwxrwxr-x+ 2 User Documents 3 Jun 1 15:05 ./ drwxr-xr-x 4 root wheel 120 Jun 1 11:57 ../ -rwxrwxr-x+ 1 root User 0 May 31 17:10 .windows*
So I tried to copy the files with the command
Code:
cp -Rp /mnt/Old /mnt/New
Code:
cp: chmod: /mnt/New/Folder: Operation not permitted
Code:
diff -rq /mnt/Old/ /mnt/New/
I would like to figure out what is causing these errors. I had planned on using rsync to synchronize directories to removable storage for use with my laptop when I am out of town.. so rsync to the removable drive before I leave, then rsync back when I return. I would like to use something like Rsync because I do not want any of my client computers to be bothered with this task, I want it to be done on the server because it's running anyway. I'm not sure what I'm doing wrong, if I have some permission issue, or if I'm not formatting the command correctly? any advice is greatly appreciated!