https://github.com/bborbe/backup-cleanup
https://github.com/bborbe/backup-cleanup
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bborbe/backup-cleanup
- Owner: bborbe
- License: bsd-2-clause
- Created: 2016-04-07T13:36:12.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-03-02T19:50:36.000Z (over 7 years ago)
- Last Synced: 2024-06-21T12:49:44.255Z (almost 2 years ago)
- Language: Go
- Size: 213 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Cron for cleanup Backups
## Install
```
go get github.com/bborbe/backup-cleanup
```
## Run Backup
One time
```
backup-cleanup \
-logtostderr \
-v=2 \
-lock=/backup/backup-cleanup.lock \
-dir=/backup \
-match='backup_.*tar.gz' \
-keep=5 \
-one-time
```
Cron
```
backup-cleanup \
-logtostderr \
-v=2 \
-lock=/backup/backup-cleanup.lock \
-dir=/backup \
-match='backup_.*tar.gz' \
-keep=5 \
-wait=1h
```