sorted
This commit is contained in:
15
files/bashscripts/rsync/rsync-backup-fileserver-truenas.sh
Normal file
15
files/bashscripts/rsync/rsync-backup-fileserver-truenas.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
rsync -azvP -e "ssh -i ~/.ssh/truenas" --progress \
|
||||
--include=/ \
|
||||
--include=/home/*** \
|
||||
--include=/etc \
|
||||
--include=/etc/fstab \
|
||||
--include=/etc/dnsmasq.d/*** \
|
||||
--include=/etc/gitea/*** \
|
||||
--include=/etc/nginx/*** \
|
||||
--include=/etc/wireguard/*** \
|
||||
--include=/srv/*** \
|
||||
--include=/var \
|
||||
--include=/var/lib \
|
||||
--include=/var/lib/gitea/*** \
|
||||
--exclude=* \
|
||||
/ root@192.168.1.41:/mnt/data/backups/fileserverbackup/$(/bin/date +%Y-%m-%d)
|
||||
10
files/bashscripts/rsync/rsync-backup.sh
Normal file
10
files/bashscripts/rsync/rsync-backup.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
#rsync -azvP -e "ssh -i ~/.ssh/debiantest" --progress \
|
||||
--include=/ \
|
||||
--include=/home/ \
|
||||
--include=/home/akanealw \
|
||||
--include=/home/akanealw/docker \
|
||||
--include=/home/akanealw/docker/appdata/*** \
|
||||
--exclude=* \
|
||||
root@192.168.1.33:/ /mnt/backups/dockerservertest/$(/bin/date +%Y-%m-%d)
|
||||
12
files/bashscripts/rsync/rsync-pull-with-public-key-to-local.sh
Executable file
12
files/bashscripts/rsync/rsync-pull-with-public-key-to-local.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
rsync -azvP -e "ssh -i ~/.ssh/publickey" --progress \
|
||||
--exclude=/etc/fstab \
|
||||
--exclude=/etc/network/* \
|
||||
--exclude=/lib/modules \
|
||||
--exclude=/proc/* \
|
||||
--exclude=/tmp/* \
|
||||
--exclude=/sys/* \
|
||||
--exclude=/dev/* \
|
||||
--exclude=/mnt/* \
|
||||
--exclude=/boot/* \
|
||||
--exclude=/root/* \
|
||||
hostname:/ /
|
||||
4
files/bashscripts/rsync/rsync-restore.sh
Normal file
4
files/bashscripts/rsync/rsync-restore.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
rsync -azvP -e "ssh -i ~/.ssh/proxyserver" --progress \
|
||||
/mnt/backups/dockerservertest/2023-07-04/* root@192.168.1.4:/
|
||||
4
files/bashscripts/rsync/rsync-to-truenas-module.sh
Normal file
4
files/bashscripts/rsync/rsync-to-truenas-module.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
rsync -avP --rsh=ssh truenas::truenas-backups/ /mnt/pve/external-backup/backups/
|
||||
rsync -avP --rsh=ssh truenas::truenas-storage/ /mnt/pve/external-backup/storage/
|
||||
Reference in New Issue
Block a user