-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff728df
commit 7c17ee5
Showing
1 changed file
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,36 @@ | ||
# cron-backups | ||
# ⏱️📦 Cron Backups | ||
Cron backups is a docker image to automate periodic backups easily to Dropbox with only one Docker container! | ||
|
||
## Features | ||
- Auto compression | ||
- Periodic backups | ||
- Multiple folder selection | ||
- Tiny footprint (9Mb) | ||
- Upload to Dropbox | ||
|
||
## Usage | ||
You only need to set your backup folders and 2 environment variables. | ||
|
||
### Volumes | ||
It backups every folder you mapped into `/backup` folder with volumes | ||
|
||
### Environment Variables | ||
`CRON`: Crontab value to set period of backups. Ref: https://crontab.guru/ | ||
|
||
`DROPBOX_TOKEN`: Access Token you get for Dropbox folder. Ref: https://www.dropbox.com/developers/apps/create | ||
|
||
### Example | ||
Edit docker-compose and run with `docker-compose up -d` | ||
``` | ||
version: '3' | ||
services: | ||
caddy: | ||
image: yunussandikci/cron-backups | ||
volumes: | ||
- /Users/yunussandikci/Pictures/:/backup/Pictures | ||
- /Users/yunussandikci/Downloads/:/backup/Downloads | ||
- /Users/yunussandikCci/Documents/Zoom/:/backup/Zoom | ||
environment: | ||
CRON: "* * * * *" | ||
DROPBOX_TOKEN: "<dropbox_token>" | ||
``` |