DEV Community

Cover image for rysnc command
rafaone
rafaone

Posted on • Edited on

1

rysnc command

There is the commands that I like to backup my data.

To copy and update all data.

rsync -hvrPt /media/source/ /media/target

Delete the files align the files after sync.
rsync -a --delete /media/source/ /media/target/

or Combine the command to make a mirror

rsync -hvrPt /media/source/ /media/target

If you use to send over ssh remote, use the option --no-i-r improve the remote performance,

rsync -hvrPWt --no-i-r /media/source /targert

Its solve my life

Check this Thread

Top comments (0)

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay