Created
June 29, 2018 10:25
-
-
Save pascalwhoop/1c34d21276bb42cdd57d71c7b292d3b3 to your computer and use it in GitHub Desktop.
copy_system_from_ssd.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| su | |
| cd /mnt | |
| mkdir nvme extssd | |
| mount /dev/nvme0n1p2 nvme | |
| mount /dev/sda2 extssd | |
| rsync --delete -avhPHAX extssd nvme | |
| # rsync parameters explained | |
| # -a = archive, same as -rlptgoD | |
| # -v = verbose | |
| # -h = human readable numbers | |
| # -H = preserve hard links | |
| # -A = preserve ACLs | |
| # -X = preserve xattrs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment