Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update advanced-examples.md #121

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Update advanced-examples.md #121

wants to merge 5 commits into from

Conversation

yuuzhan
Copy link

@yuuzhan yuuzhan commented Jan 10, 2024

Added a monthly option to auto backup advanced examples. I also added compressed=true to the default examples :P

Added a monthly option to auto backup
@jcwillox
Copy link
Owner

jcwillox commented May 27, 2024

@yuuzhan Compressed already defaults to true right? so we probably don't need to include it in the examples

@yuuzhan
Copy link
Author

yuuzhan commented May 27, 2024

Correct, I did not realize that when I had made the edits :) Just did a test however and it is still compressed without the parameter set.

Added a unified daily, weekly, monthly example (2024.1 or newer)
@yuuzhan
Copy link
Author

yuuzhan commented May 27, 2024

I just added the code that I had been using to make use of the new Blocks for automation (allowing all your backups to be in one automation).

Removed compressed: true from examples
@jcwillox
Copy link
Owner

Great, looks good to me, only this is looks like you duplicated the Full backup on the 1st of every month example

jcwillox
jcwillox previously approved these changes May 28, 2024
Comment on lines 115 to 133
```yaml title="Full backup on the 1st of every month"
alias: "AutoBackup: Monthly Backup"
trigger:
# Choose a different time then your other automations
# to ensure that two are not running at once
- platform: time
at: "01:00:00"
condition:
- condition: template
value_template: "{{ now().day == 1 }}"
action:
- service: auto_backup.backup_full
metadata: {}
data:
name: "MonthlyBackup: {{ now().strftime('%A, %B %-d, %Y') }}"
# store backup for a year
# i.e. backup on the 1st, store for 12 months
keep_days: 365
```
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks to be duplicated above

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants