Result:
sending incremental file list
Desktops/
rsync: failed to set times on "/media/NAS/Desktops": No such file or directory (2)
Desktops/Desktops.exe
Desktops/Eula.txt
Desktops/prova da pdf
rsync: failed to set times on "/media/NAS/Desktops/.Desktops.exe.gVTPWq": No such file or directory (2)
rsync: failed to set times on "/media/NAS/Desktops/.Eula.txt.p00Nqt": No such file or directory (2)
rsync: failed to set times on "/media/NAS/Desktops/.prova da pdf.QXlpWv": No such file or directory (2)

sent 123414 bytes received 73 bytes 82324.67 bytes/sec
total size is 123141 speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1070) [sender=3.0.9]

The backup is carried out both on / media / NAS (which I avoid if I wanted to save the folder "/" I ballooned the folder / media / NAS), and also runs on the NAS in the folder "prova", but an hour later with files on the NAS.

What is wrong?
How can I avoid that the backup is also performed in the mount folder / media / NAS?

The NAS is a Freecom NAS dual-drive network center with a disk formatted by the same NAS as XFS.

Thank you for your attention and for the help that you will grant me.

P.S. I forgot, in the NAS, are installed only the services ftp and samba, but unfortunately it is not installed rsync.

smbmount //ip address/prova /media/NAS -o netdev
. . .
The backup is carried out both on / media / NAS (which I avoid if I wanted to save the folder "/" I ballooned the folder / media / NAS), and also runs on the NAS in the folder "prova", but an hour later with files on the NAS.

What is wrong?
How can I avoid that the backup is also performed in the mount folder / media / NAS?

Do you mean that the same data can be found both under /media/NAS/ and at the remote folder itself, even when the remote folder is not mounted ?
Because if it is, it's normal to see "prova"'s contents from within it's mount point (/media/NAS/). It doesn't mean that you have the same data at 2 places. It means that you look at the same place from 2 different perspectives

Thanks lucky!
It 'just as you say.
When you unmount the NAS / media / NAS disappears everything; actually under / media / NAS there is nothing!
Now I have left to resolve the error rsync:
rsync: failed to Set times on "/ media / NAS / Desktops": No such file or directory (2)
rsync error: some files / attrs Were not Transferred (see previous errors) (code 23) at main.c (1070) [sender = 3.0.9].

As already said everything is saved with the date and time of the hard drive of the NAS.
Pending on your suggerimentim, continues searching with google.

Note: -a is equal to -rlptgoD
What I'm actually suggesting is to omit the -t (--times argument) though it seems to be an issue of files that were supposed to be there ("/media/NAS/) but they aren't for some reason !!

Unfortunately I need to keep the dates of files and folders, or what kind of backup would be, all with today's date, and then what happens next in sync everything is rewritten as a new full backup?

To solve the problem, unfortunately, I have created another.
I reset the NAS, a few days ago I had hacked to enable the ssh service, but I did not need more, and noticing that the time of the NAS was not updated, I reset and recreated the same configuration.

I can sign in with koqueror smb: / / ip of the NAS, but if I try to mount the NAS on media / NAS with the usual smbmount / / ipNAS / test / media / NAS-o netdev, I have the following response:
Password:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I tried no password, the password by putting the user of the NAS, the NAS administrator; nothing to do I can not mount it.
Of course if I try a backup with rsync, really now saves / media / NAS which is mounted by samba.
I do not know which way to head.
Suggestions?
Thank you for your attention, in particular luckyb.

The reason I suggested to omit --times was to make sure that the problem was not time related.

anyway, try to add a "user" as argument to the mount command:

Code:

smbmount //ipNAS/test /media/NAS -o user=username

Quote:

user=arg
specifies the username to connect as. If this is not given, then the environment variable USER is used. This option can also take the form "user%password" or "workgroup/user" or "workgroup/user%password" to allow the password and workgroup to be specified as part of the username.

Before you proceed to any mounting make sure your mount point (/media/NAS directory) is clean (empty if nothing is mounted there) and that you (the simple user that will use the mount command) has full (read/write/execute) access to it.

Also note that since your NAS supports ssh you can directly use the rsync command without having to first locally mount it !!

sent 123414 bytes received 73 bytes 246974.00 bytes/sec
total size is 123141 speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1070) [sender=3.0.9]

rsync: chgrp?

You're right; the problem was not time related.

However, the NAS does not automatically update the date and time.
I need to update in the appropriate section for the management of the NAS.
I have to report the problem to Freecom, maybe I'll explain how to solve it.

The NAS does not natively support ssh, I was able to activate it by following a guide in the forum freecom.
However when I tried to rsync with ssh, as it gave me error that rsync could not find (in the NAS is not activated).

I am seriously thinking of maybe using an old computer of small size with FreeNAS

luckyb

Post subject:Posted: 10.01.2012, 09:36

Joined: 2010-09-17
Posts: 25
Location: Athens, Greece
Status: Offline

The facts:
When rsync transfers a file (eg file.txt) over to the destination it temporarily renames it as hidden (eg .file.txt.XYZQWY -> starts with a dot) until the full transfer is finished.
Then it changes the file's attributes (eg owner-group-last mod time etc according to the arguments given).
Finally, it renames it back to its original filename (eg file.txt).

What happens here is:
1. There is no error that the file failed to get transferred
2. You get a "No such file or directory" error when rsync tries to change the attributes of the temp files (either "time" or "group").

some loud thinking:
I would suspect that there are either mount permission issues or that the xfs filesystem does not support such attributes but you would get an "operation not permitted" error.
Again, I might be wrong.

a couple of suggestions:
To confirm whether data transfer takes place and the issue has to do with attribute changing (or not).
1. Try using rsync without -tgop (times, group, owner, permissions):

Code:

rsync -rlD -vv --delete /home/Desktops /media/NAS

(the double "v" is not a typo, it will provide info on what files are being skipped)
Are files transferred ??

2. Try to transfer a big file that will take some time to transfer.
Then notice the destination during the transfer. Is there a hidden file created (dolphin -> "show hidden files"=CHECKED) ??

barbasla

Post subject:Posted: 11.01.2012, 04:45

Joined: 2011-01-27
Posts: 41

luckyb wrote:

1. Try using rsync without -tgop (times, group, owner, permissions):

Code:

rsync -rlD -vv --delete /home/Desktops /media/NAS

(the double "v" is not a typo, it will provide info on what files are being skipped)
Are files transferred ??