locked
Linux file restore with Azure Backup Python script RRS feed

  • Question

  • Hello,

    First of all, after clicking Ask Question in this forum, I see this forum description:  "Windows Azure Online Backup is a cloud-based backup solution for Windows Server 2012, Windows Server 2012 Essentials, and System Center Data Protection Manager 2012 SP1". Hopefully that has been expanded to include current versions of Windows and Linux?

    Had some trouble with Azure file restore under Ubuntu.

    The feature video https://azure.microsoft.com/en-us/blog/instant-file-recovery-from-azure-linux-vm-backup-using-azure-backup-preview/ shows the rep running a bash script ending in .sh. But now the script is in Python (.py).

    The instructions https://docs.microsoft.com/en-us/azure/backup/backup-azure-restore-files-from-vm say, "From the download location (usually the Downloads folder), right-click the executable or script and run it with Administrator credentials." Um, I don't think the Ubuntu command line supports right-clicking and running as Administrator.

    Trying to follow the video example, I uploaded the script to my Ubuntu machine and tried "sudo bash restore.py" and got this:

    restore.py: line 2: import: command not found
    restore.py: line 3: import: command not found
    restore.py: line 4: import: command not found
    restore.py: line 5: import: command not found
    restore.py: line 6: import: command not found
    restore.py: line 7: import: command not found
    restore.py: line 8: import: command not found
    restore.py: line 9: import: command not found
    from: can't read /var/mail/datetime
    restore.py: line 12: syntax error near unexpected token `('
    restore.py: line 12: `def supported_os_msg():'

    Well duh, I can't use bash on a Python script. So I went searching on how to run a Python script in Ubuntu. Simple answer from https://askubuntu.com/a/244380:

    chmod +x restore.py
    ./restore.py

    Works pretty well after that.

    Could you please update the documentation to list the steps for running the Python script? And perhaps update the forum description to reflect the currently supported OSs?

    Thanks,

    Mark Berry

    Friday, January 24, 2020 7:19 PM

Answers

  • @Mark Berry Thanks for the feedback. Appreciate you bringing this to our attention. Just an  FYI, this (MSDN) channel  is meant for discussing technical queries. You can use "GitHub" channel for any document enhancements, feedback or reporting doc-bugs. 

    Please share you valuable feedback on this link - https://docs.microsoft.com/en-us/azure/backup/backup-azure-restore-files-from-vm and we will engage the respective feature PM and content owner to evaluate your feedback and update the documentation as appropriate.

    -------------------------------------------------------------------------------------------------------------------------------------
    Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks! 

    Friday, January 24, 2020 8:46 PM
  • Thanks for the feedback. Greatly appreciate your time and patience here. Currently there is no development happening on the MSDN platform. Any feedback for improvements or feature requests will be taken into consideration and will be made available on the new platform "Microsoft Q&A".

    FYIWe're migrating from MSDN to Microsoft Q&A as our new forums and Azure Active Directory has already made the move!  In future, you can ask and look for the discussion forAzure Active Directory related questions here:  https://docs.microsoft.com/answers/topics/azure-active-directory.html.

    We are actively working to onboard remaining Azure services on Microsoft Q&A. We will make a public announcement once complete. Want to Learn more about new platform:Microsoft Q&A Getting Started

    --------------------------------------------------------------------------------------------------------------------------
    Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks!

    Saturday, February 1, 2020 10:34 AM

All replies

  • @Mark Berry Thanks for the feedback. Appreciate you bringing this to our attention. Just an  FYI, this (MSDN) channel  is meant for discussing technical queries. You can use "GitHub" channel for any document enhancements, feedback or reporting doc-bugs. 

    Please share you valuable feedback on this link - https://docs.microsoft.com/en-us/azure/backup/backup-azure-restore-files-from-vm and we will engage the respective feature PM and content owner to evaluate your feedback and update the documentation as appropriate.

    -------------------------------------------------------------------------------------------------------------------------------------
    Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks! 

    Friday, January 24, 2020 8:46 PM
  • Thanks for the prompt reply. I've created this Github issue:

    https://github.com/MicrosoftDocs/azure-docs/issues/46814

    As for the forum description, I think that the forum moderator is the one to fix that?

    Friday, January 24, 2020 9:13 PM
  • @Mark Berry The GitHub issue has been assigned to the feature PM. You should receive a response shortly.

    Modifying any Microsoft documentation needs approval from the content owners. That being said, forum moderators can only suggest doc-enhancements/doc edits and share feedback if any and the final approval comes from the doc-owners.

    Tuesday, January 28, 2020 6:51 AM
  • SadiqhAhmed,

    Yes, I've been getting notificaations about the Github feedback. That part of the question is handled.

    I think you have misunderstood my suggestion about this forum. At the top of this thread, hover over "Azure Backup". You will see a description of this forum. The description needs to be updated to reflect Windows 2016 and 2019, or maybe just say "currently-supported server operating systems." As it is, it sounds like this is an old forum that is no longer relevant:

    However, it is not clear to me if this forum still exists. When I go to the home page for TechNet forums and click on Forums [view all], I can no longer find "Azure Backup" as a subforum under Azure:



    Regards,

    Mark Berry

    Tuesday, January 28, 2020 5:40 PM
  • Azure backup forum doesn't exist on TechNet. MSDN does have Azure backup as a technical forum and it is also mentioned in the Azure backup documentation > Resources > MSDN forum
    Wednesday, January 29, 2020 11:19 AM
  • > Azure backup forum doesn't exist on TechNet. MSDN does have Azure backup as a technical forum

    Interesting. When I receive an email notification about this thread, the link takes me to TechNet:

    https://social.technet.microsoft.com/Forums/en-US/windowsazureonlinebackup/thread/39edad68-a1c0-4bd5-96eb-d74a90f5a28c/

    It says, "Another user, SadiqhAhmed-MSFT, has replied to a thread you have subscribed to in the Azure Backup Forum."

    "Azure Backup" is also going to TechNet:

    https://social.technet.microsoft.com/Forums/en-US/windowsazureonlinebackup/threads/

    So the emails are directing to TechNet, not MSDN.

    However, the forum info on MSDN is also out of date:

    Where is the appropriate place to report "meta" issues about the forums themselves? It's confusing for a new forum user when the links and description are 5-8 years out of date--it made me wonder if I had found the appropriate forum.

    Regards,

    Mark Berry

    Wednesday, January 29, 2020 5:53 PM
  • This could be an issue with the platform itself. This link - https://social.technet.microsoft.com/Forums/en-US/windowsazureonlinebackup/threads/ redirects me to the below page and am not able to find any results for my search on "Azure backup"

    Regarding the out of date information on MSDN I've to check with the concerned team "MSDN platform /Azure backup" to fix it.

    Thursday, January 30, 2020 9:55 AM
  • Well the recent embedded screen shots are not appearing, but I think you understand now. Sorry for taking this so far off topic, but I don't know where to report issues with the forums themselves (incorrect descriptions, incorrect links in emails, etc.). If you could pass that along to the people who maintain the infrastructure, I'd appreciate it.

    Regards,

    Mark Berry

    Thursday, January 30, 2020 5:51 PM
  • Thanks for the feedback. Greatly appreciate your time and patience here. Currently there is no development happening on the MSDN platform. Any feedback for improvements or feature requests will be taken into consideration and will be made available on the new platform "Microsoft Q&A".

    FYIWe're migrating from MSDN to Microsoft Q&A as our new forums and Azure Active Directory has already made the move!  In future, you can ask and look for the discussion forAzure Active Directory related questions here:  https://docs.microsoft.com/answers/topics/azure-active-directory.html.

    We are actively working to onboard remaining Azure services on Microsoft Q&A. We will make a public announcement once complete. Want to Learn more about new platform:Microsoft Q&A Getting Started

    --------------------------------------------------------------------------------------------------------------------------
    Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks!

    Saturday, February 1, 2020 10:34 AM
  • Thank you for the additional explanation. I'll look forward to seeing the topics after migration to the new platform.

    Mark Berry
    MCB Systems

    Monday, February 3, 2020 7:45 PM
  • @Mark Berry, 

    We are trying to improve the backup experience of our customers by gaining their feedback. It would be of massive help to the Azure Backup team if you could fill this survey. Please do consider helping us out.

    https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR6rBDW07P91EvyrPQQLkxY9UQk5TWjJXQTJNUEhVRUtSNDBCTUNCMzYxQi4u

    Friday, May 15, 2020 11:45 AM