You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
470 B
13 lines
470 B
{% macro get_backup_table_command(table, day_of_month) %}
|
|
|
|
{% set backup_key -%}
|
|
day_{{ day_of_month }}/{{ table.database.lower() }}/{{ table.schema.lower() }}/{{ table.name.lower() }}/data_
|
|
{%- endset %}
|
|
|
|
copy into @s3://awsnowflakedata/adventureworks.public.backup_stage/{{ backup_key }}
|
|
from {{ table.database }}.{{ table.schema }}."{{ table.name.upper() }}"
|
|
header = true
|
|
overwrite = true
|
|
max_file_size = 1073741824;
|
|
|
|
{% endmacro %}
|