Compare commits
1 Commits
0af42b8217
...
9f59fb1d7e
Author | SHA1 | Date | |
---|---|---|---|
9f59fb1d7e |
|
@ -257,7 +257,8 @@ Description=Borg backup to ${BACKUP_HOST}
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=${BORG_DIR}/backup.py
|
WorkingDirectory=${BORG_DIR}
|
||||||
|
ExecStart=./backup.py
|
||||||
Nice=10
|
Nice=10
|
||||||
IOSchedulingClass=best-effort
|
IOSchedulingClass=best-effort
|
||||||
IOSchedulingPriority=6
|
IOSchedulingPriority=6
|
||||||
|
@ -286,7 +287,7 @@ EOF
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
update_paths()
|
update_readme()
|
||||||
{
|
{
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "s!\${HOSTNAME}!$(hostname)!g" \
|
-e "s!\${HOSTNAME}!$(hostname)!g" \
|
||||||
|
@ -295,10 +296,6 @@ update_paths()
|
||||||
-e "s!\${BACKUP_HOST}!${BACKUP_HOST}!g" \
|
-e "s!\${BACKUP_HOST}!${BACKUP_HOST}!g" \
|
||||||
-e "s!\${BACKUP_REPO}!${BACKUP_REPO}!g" \
|
-e "s!\${BACKUP_REPO}!${BACKUP_REPO}!g" \
|
||||||
README.md
|
README.md
|
||||||
|
|
||||||
sed -i\
|
|
||||||
-e "1c#!${BORG_DIR}/.venv/bin/python" \
|
|
||||||
backup.py
|
|
||||||
}
|
}
|
||||||
|
|
||||||
git_setup()
|
git_setup()
|
||||||
|
@ -326,7 +323,7 @@ configure_ssh
|
||||||
create_repo
|
create_repo
|
||||||
export_keys
|
export_keys
|
||||||
configure_systemd
|
configure_systemd
|
||||||
update_paths
|
update_readme
|
||||||
git_setup
|
git_setup
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user