update bfds backup script

This commit is contained in:
rob committed 2019-05-02 12:14:34 +02:00
1 parent a1f556d7d1
commit 7285fc4b90
4 files changed
+26 -20

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#!/bin/zsh
sourceDir="/home/rob"
destinationDir="/media/3TB/Backup/tp_t520_d3v"
excludefile='--exclude-from=rsync_exclude_list'
#includefile='--include-from=rsync_include_list'
if [ -d "$sourceDir" ]; then
scope="code"
rsync -arlh --stats --progress $excludefile $includefile $sourceDir/$scope bfds:$destinationDir/$scope
#rsync -arlh "$excludes" "$includes" --stats $sourceDir root@kodi:$destinationDir -vvv
scope="data"
rsync -arlh --stats --progress $excludefile $includefile $sourceDir/$scope bfds:$destinationDir/$scope
#Documents
rsync -arlh --stats --progress $excludefile $includefile $sourceDir/Documents bfds:$destinationDir/Documents
#dotfiles
fi