Available Sources
Cloudstic supports the following source types:Local Directory
Back up files from your local filesystem
SFTP Server
Back up files from a remote SFTP server
Google Drive
Back up files from Google Drive (My Drive or Shared Drives)
OneDrive
Back up files from Microsoft OneDrive
How Sources Work
All sources implement a common interface that provides:- File enumeration — Walk through all files and folders
- File streaming — Read file content for backup
- Metadata — Collect file attributes (size, modified time, owner)
- Incremental support — Some sources support delta-based backups
Full vs. Incremental Backups
Full scan sources enumerate all files on every backup:local— Local filesystemsftp— SFTP servergdrive— Google Driveonedrive— OneDrive
gdrive-changes— Google Drive with Changes API (recommended)onedrive-changes— OneDrive with Delta API
Incremental sources are significantly faster for subsequent backups because they only fetch changes since the last backup, rather than scanning the entire source.
Common Configuration
Exclude Patterns
All sources support exclude patterns using gitignore syntax:.backupignore file:
Environment Variables
Common source-related environment variables:| Variable | Description |
|---|---|
CLOUDSTIC_SOURCE | Default source type |
CLOUDSTIC_SOURCE_PATH | Default source path (for local/SFTP) |
CLOUDSTIC_DRIVE_ID | Google Drive shared drive ID |
CLOUDSTIC_ROOT_FOLDER | Google Drive root folder ID |
Source Information
Each backup snapshot stores source metadata that identifies where the data came from:- Type — Source type (e.g.,
local,gdrive,onedrive) - Account — Account identifier (hostname, email, user@host)
- Path — Source-specific path or location
- Find the previous snapshot from the same source for incremental comparison
- Group snapshots in retention policies
- Display backup history
Choosing a Source Type
Use Local when:
- Backing up files on the same machine as Cloudstic
- You want the fastest backup performance
- Files are on directly mounted storage
Use SFTP when:
- Backing up files from a remote server
- You have SSH access to the server
- You want to avoid installing Cloudstic on the remote machine
Use Google Drive when:
- Backing up cloud files from Google Drive
- You want to preserve Google Drive’s folder structure
- You need to back up Shared Drives
- Use
gdrive-changesfor faster incremental backups
Use OneDrive when:
- Backing up cloud files from Microsoft OneDrive
- You want to preserve OneDrive’s folder structure
- Use
onedrive-changesfor faster incremental backups