• 0 Posts
  • 3 Comments
Joined 2 years ago
cake
Cake day: December 12th, 2023

help-circle

  • I created my own script/tool using rsync to handle backups and transferring data.

    My needs are quite smaller with just a computer and two Raspberry Pi’s but I found rsync to be really useful overall.

    My backup strategy is to make a complete backup on the local device (Computer / RPi4 / RPi5) then copy all those backups to a Storage partition on my computer, then make a whole backup from the partition to an externally attached SSD.

    The RPi’s both use docker/podman containers so I make sure any persistent data is in mounted directories. I usually stop all containers before performing a backup, especially things with databases.

    Everything in the docker containers is either hit or miss when it comes to restoring. The simple docker images restore as it they were untouched and will launch like nothing happened. I have a PieFed instance that must be rebuilt after restoring a backup. Since PieFed’s persistent data is in mount points, everything works perfectly after a fresh build.

    I can send a link to my rsync tool if that’s any interest to anyone. I’ve found it super useful for backups and minimizes so much headache for myself when it comes to transferring files between different network connected devices.


  • I started self-hosting as a hobby and while I enjoy it, I was getting frustrated with file transfers between my computer, phone and two raspberry pi’s. Since I was already using rsync, I created a tool for myself to help sort rsync commands into sortable files.

    I can now lump together those files into a single command and run several rsync commands in one go.

    It’s definitely saved me some sanity by not having to refer to a wall of text full of rsync aliases.

    I posted it on codeberg.

    It is random code on the internet and it involves file transfers so if anyone uses it, those are the risks unless you care to read the code itself.