abh1sar commented on issue #12218: URL: https://github.com/apache/cloudstack/issues/12218#issuecomment-3669594907
@rp- You can restore to the same VM or to a new VM instance. Restore is basically rsync from the backup file to the instance volume. So, for restore we just need to know the backup file path and the path of the instance volume (same vm or different). In this case the backup file path is `backup_repo:/<backup_dir>/root.drbd1030.qcow2` (NAS adds the `root` and `qcow2` prefix and suffix incorrectly for Linstor which needs to be changed) But let's say we make some change to the code and the backup path is now `<backup_dir>drbd1030`. And let's say the path that the DRBD device is exposing to the user for the volume is `/dev/drbd1030`. Will `rsync <backup_di>/drbd1030 /dev/drbd1030` work for restoring the backup? If yes, we need a way to detect the destination path (`/dev/drbd1030`) from within cloudstack. Is domainxml the only way? Also, I think we would need to store the backup_path in some metadata? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
