Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can i use this code on Ruckus unleashed(Wifi-AP) for Auto backup of the configuration? #1

Open
vignesh8458 opened this issue Dec 10, 2023 · 4 comments

Comments

@vignesh8458
Copy link

Hello,

We are using Ruckus Unleashed (Wifi-AP), and we are looking for an auto-backup solution.

So Can i use this code on Ruckus unleashed(Wifi-AP) for Auto backup of the configuration?

Or if you have any other solution to auto-backup the configuration for Ruckus Unleashed (Wifi-PA), please let me know.

@ms264556
Copy link

Or if you have any other solution to auto-backup the configuration for Ruckus Unleashed (Wifi-PA), please let me know.

This code is for Ruckus ICX switches, rather than WiFi APs.

https://github.com/miguelangel-nubla/ruckus-dpsk-manager has a backup command, and is the easiest way to do this.

If you need more flexibility or prefer to script in python rather than using a go executable, then my aioruckus library has a .get_backup() method.

Or if you want to do the entire thing in a shell script then you can refer to the script here & modify it download the file at $ZD_BASE_URL/_savebackup.jsp rather than uploading certificates.

@vignesh8458
Copy link
Author

vignesh8458 commented Dec 15, 2023 via email

@ms264556
Copy link

Sure, but please ask any further questions over at aioruckus rather than here.

import asyncio
from datetime import datetime
from aioruckus import AjaxSession

async def backup_demo():
    """aioruckus backup demo"""

    backup_filename = "/path/to/backups/folder/ruckus_" + datetime.now().strftime("%y%m%d_%H%M") + ".bak"

    # example of saving a backup
    async with AjaxSession.async_create("<unleased IP address>", "<unleashed username>", "<unleashed password>") as session:
        backup = await session.api.get_backup()
        with open(backup_filename , "wb") as file:
            file.write(backup)
        
asyncio.run(backup_demo())

@vignesh8458
Copy link
Author

vignesh8458 commented Dec 19, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants