Copy sda home to sdb home
by borgward from LinuxQuestions.org on (#5FA44)
Copy /home on sda to /home sdb.
sdb is external and is connected by USB.
sdb has infrequently been used to back up sda.
sda has linuxmint cinnamon 18.0.
sdb is upgraded to linuxmint 20.1.
$ sudo fdisk -l
Disk /dev/sda: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000a79b4
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2046 1464844287 1464842242 698.5G 5 Extended
/dev/sda5 2048 111732735 111730688 53.3G 83 Linux
/dev/sda6 111734784 119545855 7811072 3.7G 82 Linux swap / Solaris
/dev/sda7 119547904 1464844287 1345296384 641.5G 83 Linux
sda7 is home has 93,286 items, totalling 401.9 GB.
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xe3a7dfc5
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 58593844 58591797 28G 83 Linux
/dev/sdb2 58595326 1953330322 1894734997 903.5G 5 Extended
/dev/sdb5 58595328 66406399 7811072 3.7G 82 Linux swap / Solaris
/dev/sdb6 66408448 1953330322 1886921875 899.8G 83 Linux
sdb6 is home has 276.1 GB on it, 678.3 GB free.
I could just drag and drop.
Thinking rsync is the way to go. Will rsync copy to sdb6 only what has not been copied to it before?
Will existing files on sdb be updated if oldr than those on sda?


sdb is external and is connected by USB.
sdb has infrequently been used to back up sda.
sda has linuxmint cinnamon 18.0.
sdb is upgraded to linuxmint 20.1.
$ sudo fdisk -l
Disk /dev/sda: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000a79b4
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2046 1464844287 1464842242 698.5G 5 Extended
/dev/sda5 2048 111732735 111730688 53.3G 83 Linux
/dev/sda6 111734784 119545855 7811072 3.7G 82 Linux swap / Solaris
/dev/sda7 119547904 1464844287 1345296384 641.5G 83 Linux
sda7 is home has 93,286 items, totalling 401.9 GB.
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xe3a7dfc5
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 58593844 58591797 28G 83 Linux
/dev/sdb2 58595326 1953330322 1894734997 903.5G 5 Extended
/dev/sdb5 58595328 66406399 7811072 3.7G 82 Linux swap / Solaris
/dev/sdb6 66408448 1953330322 1886921875 899.8G 83 Linux
sdb6 is home has 276.1 GB on it, 678.3 GB free.
I could just drag and drop.
Thinking rsync is the way to go. Will rsync copy to sdb6 only what has not been copied to it before?
Will existing files on sdb be updated if oldr than those on sda?