• 1 Post
  • 1 Comment
Joined 3 months ago
cake
Cake day: March 10th, 2025

help-circle
  • I assume you basically want protection against disasters, but not high uptime. (E.g. you likely can live with a week of unavailability if after a week you can recover the data.)

    Exactly. These are not business-data, but my personal data. No money or absolutely necessary thing is lost if I lose all of that.

    The key is about proper backups.

    Thanks to other commenters I realized, I can just export contacts, calendar events and photos every night to some on-disk location and back them up somewhere offsite. This would probably be a few GB only. The other ~1.5 TB of data is stuff like movies, music, old games that I’d probably never get anywhere else etc. My data is not life-threatening. It’s just “critical” to me.

    Via google I found that you can export your calendars via a URL, so I my current backup plan is this:

    • daily backup from onsite-hypervisor to onsite-backup server (all VMs and all data)
    • daily export of calendar and contacts
    • backup calendar, contacts and photos to offsite-location

    This way, I’d still be compliant to the 3-2-1 rule (just not for all my data), while saving quite some money on the offsite data storage.

    As you are already using nextcloud, could you verify if exporting calendars and contacts work with these 2 URLs?

    # calendar export
    https://${NEXTCLOUD_URL}/remote.php/dav/calendars/${NEXTCLOUD_USER}/${CALENDAR_NAME}/?export
    
    # contacts
    https://${NEXTCLOUD_URL}/remote.php/dav/addressbooks/users/${NEXTCLOUD_USER}/contacts/?export
    

    This is the command used in this tutorial. The website is in german, scroll down for bash, python, nodeJS and windows powershell examples.

    curl -L -J -O -u "$username:$password" "$downloadLink" --create-dirs -o "./$(basename "$url")"
    

    my Nextcloud server is running in a datacenter. Every week I run a backup to a USB drive that I keep in a third location.

    If you don’t mind me asking, how much are you paying for your datacenter server and the third location?