sft_upload_website - upload a website to SourceForge.net


This is a program to upload your project web site to SourceForge.net. It does this by constructing a gzip compressed tar file and uploading it (using scp) to the your /home/groups/your_project directory at SourceForge.net. Once there, the sft_upload_website program remotely executes the following commands via ssh:

        cd /home/groups/your_project
        tar xzvf your_project_website.tar.gz

The tar file constructed by sft_upload_website only contains files more recent than the last time sft_upload_website was run unless the "-a" option is specified.

The local copy of your web site is assumed to be in your /home/your_name/your_project/htdocs directory. For a full description of the directory layout required by this and other tools in the sf-tools package, please see the sf-tools.README file.


        sft_upload_website -h | --help | [-a]


        -h, --help      Display this help message and exit.
        -a              Upload all files, not just recent files



This command uploads a compressed tar file containing files that have been modified since the last time an upload was performed.

        sft_upload_website -a

The "-a" option causes sft_upload_website to upload all files regardless of their last modification time. Use this option if you have deleted your web site from the web server and wish to replace it in total.

Installation and Configuration:

You may install this script anywhere that is convenient. It is completely self-contained. After installation, the script must configured for your project and user name as follows:

  1. Set the PROJECT_NAME constant to your Unix project name
  2. Set the SF_USER constant if your SourceForge.net shell account user name differs from the user name you use on your local system.

Tested With:

sft_upload_website has been tested with Red Hat 6.x - 7.x. It should be portable to other distributions/systems that use bash and gnu tar. Note that scp is also required. This is part of the ssh (and openssh) packages.


Copyright 2001-2002, William Shotts <bshotts@users.sourceforge.net>

This software is part of the LinuxCommand.org project, a site for Linux education and advocacy devoted to helping users of legacy operating systems migrate into the future.

You may contact the LinuxCommand.org project at:



This program 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 2 of the License, or (at your option) any later version.

This program 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.

SourceForge.net is a trademark of VA Software, Inc.

$Id: sft_upload_website.README,v 1.5 2002/03/09 16:50:43 bshotts Exp $