aboutsummaryrefslogtreecommitdiff
path: root/sync-home
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-31 21:34:40 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-31 21:34:40 -0200
commit48b92aabb7c5622af285a85ea0964f28f31ff34b (patch)
tree4d1e603376806e7bdba5c6698cc9e3b7e07f9d04 /sync-home
parent55187fac6e506b3444d70ea32e07790f7e6e3156 (diff)
downloadscripts-48b92aabb7c5622af285a85ea0964f28f31ff34b.tar.gz
scripts-48b92aabb7c5622af285a85ea0964f28f31ff34b.tar.bz2
Adding sync-home
Diffstat (limited to 'sync-home')
-rwxr-xr-xsync-home16
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