Created
July 24, 2019 14:19
-
-
Save pehprado/3fa58c9aa8304adb493ed1d9216251e9 to your computer and use it in GitHub Desktop.
Query pra fazer o backup do banco e salvar num bucket do S3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec msdb.dbo.rds_backup_database | |
@source_db_name='DatabaseName', | |
@s3_arn_to_backup_to='arn:Bucket/filenameWithExtension', | |
@overwrite_S3_backup_file=1, | |
@type='differential'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment