From c5a4a6f2fe2111fb20b889445847ef57c2eb925f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 2 Jun 2019 12:42:54 -0300 Subject: Store borg updated files after borg create run --- scripts/backup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/backup.sh') diff --git a/scripts/backup.sh b/scripts/backup.sh index 5c83eb4..73ef1c8 100755 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -51,6 +51,14 @@ borg create \ # add folders to be backed up here green "Done" +yellow "Committing borg config changes..." +pushd ~/dev/libre/borg/ +git add . +git commit -m "JOB: automated update of borg config files after backup.sh" +git push origin master +popd +green "Done." + yellow "Syncing ~/archive to ~/UTCLOUD/archive" rsync --verbose --progress --stats --update --recursive ~/archive/ ~/UTCLOUD/archive/ green "Done" -- cgit v1.2.3