Automated backup execution integrated into devflow workflow.
go install github.com/tinywasm/devflow/cmd/devbackup@latest# Set backup command
devbackup -s "freefilesync /path/to/config.ffs_batch"
# Get current command
devbackup -g
# Execute backup manually
devbackup
# Clear backup command
devbackup -s ""Linux/Debian:
devbackup -s '$(command -v FreeFileSync || command -v freefilesync) $HOME/Own/Sync/SyncSettings.ffs_batch'Windows:
devbackup -s '"/c/Program Files/FreeFileSync/FreeFileSync.exe" /c/Users/$(whoami)/SyncWin/SyncSettings.ffs_batch'The backup command is stored in ~/.bashrc with markers and escaped quotes:
# START_DEVFLOW:DEV_BACKUP
export DEV_BACKUP="$(command -v FreeFileSync || command -v freefilesync) $HOME/Own/Sync/SyncSettings.ffs_batch"
# END_DEVFLOW:DEV_BACKUPInternal quotes are automatically escaped when saving and unescaped when reading.
Variable is set immediately in current session and persists in .bashrc for future sessions.
gopush automatically executes backup at the end of workflow (asynchronous, non-blocking).
✅ Backup startedIf backup fails (async error):
❌ Backup failed: exit status 1
Output: error details0- Success1- Error (set/get failed)
- Execution is asynchronous (doesn't block terminal)
- Errors are shown but don't stop workflow
- Command runs via
sh -c(Linux/macOS) orcmd.exe /C(Windows) - User is responsible for proper command formatting
- Configuration persists across sessions and is available immediately
- FreeFileSync may show GTK warnings in background execution (this is normal)
- GUI applications run in background mode - check process/logs if uncertain about execution