Last active
October 23, 2021 12:00
-
-
Save gideonstar-git/b924b72b55c07b5e47699f2c26094600 to your computer and use it in GitHub Desktop.
borg.sh
This file contains hidden or 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
#!/bin/sh | |
# | |
# borg init /target/directory -e none | |
# | |
path=/target/directory | |
target="/etc /opt" | |
date=$(date +'%Y%m%d') | |
borg create $path::$date $target | |
borg prune --keep-daily 7 $path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment