I’ve a RPi4 with a Samsung T7 2TB attached to it and formatted as ext4, this drive stores Transmission’s downloads and Plex’s media library.
I would like to backup its content say once a week or so as it’s not changing too much too often and I tought about letting dietpi-sync backup the content to a network share.
I would like to buy a Samsung 870 Evo 4TB as it’s currently discounted on Amazon and use it for other things as well.
I would mount the 870 on my gaming pc and share it on lan.
My pc is running W11, can I format the 870 as an NTFS drive and share? Would this cause problems with the RPi4 and/or dietpi-sync?
You could just put an external HD enclosure…and have it rsync the data with a script
If not…then you can so a samba share (from gaming PC), mount the samba share (on local RPi4 [with proper permissions]), then rsync into that directory
I believe you can also force an rsync thru ssh as well, this is how I backup all my audiobooks from my torrent download server on my unraid box (BTRFS) to my truenas server (ZFS) rsync -avzhP --delete /mnt/user/read-write/ebooks_audiobooks/audiobooks/ warhawk@192.168.0.9:/mnt/optimus/NAS/WarHawk/audiobooks/
this tells it to log into the 192.168.0.9 as user warhawk and upload all the audiobooks in the /mnt/user/read-write/ebooks_audiobooks/audiobooks/ directory…and automatically delete any missing files from the pushed to directory (I convert many of my .mp3 chapterized files using the audiobookshelf converter to m4b, so when converted…it deletes the many .mp3 files from the “backup” server directory
Aparently windows has a program called robocopy that is VERY VERY similar to rsync in many aspects
Yes I’ve another USB3 available but I cannot put powered hub due to space constraints, I know
Would probably go this route.
Is dietpi-sync fine? I’ve read it uses rsync under the hood but dietpi-sync would allow me to set a scheduled backup, set and forget like.
Thanks! But I just need to make a backup of the drive connected to the RPi4 on the drive connected to my gaming PC, not the other way around.
Another question, this is a media drive with 1.5TB of media (movies and tv series) and dietpi-backup, if I set a daily dietpi-sync to the other drive and media hasn’t changed, would dietpi-sync do anything at all, given the 2 drives are the same?
If it’s using rsync…it will check the hashes of the data on the TARGET drive and if the same do nothing, if it has to push data, it will push only the data that is changed or missing
Thus the beauty of partial sync…it only changes what is needed to change rather than trying to re-upload/write over what is already there making it MUCH MUCH faster
Also…this is why I bought a cheap powered external USB enclosure…I have a OPiPC running torrent to a 2TB external drive just for that reason…It can share at full speed of 100mb/s to the network and not flood in either or cap out my inbound/outbound bandwidth in either direction…and it happily just chugs along…now pulling data off the torrent server sucks…but it is what it is in that aspect.
Yeah I tought that too but as I said I cannot put another PSU where I’ve the RPi’s one and others
I unfortunately cannot do the same with my RPi4 as it tops around 50/60 MBps on a Gigabit fiber connection, probably an hardware limitation/horsepower limitation of the RPi4