In data venerdì 20 gennaio 2023 21:59:02 CET, Stakanov ha scritto:
In data venerdì 20 gennaio 2023 13:10:05 CET, Carlos E. R. ha scritto:
El 2023-01-20 a las 10:33 +0100, Stakanov escribió:
In data venerdì 20 gennaio 2023 08:35:39 CET, David C. Rankin ha scritto:
On 1/19/23 14:19, Stratos Zolotas wrote: ...
Now the "1000$" question: what is the best command to achieve the transfer of the /home to the new /transfer home?
cp? rsync? dd?
Any suggestions for the best (eventually fastest but I would prefer most reliable) solution?
rsync.
From my backup script incantation:
DESTINO=/path/to/destination ORIGEN=/path/to/source/
OPTIONS="--archive --acls --xattrs --hard-links --sparse --stats --human-readable "
If the source is mounted and you make a second run:
OPTIONS="--archive --acls --xattrs --hard-links --sparse --stats --human-readable --del"
rsync $OPTIONS \
--relative --include=/data/vmware** --include=/data/storage_**
--include=/data/cripta** --include=/data/xtr** --include=/data/raid** \ --exclude=/lost+found --exclude=/dev --exclude=/sys --exclude=/proc --exclude=/run \ --exclude=/data/** --exclude=/mnt --exclude=/other --exclude=/media --exclude=/var/lib/samba/lock/ --exclude=/var/run/ \ $ORIGEN $DESTINO
Notice that destination misses the end slash, but not the source. You have to remove out the options you don't need, but I left them as examples. I think you may need just this:
rsync $OPTIONS \
/oldhome/ /newhome
-- Cheers,
Carlos E. R. (from openSUSE 15.4 x86_64 at Telcontar)
I finally did: rsync avxHAX --progress2 /home/ /transfer
currently running.
progress2 is a typo means rsync avxHAX --progress /home/ /transfer