Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # initialize the repo with the command:
- # borg init /mnt/C1/borg_backups/ja_borg
- # then run this script
- REPOSITORY=/mnt/C1/borg_backups/ja_borg
- borg create --progress --verbose --stats --compression lz4 \
- $REPOSITORY::`date +%Y-%m-%d` \
- /home/ja/ \
- --exclude /home/*/.cache \
- --exclude /home/*/.thumbnails \
- --exclude /home/*/Downloads/ \
- --exclude /home/*/VirtualBox/ \
- --exclude /home/*/.local/share/Trash \
- # borg prune -v $REPOSITORY \
- # --keep-daily=1 --keep-weekly=1 --keep-monthly=1
- # --- USEFULL SHIT ---
- # go in to repo folder, to list available backups:
- # borg list .
- # to mount one of them:
- # borg mount .::2016-04-25 ~/temp
- # to umount:
- # borg umount ~/temp
- # to delete single backup in a repo:
- # borg delete .::2016-04-25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement