olsync is a simple command-line tool for synchronizing your Overleaf projects to your local machine, making it easy to back up and manage LaTeX projects offline.
- Copy the configuration template
cp config.template.yaml config.yaml
- Edit config.yaml
Open the config.yaml file in your favorite editor and fill in the required fields:
overleaf.baseUrl – Your Overleaf base URL (usually https://www.overleaf.com)
overleaf.cookies – Your authentication cookies (get them from your browser developer tools)
backup.path – The folder where backups will be stored
backup.keep_last – How many recent backups to keep per project
backup.schedule – Cron expression for automatic backups
- Build and Run
make build
The compiled binary will be placed in the ./bin
folder.
For example, on Linux you might see:
./bin/olsync-linux-amd64
The default is to use the config.yaml file in the current path.
You can specify a custom configuration file by passing its path as an argument:
./bin/olsync-linux-amd64 ./config2.yaml