Compare commits
No commits in common. "084abaa3a18c6d8186881fd3ccf73d4f92e39170" and "87ca8e84007ae407b88d87b4229627bdb939153e" have entirely different histories.
084abaa3a1
...
87ca8e8400
|
@ -44,7 +44,7 @@ restic-b2 check
|
|||
* Monthly music library backup:
|
||||
|
||||
```zsh
|
||||
restic-b2 backup --tag "$(date-last-month-year)" ~/Beets
|
||||
restic-b2 backup --tag "$(date -d "$(date +'%Y-%m-01') -1 day" +'%B %Y')" ~/Beets
|
||||
```
|
||||
|
||||
* KeePassXC database:
|
||||
|
|
|
@ -3,6 +3,6 @@ XDG_DOWNLOAD_DIR="/media/Lagoon/Downloads/"
|
|||
XDG_TEMPLATES_DIR="$HOME/"
|
||||
XDG_PUBLICSHARE_DIR="$HOME/"
|
||||
XDG_DOCUMENTS_DIR="$HOME/"
|
||||
XDG_MUSIC_DIR="$HOME/Staging Beets"
|
||||
XDG_MUSIC_DIR="$HOME/Beets/Staging/"
|
||||
XDG_PICTURES_DIR="$HOME/"
|
||||
XDG_VIDEOS_DIR="$HOME/"
|
||||
|
|
|
@ -1,12 +1,3 @@
|
|||
# Returns the previous month as "Month Year" (ie. "April 2023").
|
||||
# date-last-month-year
|
||||
date-last-month-year () {
|
||||
# The inner date "+'%Y-%m-01'" gets the date of the current month with 01 as the day.
|
||||
# Then that date has 1 day subtracted (date -d ... -1 day).
|
||||
# And finally "+'%B %Y'" gets the resulting date as the month and year.
|
||||
date -d "$(date +'%Y-%m-01') -1 day" +'%B %Y'
|
||||
}
|
||||
|
||||
# Copies a section from a video using ffmpeg.
|
||||
# extract-clip <input file> <start timestamp> <end timestamp> <output file>
|
||||
extract-clip () {
|
||||
|
|
Loading…
Reference in New Issue