<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Wojtek,<br>
<br>
thanks for sharing your insights.<br>
Well, that´s really a professional way of going about backing up.
I´m impressed.<br>
<br>
Greetings<br>
Rosika<br>
<br>
<div class="moz-cite-prefix">Am 17.09.2018 um 09:05 schrieb Wojtek
Swiatek:<br>
</div>
<blockquote type="cite"
cite="mid:CAPRYYOYyfC_4Jox32pD5iWg=jarUj3JipqnvX7iUmCeU3gpFMw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">The "eureka" moment for me was when I realized
that the best combo for my backup scenario is backup +
pruning. I backup often and then immediately make sure
afterwards that I only keep what is needed.</div>
<div dir="ltr">For what it's worth, I use a systemd timer to
manage that:
<div><font face="monospace, monospace"><br>
</font></div>
<div>
<div><font face="monospace, monospace">[Unit]</font></div>
<div><font face="monospace, monospace">Description=borg
backup</font></div>
<div><font face="monospace, monospace"><br>
</font></div>
<div><font face="monospace, monospace">[Service]</font></div>
<div><font face="monospace, monospace">Type=oneshot</font></div>
<div><font face="monospace, monospace">Environment=BORG_REPO=/services/backup/borg/</font></div>
<div><font face="monospace, monospace">Environment=BORG_HOSTNAME_IS_UNIQUE=yes</font></div>
<div><font face="monospace, monospace">ExecStart=/usr/bin/borg
create --filter AME
--exclude-from=/services/backup/borg-exclude-srv.txt
--list --stats ::srv-${INVOCATION_ID} /</font></div>
<div><font face="monospace, monospace">ExecStartPost=/usr/bin/borg
prune -v --list --keep-daily=7 --keep-weekly=4
--keep-within 2d --stats</font></div>
</div>
<div><br>
</div>
<div>Cheers</div>
<div>Wojtek</div>
</div>
</div>
</div>
<br>
</blockquote>
<br>
</body>
</html>