this post was submitted on 10 Oct 2024
1 points (100.0% liked)

It's A Digital Disease!

23 readers
1 users here now

This is a sub that aims at bringing data hoarders together to share their passion with like minded people.

founded 2 years ago
MODERATORS
 
The original post: /r/datahoarder by /u/-yphen on 2024-10-09 22:39:05.

I want to backup my entire drive from my main server at my house to a raspberry pi at my parents house using rsync

This is my current command that I use. I run the command on the raspberry pi, so it is pulling the data. I am using tailscale to connect everything.

sudo rsync -rvah --progress --exclude '.recycle' /home/pi/homeserver/homework/ /home/pi/backupserver/homework/

/homeserver is my server mounted to a folder with samba

/backupserver is a usb hard drive mounted on the pi

I want to preserve permissions, dates, all the metadata stuff. I basically want the electrons on my backup server to be aligned in the exact same way they are on my home server, excluding the .recycle folder.

Is this the correct way to do it, or is there a better way?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here