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 <[email protected]> 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: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 147:04:21 |
| Calls: | 12,091 |
| Calls today: | 4 |
| Files: | 15,000 |
| Messages: | 6,517,518 |