Advertisement
Monarch73

copy

Nov 5th, 2022 (edited)
1,443
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. rsync -avxHAX --progress --numeric-ids /old-disk/. /new-disk/
  2. tar --numeric-owner -cvf - /old-disk/.|(cd /new-disk/ ; tar -xf -)
Advertisement
Comments
  • Monarch73
    2 years
    # text 0.10 KB | 0 0
    1. cp is bad. It has bad performance and does not copy links and/or blockdevs. Use these commands instead
Add Comment
Please, Sign In to add comment
Advertisement