Dietpi-sync to network share

Hi!

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?

Thanks!

dietpi-backup is supporting NFS network shares only.

Forgive me I’m an idiot :sweat_smile: I meant dietpi-sync.

https://dietpi.com/docs/dietpi_tools/system_maintenance/#dietpi-sync

The target location can be anything from a networked samba file server, or even an FTP server.

Sounds like NFS should be possible. If not maybe a workaround with a symlink to your NFS share could be possible?!
I will try this later today.

Yeah I remember seeing that a network share is possible, like mounting it from dietpi-drive_manager and selecting it as the target location.

So I would need to enable NFS share on my gaming PC? Could be a Samba share too?
Does the drive filesystem matter in this case?

Do you have any more USB ports on the RPi4?

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

1 Like

Yes I’ve another USB3 available but I cannot put powered hub due to space constraints, I know :zipper_mouth_face:

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.

Great :+1:

Yeah I tought that too but as I said I cannot put another PSU where I’ve the RPi’s one and others :smiling_face_with_tear:

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 :smiling_face_with_tear: