This project extends the jckleiner/notion-backup project by patching a couple of bugs and incorporating a scheduler to the Docker image so that the backups can be scheduled. This is achieved using a cron which scheduling is based on an .env value.
An updated .env.dist file is provided with the original project's variables (see README -> Set Credentials) plus a couple of custom more. A compose.yaml is included too, to ease up the configuration of the container.
Follow the instructions at README -> Set Credentials and add:
BACKUP_PATHto set where do you want your backup files to be storedSCHEDULING_CONFIGto set the scheduling interval. Check out this link for more information on the format
Just start the service with docker compose and you are good to go:
docker compose up -d