Discussion:
rsync stalemate
(too old to reply)
pinnerite
2023-03-18 12:50:56 UTC
Permalink
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.
Richard Kettlewell
2023-03-18 13:26:48 UTC
Permalink
Post by pinnerite
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/
pinnerite
2023-03-19 22:23:19 UTC
Permalink
On Sat, 18 Mar 2023 13:26:48 +0000
Post by Richard Kettlewell
Post by pinnerite
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.
William Unruh
2023-03-18 17:00:43 UTC
Permalink
.* 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.
Post by pinnerite
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.
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]
#! /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
Loading...