rsync -anrv --exclude=".*" include-from="myincludes.txt"
--chown=alan:alan --progress /mnt/sda5/alan/ /mnt/sdb5/alan/
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
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 483 |
Nodes: | 16 (1 / 15) |
Uptime: | 76:32:08 |
Calls: | 9,574 |
Calls today: | 5 |
Files: | 13,666 |
Messages: | 6,142,668 |