For those using VPS services, how do you go about keeping your data backed up?
outbound @ outbound @lemmy.ca Posts 0Comments 39Joined 2 yr. ago
outbound @ outbound @lemmy.ca
Posts
0
Comments
39
Joined
2 yr. ago
I wrote a bash script that runs daily which 7z (AES256) the databases (well... I dump the DB as text and then 7z those files), web files (mostly WordPress), user files, all of /etc, and generate a list of all installed packages, and then copy the archives to a timestamped folder on my Google drive (I keep the last two nights, plus the last 3 Sundays).
TBH, the zipped content is around 1.5GB for each backup. So my 17GB of free GDrive space more than enough. If I actually had a significant amount of data, I'd look into a more robust long term solution.
If there was a catastrophic failure, it'd take me around six hours to rebuild a new server and test it.