Since I lately had to do a lot of data-migrating stuff, I made myself an alias for rsync and I use it as recursivecopy-command. Works great! Write this down…
# alias rcp='rsync --owner --group --perms --times --archive --recursive --progress'
- No worries about accidentally overwriting important files
- No struggle with long syntaxis anymore
- Same syntaxformat as cp
# rcp -v /home/user1/* /home/user2/*
- Progress indicator
- Retaining file permissions and ownerships
- Very forgiving with interruptions!
You can hit CTRL-C without any risk. Just restart your rcp-action. And it will continue where it left of…
And sure you can add this alias to the bashrc, the .bash_profile, and so on….