DEV Community

hardyweb
hardyweb

Posted on

WSL rsync in /mnt/c drive

In WSL, drive C windows is mounted in /mnt/c , drive D in /mnt/d etc.

let say, if i want to backup my raspberry pi storage file , so i can use rsync to backup my file in drive c or drive d using wsl

sudo apt update
sudo apt install rsync -y
Enter fullscreen mode Exit fullscreen mode
ssh-keygen -t rsa -b 4096
ssh-copy-id pi@192.168.1.100
Enter fullscreen mode Exit fullscreen mode
rsync -avz --progress pi@192.168.1.100:/home/pi/ /mnt/d/backup_rpi/
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Permit.io Launch week

Permit CLI Launch Week- Fully CLI-Based Access Control Is Here!

Join us for 5 days of live sessions, feature drops, and daily raffles. Discover how Permit.io’s new CLI simplifies fine-grained auth for developers.

Sign up

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay