/root is wrongly copied during update
Kevin Korb
kmk at sanitarium.net
Sat Jun 18 22:02:32 UTC 2016
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 at kw var]# getfattr /root/.bash_aliases
> [root at kw var]# getfattr /root
> [root at kw var]# ls -ld /root
> drwxr-x--- 29 root root 4096 Jun 18 13:51 /root
> [root at kw var]# ls -l /root/.bash_aliases
> -rw-r--r-- 1 root root 113 May 17 2015 /root/.bash_aliases
>
> On backup dir:
>
> [root at kw var]# getfattr /mnt/backup/home/root/.bash_aliases
> [root at kw var]# getfattr /mnt/backup/home/root
> [root at kw var]# ls -ld /mnt/backup/home/root
> drwxr-x---+ 1 root root 0 Jun 18 10:02 /mnt/backup/home/root
> [root at 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. Kevin at FutureQuest.net (work)
Orlando, Florida kmk at sanitarium.net (personal)
Web page: http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/rsync/attachments/20160618/6deaa19f/signature.sig>
More information about the rsync
mailing list