#!/bin/sh
S=`date +%s` && rsync -azv --exclude=.Trash --exclude=Library/Caches --link-dest=/data/macbook/current /Users/matt/ 192.168.1.88:/data/macbook/$S && ssh 192.168.1.88 "rm /data/macbook/current && ln -fs /data/macbook/$S /data/macbook/current"
better than this on below because it allows for failure recovery...
#!/bin/sh
S=`date +%s` && ssh 192.168.1.xx "mv /data/macbook/current /data/macbook/$S" && rsync -azv --exclude=Library/Caches --link-dest=/data/macbook/$S /Users/matt/ 192.168.1.xx:/data/macbook/current
No comments:
Post a Comment