Delete old bup backup script
This commit is contained in:
parent
91c393b3c7
commit
e088a1b5da
25
backup
25
backup
|
@ -1,25 +0,0 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
# Create an incremental system backup using bup
|
||||
# Useful resources:
|
||||
# https://gist.github.com/bradfa/a710a4e4b83b07b7a8be77cae86ff56b
|
||||
# https://gist.github.com/jasontbradshaw/6a69d7c9ae0c73f54200
|
||||
|
||||
set name (date -u +'%Y-%m-%d')
|
||||
set repository /mnt/drive/bup
|
||||
|
||||
# Set the `bup` directory here so it affects all the `bup` commands.
|
||||
export BUP_DIR=$repository
|
||||
|
||||
# Create the backup repository if it doesn't exist.
|
||||
if test -d $repository
|
||||
bup init
|
||||
chmod 700 $repository
|
||||
end
|
||||
|
||||
# Do the backup as non-intrusively as possible.
|
||||
echo "Indexing $name..."
|
||||
nice -n19 ionice -c3 bup index -vv --exclude-rx-from=(status dirname)/exclude /etc /var /srv /home/ta180m
|
||||
|
||||
echo "Backing up $name to $repository..."
|
||||
nice -n19 ionice -c3 bup save -vv --name=$name --compress=9 /
|
35
exclude
35
exclude
|
@ -1,35 +0,0 @@
|
|||
/var/tmp
|
||||
/var/log/journal
|
||||
/var/lib/machines
|
||||
/var/lib/systemd/coredump
|
||||
/var/lib/woodpecker-agent
|
||||
/var/lib/gitea/indexers
|
||||
/var/lib/peertube/storage/thumbnails
|
||||
/var/lib/synapse/media_store/remote_content
|
||||
/var/lib/synapse/media_store/remote_thumbnail
|
||||
/var/lib/nextcloud/apps
|
||||
|
||||
.go
|
||||
.3ds
|
||||
.xci
|
||||
.nsp
|
||||
.npm
|
||||
.wbfs
|
||||
.wine
|
||||
.yarn
|
||||
.qcow2
|
||||
.julia
|
||||
.cargo
|
||||
.nuget
|
||||
.dotnet
|
||||
venv
|
||||
cache
|
||||
Cache
|
||||
vendor
|
||||
node_modules
|
||||
|
||||
.local/share/go
|
||||
.local/share/yuzu
|
||||
.local/share/Trash
|
||||
.local/share/containers
|
||||
.local/share/torbrowser
|
Loading…
Reference in a new issue