Building cron.xml - line breaks in URL

30 views
Skip to first unread message

Craig Detter

unread,
Aug 29, 2017, 12:19:07 PM8/29/17
to Google App Engine
I'd like to be able to break up my backup definition to multiple lines, this is how it reads:


<cron>
<description>My Daily Backup</description>
<url>/_ah/datastore_admin/backup.create?name=DailyBkup&amp;kind=Customer&amp;kind=CustomerCommercial&amp;kind=Products&amp;kind=Vendor&amp;kind=Services&amp;filesystem=gs&amp;gs_bucket_name=my-backup</url>
<schedule>every 24 hours</schedule>
<target>ah-builtin-python-bundle</target>
</cron>


I'd like to be able to format it like below. 
However it keeps failing on upload. I've tried various options including \ and breaking the line in different places.
Is there any way to accomplish this?

<cron>
<description>My Daily Backup</description>
<url>/_ah/datastore_admin/backup.create?name=DailyBkup
&amp;kind=Customer
&amp;kind=CustomerCommercial
&amp;kind=Products
&amp;kind=Vendor
&amp;kind=Services
&amp;filesystem=gs
&amp;gs_bucket_name=my-backup</url>
<schedule>every 24 hours</schedule>
<target>ah-builtin-python-bundle</target>
</cron>

Shivam(Google Cloud Support)

unread,
Aug 29, 2017, 5:19:06 PM8/29/17
to Google App Engine
This doesn’t seem to be possible as upon encoding it is inserting an ASCII character ‘LF’ at every instance of a line break. You can use this online tool to see how url is encoded.
Reply all
Reply to author
Forward
0 new messages