Update readme files to reflect changes

This commit is contained in:
Craig
2025-04-23 16:21:53 +01:00
parent db117456dc
commit 7bd4927b3c
3 changed files with 55 additions and 27 deletions

View File

@@ -3,16 +3,22 @@ This creates a backup on the local filesystem, but does not persist it anywhere
the best solution i have to to manually upload this to proton drive.
## configure
Can add new backups to this by adding another conf file. See services.json for examples and exclude patterns for more details.
Can add new backups to this by adding another conf file. See configs directory for examples.
Each config file should include:
- `outputDir`: Where to store the backup
- `inputs`: List of directories/files to back up
- `ignorePatterns`: List of patterns to exclude
- `archiveType`: Either "tar" (default) or "zip" (faster, lower compression)
## running
Can run with ./backup.py, or create a cron job.
current crontab entry is. (every sat at 0105.)
Current crontab entry is (every sat at 0105):
```
sudo crontab -e
5 1 * * 6 /home/craig/services/simple-backup/backup.py >> /var/log/simple-backup.log 2>&1
```
want to change this to once a week or something, just like on sunday
## exlude patterns
Uses simple "filter" in "path", so no globbing/regexing.