/root is wrongly copied during update

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

/root is wrongly copied during update

Albert Berger
For backuping system folders on ArchLinux I use the following command
per folder:

rsync --update -DHAErlptgo --relative --delete-during $dir $backupdir

The problem is that every file in /root folder and its subfolders is
copied each time when this command is run. In all other folders only
new or modified files are copied. The files and the folder itself have
the following attributes:

[root@kw var]# getfattr /root/.bash_aliases
[root@kw var]# getfattr /root
[root@kw var]# ls -ld /root
drwxr-x--- 29 root root 4096 Jun 18 13:51 /root
[root@kw var]# ls -l /root/.bash_aliases
-rw-r--r-- 1 root root 113 May 17  2015 /root/.bash_aliases

On backup dir:

[root@kw var]# getfattr /mnt/backup/home/root/.bash_aliases
[root@kw var]# getfattr /mnt/backup/home/root
[root@kw var]# ls -ld /mnt/backup/home/root
drwxr-x---+ 1 root root 0 Jun 18 10:02 /mnt/backup/home/root
[root@kw var]# ls -l /mnt/backup/home/root/.bash_aliases
-rw-r--r--+ 1 root root 113 May 17  2015 /mnt/backup/home/root/.bash_aliases

Could someone advise what can cause such rsync's behaviour?

Thanks.

Albert.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

Re: /root is wrongly copied during update

Kevin Korb
Any time you don't understand why rsync is copying something the first
step is to use --itemize-changes to find out what rsync thinks is
different about the file.

On 06/18/2016 07:22 AM, Albert Berger wrote:

> For backuping system folders on ArchLinux I use the following command
> per folder:
>
> rsync --update -DHAErlptgo --relative --delete-during $dir $backupdir
>
> The problem is that every file in /root folder and its subfolders is
> copied each time when this command is run. In all other folders only
> new or modified files are copied. The files and the folder itself have
> the following attributes:
>
> [root@kw var]# getfattr /root/.bash_aliases
> [root@kw var]# getfattr /root
> [root@kw var]# ls -ld /root
> drwxr-x--- 29 root root 4096 Jun 18 13:51 /root
> [root@kw var]# ls -l /root/.bash_aliases
> -rw-r--r-- 1 root root 113 May 17  2015 /root/.bash_aliases
>
> On backup dir:
>
> [root@kw var]# getfattr /mnt/backup/home/root/.bash_aliases
> [root@kw var]# getfattr /mnt/backup/home/root
> [root@kw var]# ls -ld /mnt/backup/home/root
> drwxr-x---+ 1 root root 0 Jun 18 10:02 /mnt/backup/home/root
> [root@kw var]# ls -l /mnt/backup/home/root/.bash_aliases
> -rw-r--r--+ 1 root root 113 May 17  2015 /mnt/backup/home/root/.bash_aliases
>
> Could someone advise what can cause such rsync's behaviour?
>
> Thanks.
>
> Albert.
>
--
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
        Kevin Korb Phone:    (407) 252-6853
        Systems Administrator Internet:
        FutureQuest, Inc. [hidden email]  (work)
        Orlando, Florida [hidden email] (personal)
        Web page: http://www.sanitarium.net/
        PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,


--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: /root is wrongly copied during update

Albert Berger
On Sat, Jun 18, 2016 at 06:02:32PM -0400, Kevin Korb wrote:
> Any time you don't understand why rsync is copying something the first
> step is to use --itemize-changes to find out what rsync thinks is
> different about the file.
>

Thanks! That helped.


Albert.

> On 06/18/2016 07:22 AM, Albert Berger wrote:
> > For backuping system folders on ArchLinux I use the following command
> > per folder:
> >
> > rsync --update -DHAErlptgo --relative --delete-during $dir $backupdir
> >
> > The problem is that every file in /root folder and its subfolders is
> > copied each time when this command is run. In all other folders only
> > new or modified files are copied. The files and the folder itself have
> > the following attributes:
> >
> > [root@kw var]# getfattr /root/.bash_aliases
> > [root@kw var]# getfattr /root
> > [root@kw var]# ls -ld /root
> > drwxr-x--- 29 root root 4096 Jun 18 13:51 /root
> > [root@kw var]# ls -l /root/.bash_aliases
> > -rw-r--r-- 1 root root 113 May 17  2015 /root/.bash_aliases
> >
> > On backup dir:
> >
> > [root@kw var]# getfattr /mnt/backup/home/root/.bash_aliases
> > [root@kw var]# getfattr /mnt/backup/home/root
> > [root@kw var]# ls -ld /mnt/backup/home/root
> > drwxr-x---+ 1 root root 0 Jun 18 10:02 /mnt/backup/home/root
> > [root@kw var]# ls -l /mnt/backup/home/root/.bash_aliases
> > -rw-r--r--+ 1 root root 113 May 17  2015 /mnt/backup/home/root/.bash_aliases
> >
> > Could someone advise what can cause such rsync's behaviour?
> >
> > Thanks.
> >
> > Albert.
> >
>
> --
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
> Kevin Korb Phone:    (407) 252-6853
> Systems Administrator Internet:
> FutureQuest, Inc. [hidden email]  (work)
> Orlando, Florida [hidden email] (personal)
> Web page: http://www.sanitarium.net/
> PGP public key available on web site.
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
>




> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html