diff --git a/.hooks/pre-push b/.hooks/pre-push
new file mode 100644
index 0000000000000000000000000000000000000000..4d1aee2e1d684bed7fc2d2ab94ddad1005bad300
--- /dev/null
+++ b/.hooks/pre-push
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# To use this script, copy it to .git/hooks.
+
+# Return the content in the public datasets folder.
+# ssh leg@$PATAXO -p$PATAXOP "ls -la ~/public_html/legTools/datasets"
+
+# Tranfering data-raw/*.txt files.
+rsync -avzh --progress data-raw/*.txt -e "ssh -p $PATAXOP" \
+      leg@$PATAXO:~/public_html/legTools/datasets/
+
+# Tranfering vignettes/*.html files.
+# Tranfering manual in pdf, zip and tar.gz source files.