Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

One small step for man, one giant stumble for mankind.


computers / alt.os.linux.mint / Re: rsync stalemate

SubjectAuthor
* rsync stalematepinnerite
+* Re: rsync stalemateBig Al
|`- Re: rsync stalematepinnerite
+- Re: rsync stalemateChris Elvidge
`* Re: rsync stalemateChris Elvidge
 `- Re: rsync stalemateChris Elvidge

1
rsync stalemate

<20230318120758.be15e114f6aeb9430799ba9f@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5745&group=alt.os.linux.mint#5745

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: pinner...@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: rsync stalemate
Date: Sat, 18 Mar 2023 12:07:58 +0000
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <20230318120758.be15e114f6aeb9430799ba9f@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="76d29d1f4fcc835c47c179552a973324";
logging-data="2614580"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JkdxCZp8ykMoa4mkIERpfEPVivsGE27g="
Cancel-Lock: sha1:ZgT58glxBH6yGb3h7nXC077cw5E=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
 by: pinnerite - Sat, 18 Mar 2023 12:07 UTC

I am trying to sync data from my /home folder on a 20.3 system to /home
on a 21.1 system. I booted on a live flash drive.

rsync reports:

sent 325 bytes received 181 bytes 1,012.00 bytes/sec
total size is 0 speedup is 0.00 (DRY RUN)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]

The script that I used was this:

#! /bin/sh
# Backup_rsync.sh backup drive sda5 to sdb5
#

mkdir /mnt/sda5
mkdir /mnt/sdb5

mount /dev/sda5 /mnt/sda5
mount /dev/sdb5 /mnt/sdb5

rsync -anrv --exclude=".*" include-from="myincludes.txt" --chown=alan:alan --progress /mnt/sda5/alan/ /mnt/sdb5/alan/

myincludes.txt holds only those "dot" files that I want copied. i.e.

/mnt/sda5/alan/.sane

Can anyone tell why this isn't working?

TIA, Alan

--
Mint 20.3, kernel 5.4.0-139-generic, Cinnamon 5.2.7
running on an AMD Phenom II X4 Black edition processor with 16GB of
DRAM.

Re: rsync stalemate

<tv4f6o$2gp41$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5746&group=alt.os.linux.mint#5746

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Bea...@invalid.com (Big Al)
Newsgroups: alt.os.linux.mint
Subject: Re: rsync stalemate
Date: Sat, 18 Mar 2023 09:43:52 -0400
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <tv4f6o$2gp41$1@dont-email.me>
References: <20230318120758.be15e114f6aeb9430799ba9f@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 18 Mar 2023 13:43:52 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="7a23ad6c363cc9cf4047a7d4cf9c45b4";
logging-data="2647169"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182Ka5cHCP+w3rvYLaWHWTSx0AK9kT3PTw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Cancel-Lock: sha1:q2DrKeqaxNhpNmhcieiML1moB1Y=
Content-Language: en-US
In-Reply-To: <20230318120758.be15e114f6aeb9430799ba9f@gmail.com>
 by: Big Al - Sat, 18 Mar 2023 13:43 UTC

On 3/18/23 08:07, this is what pinnerite wrote:
> I am trying to sync data from my /home folder on a 20.3 system to /home
> on a 21.1 system. I booted on a live flash drive.
>
> rsync reports:
>
> sent 325 bytes received 181 bytes 1,012.00 bytes/sec
> total size is 0 speedup is 0.00 (DRY RUN)
> rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]
>
> The script that I used was this:
>
> #! /bin/sh
> # Backup_rsync.sh backup drive sda5 to sdb5
> #
>
> mkdir /mnt/sda5
> mkdir /mnt/sdb5
>
> mount /dev/sda5 /mnt/sda5
> mount /dev/sdb5 /mnt/sdb5
>
> rsync -anrv --exclude=".*" include-from="myincludes.txt" --chown=alan:alan --progress /mnt/sda5/alan/ /mnt/sdb5/alan/
>
> myincludes.txt holds only those "dot" files that I want copied. i.e.
>
> /mnt/sda5/alan/.sane
>
> Can anyone tell why this isn't working?
>
> TIA, Alan
>
>
>
>
Minor item, -a implies -r per man page.
And it seems contrary to exclude dot files but include dot files. What would happen if you dropped the --exclude?

--
Al

Re: rsync stalemate

<tv4fev$2gq33$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5747&group=alt.os.linux.mint#5747

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: alt.os.linux.mint
Subject: Re: rsync stalemate
Date: Sat, 18 Mar 2023 13:48:14 +0000
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <tv4fev$2gq33$1@dont-email.me>
References: <20230318120758.be15e114f6aeb9430799ba9f@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 18 Mar 2023 13:48:15 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="8792ca1ebe8a71658367608a62ff2b60";
logging-data="2648163"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PbR2H2Z14fVBWMn6aQXelWXDcfDYWWqA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:2lcKG3auKkYNfZ+/NJmeN0x8mTQ=
Content-Language: en-GB
In-Reply-To: <20230318120758.be15e114f6aeb9430799ba9f@gmail.com>
 by: Chris Elvidge - Sat, 18 Mar 2023 13:48 UTC

On 18/03/2023 12:07, pinnerite wrote:
> I am trying to sync data from my /home folder on a 20.3 system to /home
> on a 21.1 system. I booted on a live flash drive.
>
> rsync reports:
>
> sent 325 bytes received 181 bytes 1,012.00 bytes/sec
> total size is 0 speedup is 0.00 (DRY RUN)
> rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]
>
> The script that I used was this:
>
> #! /bin/sh
> # Backup_rsync.sh backup drive sda5 to sdb5
> #
>
> mkdir /mnt/sda5
> mkdir /mnt/sdb5
>
> mount /dev/sda5 /mnt/sda5
> mount /dev/sdb5 /mnt/sdb5
>
> rsync -anrv --exclude=".*" include-from="myincludes.txt" --chown=alan:alan --progress /mnt/sda5/alan/ /mnt/sdb5/alan/
>
> myincludes.txt holds only those "dot" files that I want copied. i.e.
>
> /mnt/sda5/alan/.sane
>
> Can anyone tell why this isn't working?
>
> TIA, Alan
>
>
>
>

Try -anrvvv to see what's happening.
rsync include/exclude _is_ confusing until you understand it.
I found
<https://unix.stackexchange.com/questions/307862/rsync-include-only-certain-files-types-excluding-some-directories>
helpful.

--
Chris Elvidge
England

Re: rsync stalemate

<tv4uuq$2jers$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5749&group=alt.os.linux.mint#5749

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: alt.os.linux.mint
Subject: Re: rsync stalemate
Date: Sat, 18 Mar 2023 18:12:37 +0000
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <tv4uuq$2jers$1@dont-email.me>
References: <20230318120758.be15e114f6aeb9430799ba9f@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 18 Mar 2023 18:12:43 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="8792ca1ebe8a71658367608a62ff2b60";
logging-data="2734972"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ct4osR2Jk618lkkKJt0m+r3FazKq5jXo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:PJ3dZUtHGvrYrmrv5IBDU4BRDy0=
Content-Language: en-GB
In-Reply-To: <20230318120758.be15e114f6aeb9430799ba9f@gmail.com>
 by: Chris Elvidge - Sat, 18 Mar 2023 18:12 UTC

On 18/03/2023 12:07, pinnerite wrote:
> I am trying to sync data from my /home folder on a 20.3 system to /home
> on a 21.1 system. I booted on a live flash drive.
>
> rsync reports:
>
> sent 325 bytes received 181 bytes 1,012.00 bytes/sec
> total size is 0 speedup is 0.00 (DRY RUN)
> rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]
>
> The script that I used was this:
>
> #! /bin/sh
> # Backup_rsync.sh backup drive sda5 to sdb5
> #
>
> mkdir /mnt/sda5
> mkdir /mnt/sdb5
>
> mount /dev/sda5 /mnt/sda5
> mount /dev/sdb5 /mnt/sdb5

Make sure you have rwx access /mnt/sdb5/alan and have rx access to
/mnt/sda5/alan
Where exactly is myincludes.txt? Assume it's in /mnt/sda5/alan?

rsync -avr --include-from="/mnt/sda5/alan/includes.txt"
--include="/mnt/sda5/alan/" --exclude='*' --chown="alan:alan"
/mnt/sda5/alan /mnt/sdb5/alan

This says include-from the file contents, include the root directory of
the copy-from, exclude everything (else), change the user/group of the
destination files. Copy from /mnt/sda5/alan, to /mnt/sdb5/alan

>
> rsync -anrv --exclude=".*" include-from="myincludes.txt" --chown=alan:alan --progress /mnt/sda5/alan/ /mnt/sdb5/alan/
>
> myincludes.txt holds only those "dot" files that I want copied. i.e.
>
> /mnt/sda5/alan/.sane
>
> Can anyone tell why this isn't working?
>
> TIA, Alan
>
>
>
>

--
Chris Elvidge
England

Re: rsync stalemate

<tv55jg$2kgv3$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5750&group=alt.os.linux.mint#5750

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: alt.os.linux.mint
Subject: Re: rsync stalemate
Date: Sat, 18 Mar 2023 20:06:08 +0000
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <tv55jg$2kgv3$1@dont-email.me>
References: <20230318120758.be15e114f6aeb9430799ba9f@gmail.com>
<tv4uuq$2jers$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 18 Mar 2023 20:06:10 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="8792ca1ebe8a71658367608a62ff2b60";
logging-data="2769891"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fJodOHm+nfAP8wyEaYXzx2JW5gU74hgU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:FednGIUSsq29eJetrmBXDyO0JYM=
In-Reply-To: <tv4uuq$2jers$1@dont-email.me>
Content-Language: en-GB
 by: Chris Elvidge - Sat, 18 Mar 2023 20:06 UTC

On 18/03/2023 18:12, Chris Elvidge wrote:
> On 18/03/2023 12:07, pinnerite wrote:
>> I am trying to sync data from my /home folder on a 20.3 system to /home
>> on a 21.1 system. I booted on a live flash drive.
>>
>> rsync reports:
>>
>> sent 325 bytes received 181 bytes 1,012.00 bytes/sec
>> total size is 0 speedup is 0.00 (DRY RUN)
>> rsync error: some files/attrs were not transferred (see previous
>> errors) (code 23) at main.c(1207) [sender=3.1.3]
>>
>> The script that I used was this:
>>
>> #! /bin/sh
>> # Backup_rsync.sh backup drive sda5 to sdb5
>> #
>>
>> mkdir /mnt/sda5
>> mkdir /mnt/sdb5
>>
>> mount /dev/sda5 /mnt/sda5
>> mount /dev/sdb5 /mnt/sdb5
>
> Make sure you have rwx access /mnt/sdb5/alan and have rx access to
> /mnt/sda5/alan
> Where exactly is myincludes.txt? Assume it's in /mnt/sda5/alan?
>
> rsync -avr --include-from="/mnt/sda5/alan/includes.txt"
> --include="/mnt/sda5/alan/" --exclude='*' --chown="alan:alan"
> /mnt/sda5/alan /mnt/sdb5/alan
^
|
Sorry, that should be /mnt/sda5/alan/

>
> This says include-from the file contents, include the root directory of
> the copy-from, exclude everything (else), change the user/group of the
> destination files. Copy from /mnt/sda5/alan, to /mnt/sdb5/alan
>
>>
>> rsync -anrv --exclude=".*" include-from="myincludes.txt"
>> --chown=alan:alan --progress /mnt/sda5/alan/ /mnt/sdb5/alan/
>>
>> myincludes.txt holds only those "dot" files that I want copied. i.e.
>>
>> /mnt/sda5/alan/.sane
>>
>> Can anyone tell why this isn't working?
>>
>> TIA, Alan
>>
>>
>>
>>
>
>

--
Chris Elvidge
England

Re: rsync stalemate

<20230318213501.0b3041e0d65c70d7b9a57a8e@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5751&group=alt.os.linux.mint#5751

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: pinner...@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: Re: rsync stalemate
Date: Sat, 18 Mar 2023 21:35:01 +0000
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <20230318213501.0b3041e0d65c70d7b9a57a8e@gmail.com>
References: <20230318120758.be15e114f6aeb9430799ba9f@gmail.com>
<tv4f6o$2gp41$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="76d29d1f4fcc835c47c179552a973324";
logging-data="2795922"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18N8UcsL4/XPMqYC1arNsKBDuwwpyFhgAA="
Cancel-Lock: sha1:9E+MOcANOWmCXJFclPy8XC3slzE=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: pinnerite - Sat, 18 Mar 2023 21:35 UTC

On Sat, 18 Mar 2023 09:43:52 -0400
Big Al <Bears@invalid.com> wrote:

> On 3/18/23 08:07, this is what pinnerite wrote:
> > I am trying to sync data from my /home folder on a 20.3 system to /home
> > on a 21.1 system. I booted on a live flash drive.
> >
> > rsync reports:
> >
> > sent 325 bytes received 181 bytes 1,012.00 bytes/sec
> > total size is 0 speedup is 0.00 (DRY RUN)
> > rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]
> >
> > The script that I used was this:
> >
> > #! /bin/sh
> > # Backup_rsync.sh backup drive sda5 to sdb5
> > #
> >
> > mkdir /mnt/sda5
> > mkdir /mnt/sdb5
> >
> > mount /dev/sda5 /mnt/sda5
> > mount /dev/sdb5 /mnt/sdb5
> >
> > rsync -anrv --exclude=".*" include-from="myincludes.txt" --chown=alan:alan --progress /mnt/sda5/alan/ /mnt/sdb5/alan/
> >
> > myincludes.txt holds only those "dot" files that I want copied. i.e.
> >
> > /mnt/sda5/alan/.sane
> >
> > Can anyone tell why this isn't working?
> >
> > TIA, Alan
> >
> >
> >
> >
> Minor item, -a implies -r per man page.
> And it seems contrary to exclude dot files but include dot files. What would happen if you dropped the --exclude?
>
> --
> Al

OK someone on the Ubuntu or Mageia group spotted my mistake, include-from should have been --include-from.
Now, the "." files. If I were to copy all of the "." files from an old to a new distro, I would probably screw up some newer settings created upon installation.

So the exclude says don't copy any and the file pointed to from myincludes.txt lists those that I do want copied over.
Yes I know that you can do it the other way round but all the examples I found during browsing the web did it the first way.

Thanks for trying though. It is really heart-warming to find like-minded people giving me some of their valuable time,

Regards, Alan

--
Mint 21.1, kernel 5.15.0-67-generic, Cinnamon 5.6.7
running on an AMD Phenom II X4 Black edition processor with 16GB of DRAM.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor