[SUCS Devel] [Git][sucs/sucs][master] Added basic backups script

Laurence Sebastian Bowes elbows at sucs.org
Mon Nov 19 05:11:40 GMT 2018


Laurence Sebastian Bowes pushed to branch master at sucs / SUCS


Commits:
684a7eb6 by Laurence Sebastian Bowes at 2018-11-19T05:11:55+00:00
Added basic backups script

- - - - -


1 changed file:

- + scripts/backup.sh


Changes:

=====================================
scripts/backup.sh
=====================================
--- /dev/null
+++ b/scripts/backup.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+REPOSITORY=backupuser at backup:/home/backups/
+borg create -v --stats                                              \
+    $REPOSITORY::`hostname`-`date +%Y-%m-%d-%R`                     \
+    /home /etc /var /root                                           \
+    --exclude '/home/*/noback/'                                     \
+    --compression lzma,5
+
+borg prune --stats --verbose $REPOSITORY --prefix `hostname`-       \
+    --keep-daily=28                                                 \    
+    --keep-weekly=8                                                 \
+    --keep-monthly=24



View it on GitLab: https://projects.sucs.org/sucs/sucs/commit/684a7eb617d3f93fbff8ae5d1b1c2f65fdc2ff13

-- 
View it on GitLab: https://projects.sucs.org/sucs/sucs/commit/684a7eb617d3f93fbff8ae5d1b1c2f65fdc2ff13
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20181119/5fa98097/attachment.html>


More information about the Devel mailing list