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?