Hi everyone. Scenario is automated Backups (as is good practice) without having to buy and run two syncloud devices.
regularly backup my “data” folder (/opt/disk/internal) to an external storage medium
do a clean install of Syncloud to a new SSD and SD like described in the Wiki
insert both into my device (Odroid)
replace my “data” folder with my backup
Will my Syncloud installation be completely restored to the way it was when I did the backup? Will I have to setup anything else afterwards (like DNS registration etc)?
If backing up “data” isn’t sufficient, would I be better of just taking out the whole SSD everytime and cloning it to a 2nd one?
Because it’s easier than running Syncloud on my Windows PC and I don’t have a spare Raspberry etc lying around. So would restoring the “data” folder restore all the Syncloud Settings etc? Or would it mean I’d have to reconfigure some things?
Aha! I see. I think the documentation about mirroring is not really precise then because it doesn’t specify that I should set the root directory as the sync folder. Just “Share Data and save” so I thought you meant the “data” folder.
We can’t mirror certain system folders, though, right? Like /dev
Sorry my bad let me clarify, /data dir is for apps generated data, but when you enable auto backup you naturally start gererating backups of every app into /data/platform so /data becomes the ultimate source.
You can then use /data and that is exactly what device mirror does:
I see. Thank you very much! I actually also prefer this because in case of corruption the damage might be synced to the 2nd Syncloud device if Syncthing is active at all times (versus having a backup synced once a week).
So the solution without having a VM or second device running would be:
Auto Backup all apps
Setup some automatic transfer of /data to my PC backup drive (via FTP or Syncthing)
And in case a restore is needed:
Setup Syncloud device
Transfer backup to /data
Restore all Backups in Settings
What about the other settings, like device activation to assign the DNS? These would have to be done manually, right?
Currently platform and syncthing apps are excluded from automatic backup as it will break mirroring.
Platform app is the main device admin which contains dns, user accounts, settings when to backup …
So cutrently these are not backed up, which probably is not great especially users. But it allows you to create another device under a different domain name mirrored live. So in your case it is not live and any issue you have in the backup you may find out when primary device is dead already. So make aure you test it from time to time.
makes sense. I don’t want to break anything and don’t have the time to reconfigure my whole Syncloud device right now so I’m just occasionally cloning the whole SSD (taking it out and attaching it to a laptop). So worst case I can just swap out the SSD and have a working Syncloud and put the nextcloud files I’ve changed the last months back on.