diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-31 21:34:40 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-31 21:34:40 -0200 |
commit | 48b92aabb7c5622af285a85ea0964f28f31ff34b (patch) | |
tree | 4d1e603376806e7bdba5c6698cc9e3b7e07f9d04 /sync-home | |
parent | 55187fac6e506b3444d70ea32e07790f7e6e3156 (diff) | |
download | scripts-48b92aabb7c5622af285a85ea0964f28f31ff34b.tar.gz scripts-48b92aabb7c5622af285a85ea0964f28f31ff34b.tar.bz2 |
Adding sync-home
Diffstat (limited to 'sync-home')
-rwxr-xr-x | sync-home | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sync-home b/sync-home new file mode 100755 index 0000000..4c9d6db --- /dev/null +++ b/sync-home @@ -0,0 +1,16 @@ +#!/bin/bash +# +# sync home folder across systems +# + +DEST="$1" + +if [ ! -z "$DEST" ]; then + profile="$DEST-home" + if [ -f "$HOME/.unison/$profile.prf" ]; then + unison $profile + else + echo "No such profile $HOME/.unison/$profile.prf" + exit 1 + fi +fi |