can we set up two different backup options? (external EXT4 and S3 bucket)
humptydumpty last edited by girish
Is it possible to have different apps on the same cloudron backup data to two different backup locations?
My goal: I want to backup nextcloud data to an external ext4 drive while other apps will get uploaded to a Backblaze S3 bucket.
subven last edited by
You could backup your nextcloud data by a custom CRON where you just mirror copy Nextclouds appdata dir.
humptydumpty last edited by humptydumpty
@subven I'm not sure how to do that but I'll look into it. Thank you!
I'm guessing I have to set up the EXT4 drive as a VOLUME mount and use the S3 as the main backup option. Then, create the custom cron to mirror to the ext4 drive like you said. Cool!
subven last edited by subven
@humptydumpty not really as an app CRON but a cronjob on OS level. SSH into your server and do
crontab -e--> choose nano if you're not familiar with VIM. Just mount an external storage to the system and configure a cronjob to periodically rm and cp.
Just to be clear: This way you backup Nextcloud DATA, not databases and app settings like with a regular backup.
humptydumpty last edited by
@subven those steps are way above my pay grade. I have to set up a test server to fool around with first. Thanks for the advice!
https://rclone.org/ is great for this sort of automation. Just put the cronjob in your laptop or equivalent to copy over files between different remotes.
robi last edited by
@girish rclone integration for Cloudron as a feature would be a big win for use cases like this.
d19dotca last edited by
Interestingly I'm thinking of doing something like this. I recently migrated to an OVH dedicated server (finally was able to justify it), and it comes with some backup space over CIFS. I'm assuming that'll be much quicker to backup, so then I can just use that but also still have a cron that copies it over to an s3 bucket or something like that in the background overnight. Still pondering how to implement this but seems like something I may end up doing. Will report back if I can get a good detailed process down for it.
d19dotca last edited by d19dotca
Would definitely love to see this get implemented though so we can control backups directly in Cloudron rather than needing to setup external software for that use-case. Using Cloudron directly to setup multiple backups (i.e. daily or twice daily to external disk, then a second backup once weekly to s3 object storage would be amazing).
Feature request filed for this in 2020: https://forum.cloudron.io/topic/3818/backups-ability-to-add-multiple-storage-provider-location/
subven last edited by
@d19dotca yeah you could have the "fast" CIFS as backup target and replicate the backup to the S3 bucket. Having a off site backup is crucial in case there is problems with your provider. However, the original topic here was to backup an app to another target. Makes sense if you have for example a NAS with a huge media collection you want to backup but not within your regular Cloudron backup. With the method I suggested you would save (maybe encrypted) files and appdata but not databases so it's only a workaround if at all.