Category Archives: system administration

Resuming scp after an interruption

It is not possible to make scp resume copying after an interrupted transmission. The good news is you can use rsync over SSH: rsync –rsh=’ssh’ -av –progress –partial source destination

Posted in system administration | Leave a comment

How to install PostgreSQL on Ubuntu 12.04

Update your system with this PPA (Personal Package Archives) so you can install an up-to-date version of PostgreSQL: $ sudo apt-get install python-software-properties $ sudo add-apt-repository ppa:pitti/postgresql $ sudo apt-get update And now install PostgreSQL and the dev packages: $ … Continue reading

Posted in system administration | Leave a comment

On-the-fly tar

If you want to copy a directory recursively and preserve exact file timestamps, ownerships, and permissions you can do an on-the-fly tar: cd source-directory tar cf – . | (cd destination-directory; tar xf -)

Posted in system administration | Leave a comment