From 6082be0b18038225829674aed07752c391991ef6 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Fri, 24 Apr 2020 05:09:11 +0100 Subject: First commit, just a place holder until page is made This is just a place holder that I made in a few minutes after setting up the `maneage.org' domain. We will fill it up soon. --- upload.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 upload.sh (limited to 'upload.sh') diff --git a/upload.sh b/upload.sh new file mode 100755 index 0000000..611be5a --- /dev/null +++ b/upload.sh @@ -0,0 +1,32 @@ +#! /bin/bash + +# Run this script to synchronize the server with your local system. It +# takes one argument: the user@server which will be passed to rsync +# (which uses SSH). +# +# This script has to be run within the directory containing +# `index.html'. +# +# Copyright (C) 2016-2020, Mohammad Akhlaghi +# +# This file is part of Maneage. Maneage is free software: you can +# redistribute it and/or modify it under the terms of the GNU General +# Public License as published by the Free Software Foundation, either +# version 3 of the License, or (at your option) any later version. +# +# Maneage is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +# more details. See . + + +# First check if the user@server argument is correct. +if [ x$1 = x"" ]; then + echo "No argument was given." + echo "A single argument in the format of user@server is necessary, it will be passed directly to rsync (which will use it with SSH)." + exit 1 +fi + +# Run rsync to upload the necessary files +rsync -azv --exclude '*~' --exclude '*#' --exclude ".git" --exclude "pdf" \ + --no-links --rsh=ssh ./* $1 -- cgit v1.2.1