Skip to content

Commit

Permalink
add an example crontab for btrfs2s3 update
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrudenell committed Aug 8, 2024
1 parent 54217a3 commit 0494cb4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,12 @@ prompt for confirmation. It will refuse to run in a non-interactive terminal, un
Currently, the main way to use `btrfs2s3` is to set up `btrfs2s3 update` to run in a
crontab. Note that `btrfs2s3 update` may be long-running or not, depending on whether
it's uploading a new full backup, so you may need some protection in your crontab
configuration to ensure only one copy of of `btrfs2s3 update` will run at one time.
`btrfs2s3 update` does not guarantee this on its own.
it's uploading a new full backup. If running from cron, you may want to protect against
multiple copies running at once, like this:
```crontab
* * * * * pgrep btrfs2s3 >/dev/null || btrfs2s3 update --force config.yaml
```

`--pretend`: Instead of performing actions, *only* print the preview of what actions
would be performed, then exit.
Expand Down

0 comments on commit 0494cb4

Please sign in to comment.