Backing up a disk to another with rsync
Putting this here for future reference from future me if he thinks to look here. Heeey! It’sa me, your past. :)
Copied the contents of one disk formatted with XFS to another bigger disk with XFS using Rsync.
rsync -arvluht -pog -P /media/Source/ /media/Destination/
Breakdown of the switches;
- -a for archive
- -r for recursive
- -v for verbose
- -l for links
- -u for update
- -h for human-readable
- -t for preserving times
- -p for preserving permissions
- -o to preserve ownership
- -g to preserve group
- -P to show progress
Read other posts