-
Notifications
You must be signed in to change notification settings - Fork 4
API Reference
Abijith Balaji edited this page Jun 28, 2025
·
1 revision
Run Ogresync from the command line:
python Ogresync.py [options]-
--config-dir PATH- Use custom config directory -
--vault-path PATH- Set vault path directly -
--no-gui- Run without GUI (background only) -
--debug- Enable debug logging
Location:
- Windows:
%APPDATA%\Ogresync\config.json - Linux:
~/.config/ogresync/config.json
{
"vault_path": "/path/to/your/vault",
"repo_url": "https://github.com/user/repo.git",
"github_token": "your_token_here",
"auto_sync": true,
"sync_interval": 300,
"backup_enabled": true,
"max_backups": 10
}-
vault_path- Folder to sync -
repo_url- Git repository URL -
github_token- Your GitHub personal access token -
auto_sync- Enable automatic syncing (true/false) -
sync_interval- Seconds between sync checks (default: 300) -
backup_enabled- Create backups before changes (true/false) -
max_backups- Maximum number of backups to keep
-
0- Success -
1- General error -
2- Configuration error -
3- Git error -
4- Network error
-
OGRESYNC_CONFIG_DIR- Override config directory -
OGRESYNC_DEBUG- Enable debug mode (set to "1")
Use your system's service manager to run Ogresync automatically:
Windows (using Task Scheduler):
schtasks /create /tn "Ogresync" /tr "python C:\path\to\Ogresync.py --no-gui" /sc onstartLinux (using systemd):
Create /etc/systemd/system/ogresync.service:
[Unit]
Description=Ogresync File Sync
After=network.target
[Service]
ExecStart=python /path/to/Ogresync.py --no-gui
Restart=always
User=your-username
[Install]
WantedBy=multi-user.targetThat's all the technical details you need!