• rsync stalemate

    From pinnerite@2:250/1 to All on Sat Mar 18 12:50:56 2023
    I am trying to sync data from my /home folder on a mint 20.3 system to /home
    on a mint 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.

    --- MBSE BBS v1.0.8.3 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Richard Kettlewell@2:250/1 to All on Sat Mar 18 13:26:48 2023
    pinnerite <pinnerite@gmail.com> writes:
    rsync -anrv --exclude=".*" include-from="myincludes.txt"
    --chown=alan:alan --progress /mnt/sda5/alan/ /mnt/sdb5/alan/

    --include-from, not include-from.

    --
    https://www.greenend.org.uk/rjk/

    --- MBSE BBS v1.0.8.3 (Linux-x86_64)
    * Origin: terraraq NNTP server (2:250/1@fidonet)
  • From William Unruh@2:250/1 to All on Sat Mar 18 17:00:43 2023
    ..* includes . and .. usually and the globbing will be done by
    bash in double quotes so it will include everything in your current sirectory and its
    parent. Try .?* to exclude . and .. But to let rsync do the globbing put
    it into single quotes.


    On 2023-03-18, pinnerite <pinnerite@gmail.com> wrote:
    I am trying to sync data from my /home folder on a mint 20.3 system to /home on a mint 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




    --- MBSE BBS v1.0.8.3 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From pinnerite@2:250/1 to All on Sun Mar 19 22:23:19 2023
    On Sat, 18 Mar 2023 13:26:48 +0000
    Richard Kettlewell <invalid@invalid.invalid> wrote:

    pinnerite <pinnerite@gmail.com> writes:
    rsync -anrv --exclude=".*" include-from="myincludes.txt"
    --chown=alan:alan --progress /mnt/sda5/alan/ /mnt/sdb5/alan/

    --include-from, not include-from.

    Thank you. That cracked it.

    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.

    --- MBSE BBS v1.0.8.3 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)