Skip to content
Snippets Groups Projects
Commit 2ea0c800 authored by kx hourly backups's avatar kx hourly backups
Browse files

set local git config in each snapshot run (so it can run from systemd without $HOME being set)

parent d61a2b72
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,11 @@ cd /data/per-user/$USER/backup/
pwd
git add *
git status
git config --local user.email "backups@`hostname`"
git config --local user.name "`hostname` hourly backups"
git config --local push.default simple
git commit -m"backup $USER @ `hostname` - `date`"
if [ -e /data/per-user/$USER/backup/BACKUPDEST ]; then
git pull --rebase
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment