Oct 24, 2018 12:32 PM
Hi folks,
A few weeks back we shared a show and tell about a custom zapier connector for automating the Airtable environment, and the feedback has been awesome so far. Today, as part of the Openside team, I wanted to share how you can use that connector to solve a long standing missing feature with airtable: external backups. The whole process of setting up automatic backups should take less than 20 minutes.
But first, I want to verify that I’m on the right track. Who here needs/wants their Airtable backed up regularly?
POLL: How critical are backups to your business?
0 voters
If you answered “yes” to either option above, or want backups to be set-up-and-automatic ever after, then give this a go:
Here’s what you’ll need to make it work:
Disclaimer: We are not associated with Airtable or Zapier (although we are an Expert Partner of Zapier). Setting up this backup requires entering your API key into Zapier and our connectors which means we technically do have access to it, however we do not store it on our systems anywhere. It is only stored on Zapier’s systems, similar to the existing connector.
Using the Schedule by Zapier trigger, set how often you want to run a backup.
Select the Openside Airtable Connector. In the “choose action” menu, select the Search: Bulk Find Multiple Records option
Select your Base, then your first Table to be backed up
(At this point you can choose to customize the backup with a number of options, including filtering by view or formula, sorting the backup by field, or selecting only some fields to be returned. Ignore the Replace Commas option)
Select YES to output as JSON (return results as JSON):
Add a step to your Zapier workflow. Select the Openside Line Items action option.
Note: If you are OK backing up your data as JSON data instead of a CSV file, this step (and using the Openside Line Items connector) can be skipped. CSV is a more common format and can easily be opened in excel or Google Sheets. JSON is for more technical use cases.
Once you have that, select the option to Convert JSON string to CSV
Under the JSON Text option, use the Insert a Field button in the top right of the field, and select the bulk extract file output from Step #2 above (the result your previous Search in the Zap flow):
In the Output File Name field, specify your file output name. I usually just make it the same name of the table I’m backing up.
This returns a url to the csv file, which can then be attached to an email, input into email body, saved to Google Drive, or viewed later (see Step #4 below)
Depending on your base size, you’ll want to create additional Search and Actions within your Zapier workflow for each table you want backed up. If your base has 3 Tables within it that you want to backup, you’ll want to have a Search (Step #2 above) and Action (Step #3 above) for each: 3 tables x 2 steps for each = 6 steps.
This needs to be done for every table you want backed up
After all table backup steps are set up, you’ll want a final action to specify how the backup files will be output, and where.
A few options available to do this:
Option A:
Send yourself an email via Email by Zapier with all the .csv file links in the body. You can then download or auto-categorize them how you want.
Note: because of Zapier’s limits to files sizes and number of attachments, it’s not possible at this time to send yourself an email with all the backups attached to it. To accomplish this you’ll need to use an alternative Email solution such as Gmail, Sendgrid, Mailgun, etc. (Option C below)
Option B:
Send it to a Google Docs as a backup location (see Google Docs and Zapier documentation for how to do this)
Option C:
Send it to yourself via your own email service (see Zapier and your email service documentation for setting up this option)
Hope that helps! Would love to hear your feedback on it. If you need more details while setting up your backup, feel free to read the full documentation here.
For convenience, here again are the links to items you need to get this setup:
Dec 20, 2020 10:42 PM
Have anyone tried single backup solutions like - probackup.
https://probackup.io/backup/airtable
Found this when I am looking for scheduling options, the requirement is it requires installing their Chrome browser extension. Might take a look into it and explore.
Apr 06, 2022 10:27 AM
We now have an easier way to create Airtable backups with our On2Air Backups app!
Apr 13, 2022 08:04 AM
Here is my solution - hope this helps anyone looking for csv backup.