Skip to content

Instantly share code, notes, and snippets.

@andry81
Last active June 28, 2024 00:06
Show Gist options
  • Save andry81/c55028186acb9446bacb98e75fef1a4f to your computer and use it in GitHub Desktop.
Save andry81/c55028186acb9446bacb98e75fef1a4f to your computer and use it in GitHub Desktop.
The `sourceforge.net` SVN synchronization instructions
  • sourceforge_svn_sync_intructions.md
  • 2024.06.28
  1. DESCRIPTION
  2. OFFICIAL DOCUMENTATION
  3. SERVER CREDENTIALS
  4. LOGIN CONSOLE COMMANDS
  5. SERVER CONSOLE COMMANDS
    5.1. rsync
    5.2. svnadmin
    5.3. tar
    5.4. git
  6. SERVER URL COMMANDS
  7. CLIENT CONSOLE COMMANDS
    7.1. svnrdump

  1. DESCRIPTION

The sourceforge.net SVN synchronization instructions.


  1. OFFICIAL DOCUMENTATION

https://sourceforge.net/p/forge/documentation/Docs%20Home/

https://sourceforge.net/p/forge/documentation/rsync/
https://sourceforge.net/p/forge/documentation/svn/
https://sourceforge.net/p/forge/documentation/SVN%20Import/
https://sourceforge.net/p/forge/documentation/SSH/


  1. SERVER CREDENTIALS

Login addresses

  • {USER}@frs.sourceforge.net
  • {USER}@shell.sourceforge.net

SSH key type

  • ssg-rsa

Authentication

  • passowrd + verification code

ℹ️ Note:
For the verification code use the android application: 2FAS Auth.

Known paths

  • frs.sourceforge.net

    • /home/users/{USER}
    • /home/pfs/project/{PROJECT}
    • /home/pfs/svn/p
  • shell.sourceforge.net

    • /home/users/{USER}
    • /home/users/N/NN/{USER}
    • /home/svn/p/{PROJECT}

  1. LOGIN CONSOLE COMMANDS

SSH

ssh -t {USER}@shell.sourceforge.net create


  1. SERVER CONSOLE COMMANDS


5.1. rsync

Download and sync

rsync -rvz --delete-excluded --chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r svn.code.sf.net::p/PROJECTNAME/REPOSITORY .

Upload and sync

rsync -rvz --delete-excluded . svn.code.sf.net::p/PROJECTNAME/REPOSITORY


5.2. svnadmin

SVN bare database dump into file

svnadmin dump /home/svn/p/{PROJECT}/{REPO} > /home/users/{USER}/{REPO}-old.dump

SVN bare database recreation

rm -rf /home/svn/p/{PROJECT}/{REPO}
svnadmin create --compatible-version 1.9 /home/svn/p/{PROJECT}/{REPO}

SVN bare database load from dump file

svnadmin load /home/svn/p/{PROJECT}/{REPO} < /home/users/{USER}/{REPO}-new.dump


5.3. tar

SVN dump file compress into archive

tar --xz -cf {REPO}-old.dump.tar.xz {REPO}-old.dump

SVN bare database extract

tar -xf {REPO}-new.dump.tar.xz -C /home/svn/p/{PROJECT}

SVN dump file extract

tar -xf {REPO}-new.dump.tar.xz {REPO}-new.dump


5.4. git

Enable not fast-forward force push

git config receive.denynonfastforwards false

OR

Use scripts:


  1. SERVER URL COMMANDS

Repository refresh

https://sourceforge.net/p/{PROJECT}/{REPO}/refresh


  1. CLIENT CONSOLE COMMANDS


7.1. svnrdump

SVN remote repository dump into file

svnrdump dump https://svn.code.sf.net/p/{PROJECT}/{REPO} > {REPO}-old.dump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment