Monthly Archives: September 2012

backup programming svn vcs

Remote SVN backup with svnsync

Create local svn repository with name “my_local_repo”

prepare local repo

initialize local copy

first run must be interactive to input and save your login and password

write script to run it in cron
backup_svn_script.sh:

it produce files like “svn_2012_09_07_01_34_01.tar.gz” in your backup directory

Now you can add task to cron. Execute:

and add following line to run backup at 4:00 (4 a.m.) every day

This method is not disk space efficient, but very simple.

Sources:
using svnsync
installing subversion server in ubuntu

bash linux

Web server on bash

web server on bash, nc, awk and sed

read more »

linux

Remote access without “white” ip

How to get access to shell on the remote computer that don’t have “white”(“real” or “public”) IP without any additional software in linux?
Quick and dirty solution:
on server side:

on client side:

pipe ‘/tmp/localpipe’ used to redirect bash output back to ssh
note: use exit command to stop redirection