Configuration
Basic Setup
Initialize a repository with local storage:Environment Variables
Storage backend URI. Use
local:<path> to specify the backup directory path.Examples
- External Drive
- Environment Variables
Features
Atomic Writes
The local store uses atomic writes for safety:- Data is written to a temporary file with
.tmpsuffix - The temporary file is renamed to the final path
- On POSIX systems, rename is atomic
Directory Structure
The local store creates this structure:Performance
Local storage offers the best performance:- Fast I/O: Direct filesystem access
- No network latency: Eliminates network round-trips
- Efficient deduplication: Fast local lookups
For networked filesystems (NFS, CIFS), performance depends on network speed and latency.
Best Practices
Backup Media
- External Drives
- NAS/Network Storage
Pros:
- Fast local backups
- No cloud costs
- Physical control
- Keep drive disconnected when not in use
- Store securely (encryption protects data)
- Test restore regularly
Permissions
Ensure the backup directory has appropriate permissions:Monitoring Disk Space
Monitor available space to avoid backup failures:cloudstic prune regularly to reclaim space from deleted snapshots.
Troubleshooting
Permission Denied
If you see “permission denied” errors:Disk Full
If the backup fails with “no space left on device”:- Check available space:
df -h /backup - Run prune to reclaim space:
cloudstic prune - Consider forgetting old snapshots:
cloudstic forget --keep-last 10 --prune
Network Mount Issues
For network mounts that disconnect:Related Resources
Backup Command
Create backups with local storage
Prune Command
Reclaim disk space
S3 Storage
Use cloud storage instead
SFTP Storage
Use remote SSH storage