rsync thinkpad T520 on bfds

This commit is contained in:
rob committed 2020-04-13 15:09:16 +02:00
1 parent c6cee93cf9
commit 3dafc6ab28
5 files changed
+28 -42

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
;Bilder ##lieber nicht ausschließen
Trash
.local
.cache
*.deb
Downloads
Mate8-SD
*\[no_backup\]*
*\[no_backup\]*.*
*.iso
*.ISO
+3
View File
@@ -0,0 +1,3 @@
Noch nicht probiert, was hier funktioniert und was nicht
/code
/Dokumente
+16
View File
@@ -0,0 +1,16 @@
#!/bin/zsh
exclude='--exclude-from=rsync_exclude_list'
#includefile='--include-from=rsync_include_list'
sourceDir="/home/rob"
destinationDir="/mnt/bfds/rob/backup/thinkpad-T520/home/rob"
if [ -d "$sourceDir" ]; then
rsync -az --stats --progress $exclude $includefile $sourceDir/$scope bfds:$destinationDir/$scope
fi
sourceDir="/var/www"
destinationDir="/mnt/bfds/rob/backup/thinkpad-T520/www"
if [ -d "$sourceDir" ]; then
rsync -az --stats --progress $exclude $includefile $sourceDir/$scope bfds:$destinationDir/$scope
fi