can we set up two different backup options? (external EXT4 and S3 bucket)
-
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 I'm not sure how to do that but I'll look into it. Thank you!
Edits:
found step 1: https://docs.cloudron.io/apps/#cron
found step 2: https://docs.cloudron.io/volumes/#ext4I'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!
-
@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.
-
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.
-
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/
-
@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.
-
@subven said in can we set up two different backup options? (external EXT4 and S3 bucket):
but not databases so it's only a workaround if at all.
What about the dump inside the application folder? Is it possible to use it for database recovery?
-
@d19dotca said in can we set up two different backup options? (external EXT4 and S3 bucket):
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/
Hello,
I'll take up the topic here again. The possibility of setting up two backup targets should be manageable in terms of implementation effort (after all, everything is already in place). Will this function be implemented? @girish
Greetings