Giter Site home page Giter Site logo

airtable_full_backup's Introduction

Full Backup Of Airtable Data

Only backs up the record data, table schemas and attachments.

Does not back up interfaces and automations.

Requirements

To run this you need:

  • Python 3
  • python-dotenv module
  • pyairtable module
  • requests module

Installed by running python -m pip install python-dotenv requests pyairtable

Set up

  1. Go to https://airtable.com/create/tokens
  2. Create an API token with the scopes:
    • data.records:read
    • schema.bases:read
  3. Create a .env file in the base directory
  4. Add the line AIRTABLE_ACCESS_TOKEN=<paste your token in replace of this>

Running the backup

Run python airtable_backup.py in the root directory.

Once it is done, you can zip and upload your backup to wherever you would like to keep it.

airtable_full_backup's People

Contributors

joe-irving avatar

Stargazers

Oliver Offing avatar

Watchers

 avatar

airtable_full_backup's Issues

Colons in {datetime.now()} result in invalid path on Windows

backup_dir = f"./backups/{datetime.now()}"

C:\Programs\airtable_full_backup>airtable_backup.py
Traceback (most recent call last):
  File "C:\Programs\airtable_full_backup\airtable_backup.py", line 12, in <module>
    os.makedirs(backup_dir)
  File "C:\Users\PC\AppData\Local\Programs\Python\Python310\lib\os.py", line 225, in makedirs
    mkdir(name, mode)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: './backups/2023-03-11 00:17:02.026826'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.