You are not logged in.

#1 2015-03-27 23:59:15

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Rsync complains about weird files I cant find? [Solved]

This is the last few lines of the output from Rsync:

[...]
rsync: chgrp "/media/HDD0/Backup/rsync/Atlas/johan/Scripts/.screenfetch-dev.pqW38y" failed: Operation not permitted (1)
rsync: chgrp "/media/HDD0/Backup/rsync/Atlas/johan/Scripts/.tdtool-film.sh.q1alLu" failed: Operation not permitted (1)
rsync: chgrp "/media/HDD0/Backup/rsync/Atlas/johan/Scripts/.tdtool-off.sh.4v7xoq" failed: Operation not permitted (1)
rsync: chgrp "/media/HDD0/Backup/rsync/Atlas/johan/Scripts/.tdtool-on.sh.NvLJ2l" failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1165) [sender=3.1.1]

I cant find these files in the original folder or in the backup. Why cant I see them and where did they come from?

Last edited by Hund (2015-03-28 01:11:01)

Offline

#2 2015-03-28 00:11:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Rsync complains about weird files I cant find? [Solved]

What do you mean you cant find them?  They are 'dot' files, so some file managers will not show them, and `ls` will only show them with the -a flag.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-03-28 00:13:57

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Re: Rsync complains about weird files I cant find? [Solved]

I know that.

johan at Atlas in /media/HDD0/Backup/rsync/Atlas/johan/Scripts 
>> ls -la
total 268
drwx------+  2 johan johan   4096 Mar 25 15:16 .
drwx------+ 50 johan johan   4096 Mar 28 00:51 ..
-rw-r--r--+  1 johan johan    145 Feb 10 07:57 checkupdates2.sh
-rwxr-xr-x+  1 johan johan    136 Mar  7 08:13 checkupdates.sh
-rwxr-xr-x+  1 johan johan    796 Jan 25 18:48 colors.sh
-rwx------+  1 johan johan    564 Mar 28 00:52 pacman-helper.sh
-rwx------+  1 johan johan     72 Mar 28 00:52 radio.sh
-rwxr-xr-x+  1 johan johan    139 Mar  7 07:59 rss.sh
-rwx------+  1 johan johan 145805 Mar 28 00:52 screenfetch-dev
-rwx------+  1 johan johan     87 Mar 28 00:52 tdtool-film.sh
-rwx------+  1 johan johan     86 Mar 28 00:52 tdtool-off.sh
-rwx------+  1 johan johan    245 Mar 28 00:52 tdtool-on.sh
-rwxr-x---+  1 johan johan     92 Feb 18 10:15 tdtool-skrivbord.sh
-rwxr-xr-x+  1 johan johan     79 Feb  4 20:04 volume.sh
-rwxr-xr-x+  1 johan johan    194 Feb  4 20:03 volume.sh_old
-rwxr-xr-x+  1 johan johan    117 Feb  8 07:56 xrandr.sh
johan at Atlas in /media/HDD0/Backup/rsync/Atlas/johan/Scripts 
>>

Offline

#4 2015-03-28 00:20:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Rsync complains about weird files I cant find? [Solved]

Sorry - I just wanted to rule out the simplest thing first.

I don't know exactly how rsync works, but I would not be surprised if it creates temporary files for the transfer, then when the full file is copied, it can be renamed.  After failing, those temporary partially-copied files would be removed.  As to the error itself, it looks like an ownership/permission issue.  We're those the only ones listed in the error?  Can you post the full command used and the full output?

Also, what is the filesystem and ownership on the target drive?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2015-03-28 00:44:20

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Re: Rsync complains about weird files I cant find? [Solved]

I understand. smile You're probably right regarding the temp files.

As far as I can see the permissions seems to be ok. But I'm probably missing something obvious? I am by far no expert here.

The commando I use is:

$ rsync -av --delete /home/johan /media/HDD0/Backup/rsync/Atlas

And "HDD0" is a NFS-share on my server (running Xubuntu) with Ext4. Could that have something to with it?

That was not the complete output, just the last lines. I'm not sure if I dare to post the whole output, there could maybe be some private files with email adresses and such things.

Last edited by Hund (2015-03-28 00:46:15)

Offline

#6 2015-03-28 00:48:29

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: Rsync complains about weird files I cant find? [Solved]

Ummm.... In reviewing what you posted, the problem isn't the file that's being complained about.
The problem is that the command chgrp is not permitted; which translates to a permissions issue.
Most likely rsync is trying to use group permissions to change the group, and since some of the files apparently in question don't have group permissions, it wouldn't be permitted to happen.


Knute

Offline

#7 2015-03-28 00:49:30

Hund
Member
From: Sweden
Registered: 2010-03-22
Posts: 479
Website

Re: Rsync complains about weird files I cant find? [Solved]

Hm. I ran rsync to my local storage drive on this computer and that didnt give me any error messages.

Edit: I ran Rsync to a new folder on "HDD0" and the error messages are back.

Edit 2: The problem seems to be a permission issue with NFS. I did the syncing via SSH instead and that seems to have worked just fine. smile

rsync -av --delete -e "ssh -p <port>" <user>@<adress>:/remote/folder /local/folder

Thank you for taking the time helping me!

Last edited by Hund (2015-03-28 01:10:29)

Offline

Board footer

Powered by FluxBB