Project backup

For better survival of backups, send a copy of the backups to trusted people via a drop service such as lufi.ethibox.fr or wetransfer.com.

Please note that a shell session on a SourceForge (SF) server has a limited duration of 240 minutes (the timeleft command indicates the remaining time).

The shutdown command cleanly ends an SF shell session.

If you don’t know how to interact with SF’s servers, SF has help pages for its services.

SourceForge data

SF allows to export data (bugtracker, forum…) others than SVN and website.

Logged in with an administrator account, got to section Admin, and use the Export option of the vertical menu. The page is titled Project Export.

Select option Check All and option With attachments and launch the export.

You have to wait a few minutes for an email that will tell you where to find the backup when it is ready.

The email will indicate where to download the archive on web.sourceforge.net FTP with your SF user account. ​

SourceForge SVN

Connect to the SF server with SSH.

Authentication with the private key for which you installed the public key on your SF account:

ssh -i <path_to_your_private_key> -t <sf_account_login>@shell.sourceforge.net create

Or password authentication:

ssh -t <sf_account_login>@shell.sourceforge.net create

Go to your home directory:

cd /home/users/<sf_account_login>

Dump the SVN repository to a file:

svnadmin dump /home/svn/p/wikindx/svn > svn_wikindx_$(date +'%Y-%m-%d-%H%M%S').dump

Compress the file to speed up the transfer:

bzip2 -9 svn_wikindx_YYYY-MM-DD-HHmmss.dump

You can now download the compressed dump file by connecting to the frs.sourceforge.netFTP with your SF user account. It’s in the folder /home/user-web/s/sf/<sf_account_login> (s and sf are the first letters of the user account).

After downloading, delete the dump file:

rm svn_wikindx_YYYY-MM-DD-HHmmss.dump.bz2

And disconnect:

shutdown

SourceForge website

Connect to the SF server with SSH.

Authentication with the private key for which you installed the public key on your SF account:

ssh -i <path_to_your_private_key> -t <sf_account_login>@shell.sourceforge.net create

Or password authentication:

ssh -t <sf_account_login>@shell.sourceforge.net create

Go to your home directory:

cd /home/users/<sf_account_login>

Create a website archive:

tar -cvf sf_website_wikindx_$(date +'%Y-%m-%d-%H%M%S').tar /home/project-web/wikindx/htdocs

Compress the file to speed up the transfer:

bzip2 -9 sf_website_wikindx_YYYY-MM-DD-HHmmss.tar

You can now download the compressed dump file by connecting to the frs.sourceforge.netFTP with your SF user account. It’s in the folder /home/user-web/s/sf/<sf_account_login> (s and sf are the first letters of the user account).

After downloading, delete the dump file:

rm sf_website_wikindx_YYYY-MM-DD-HHmmss.tar.bz2

And disconnect:

shutdown