mirror of
https://github.com/alrayyes/server-dotfiles
synced 2023-11-14 15:56:25 +00:00
desktop & laptop use same backup script
This commit is contained in:
parent
e520974fa9
commit
fb16715a27
@ -1,16 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
REPOSITORY=~/stackdav/thinkpadbackup
|
REPOSITORY=~/mnt/backups
|
||||||
|
|
||||||
# Backup all of /home and /var/www except a few
|
# Backup all of /home and /var/www except a few
|
||||||
# excluded directories
|
# excluded directories
|
||||||
borg create -v --stats \
|
borg create -v --stats \
|
||||||
|
--compression lz4 \
|
||||||
$REPOSITORY::'{hostname}-{now:%Y-%m-%d}' \
|
$REPOSITORY::'{hostname}-{now:%Y-%m-%d}' \
|
||||||
/home/alrayyes \
|
/home/alrayyes \
|
||||||
--exclude '/home/alrayyes/.cache' \
|
--exclude '/home/alrayyes/.cache' \
|
||||||
--exclude '/home/alrayyes/stackdav' \
|
--exclude '/home/alrayyes/mnt' \
|
||||||
--exclude '/home/alrayyes/music' \
|
--exclude '/home/alrayyes/music' \
|
||||||
--exclude '/home/alrayyes/Mac*' \
|
|
||||||
--exclude '/home/alrayyes/Dropbox' \
|
|
||||||
--exclude '/home/alrayyes/gPodder/Downloads'
|
--exclude '/home/alrayyes/gPodder/Downloads'
|
||||||
|
|
||||||
# Use the `prune` subcommand to maintain 7 daily, 4 weekly and 6 monthly
|
# Use the `prune` subcommand to maintain 7 daily, 4 weekly and 6 monthly
|
||||||
|
Loading…
Reference in New Issue
Block a user