-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCY8qEnhwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVTpkAoIks2FpDRQtI9SgOwj4L oACypo/rAJ9pOzRIzNeGLH2z4rssmMOgEpmqJw== =52Jz -----END PGP SIGNATURE-----