portability for lunix
This commit is contained in:
parent
6e9182b257
commit
eb0549a511
|
@ -40,8 +40,8 @@ mailoffsite: imapbackup
|
||||||
|
|
||||||
databackup:
|
databackup:
|
||||||
mkdir -p $(HOME)/Library/misc
|
mkdir -p $(HOME)/Library/misc
|
||||||
brew list > $(HOME)/Library/misc/brewinstalled.txt
|
#brew list > $(HOME)/Library/misc/brewinstalled.txt
|
||||||
brew cask list > $(HOME)/Library/misc/brew-cask-installed.txt
|
#brew cask list > $(HOME)/Library/misc/brew-cask-installed.txt
|
||||||
~/dev/hacks/bin/backup.command
|
~/dev/hacks/bin/backup.command
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
|
|
@ -63,6 +63,7 @@ RE+=" --exclude=/Library/Containers/com.docker.docker/"
|
||||||
RE+=" --exclude=/Library/Cookies/"
|
RE+=" --exclude=/Library/Cookies/"
|
||||||
RE+=" --exclude=/Library/Developer/"
|
RE+=" --exclude=/Library/Developer/"
|
||||||
RE+=" --exclude=/Library/Homebrew/"
|
RE+=" --exclude=/Library/Homebrew/"
|
||||||
|
RE+=" --exclude=/Library/Syncthing/folders/" # syncthing is its own backup
|
||||||
RE+=" --exclude=/Library/Logs/"
|
RE+=" --exclude=/Library/Logs/"
|
||||||
RE+=" --exclude=/Library/Mail/" # keep your mail on the server!
|
RE+=" --exclude=/Library/Mail/" # keep your mail on the server!
|
||||||
RE+=" --exclude=/Library/Mail?Downloads/"
|
RE+=" --exclude=/Library/Mail?Downloads/"
|
||||||
|
@ -174,9 +175,11 @@ RE+=" --exclude=/iBooks.app"
|
||||||
RE+=" --exclude=/iMovie.app"
|
RE+=" --exclude=/iMovie.app"
|
||||||
RE+=" --exclude=/iTunes.app"
|
RE+=" --exclude=/iTunes.app"
|
||||||
|
|
||||||
RETVAL=255
|
if [[ "$(uname)" = "Darwin" ]]; then
|
||||||
while [ $RETVAL -ne 0 ]; do
|
RETVAL=255
|
||||||
$RSYNC $OPTS $RE $MINRE /Applications/ ${BACKUPDEST}/Applications/
|
while [ $RETVAL -ne 0 ]; do
|
||||||
RETVAL=$?
|
$RSYNC $OPTS $RE $MINRE /Applications/ ${BACKUPDEST}/Applications/
|
||||||
sleep 1;
|
RETVAL=$?
|
||||||
done
|
sleep 1;
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue