grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit 76253a4e745277b31d974fb1de8d352376b9d0a4
parent 71ea65f707c10812a84d90d981d700b85a28557f
Author: pyratebeard <root@pyratebeard.net>
Date:   Thu, 28 Mar 2024 13:24:37 +0000

updates

Diffstat:
Msoftware/index.md | 1+
Asoftware/tarsnap.md | 31+++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/software/index.md b/software/index.md @@ -6,6 +6,7 @@ ## backups * [borg](borg) * [borgmatic](borgmatic) +* [tarsnap](tarsnap) ## browsers * [w3m](w3m) diff --git a/software/tarsnap.md b/software/tarsnap.md @@ -0,0 +1,31 @@ +# tarsnap + +## backup +* `ratnaps` +``` +#!/bin/sh + +# Set up archive name +computer=$(uname -n) +now=$(date +%Y%m%d) +name=${computer}-${now} +#dirs="$@" + +# Create an archive +/usr/bin/tarsnap -c \ + -f "${name}" \ + /etc /home /var /... + #"${dirs}" +``` +* add to cron + +## list +``` +tarsnap --list-archives | sort +``` + +## extract +* extracts full path so genrally start from / +``` +tarsnap -x -f <archive_name> +```