ops-gaurav / azure-storage-backup

Microsoft Azure Storage Backup npm module
https://www.npmjs.com/package/azure-storage-backup
5 stars 2 forks source link

Copying all containers in other storage #1

Open younasmt opened 6 years ago

younasmt commented 6 years ago

Hi Sharma, Thanks for sharing storage backup in another account. In our scenario, we don’t know how many containers in our blob storage. Also, these containers increasing dynamically daily. Is there any script can copy all containers in another cross subscription storage account?

ops-gaurav commented 6 years ago

@younasmt The current version supports this feature. Make sure to create a config file as mentioned in README documentation mentioning source and target account configurations. You can use triggerBlobAccountBackup() to trigger copy of all the blobs along with containers from source to target account.

Make sure that you provide this in your config:

younasmt commented 6 years ago

Big thanks Sharma. Let me try it. Can i run this code like Microsoft PowerShell after creating config file?

ops-gaurav commented 6 years ago

@younasmt No idea about windows. But yeah, you first have to create a node script. Then use the configuration file there and call relevant functions to trigger backup. After that you can execute your script using node.

On 28-Oct-2017, at 1:07 PM, Tariq Younas notifications@github.com wrote:

Big thanks Sharma. Let me try it. Can i run this code like Microsoft PowerShell after creating config file?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sharma02gaurav/azure-storage-backup/issues/1#issuecomment-340156847, or mute the thread https://github.com/notifications/unsubscribe-auth/AGUa_hMMS4ysnU5NksV5yCW5DHEaG92Hks5swtnHgaJpZM4QJ2RS.

younasmt commented 6 years ago

Ok, is it possible to run on CLI which is cross-platform.