update bfds backup script
This commit is contained in:
1 parent
a1f556d7d1
commit
7285fc4b90
4 files changed
+26
-20
No files matched your search
Executable
+24
@@ -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
|
||||
|
||||
Reference in new issue
Block a user