Running Programs over SSH

This is by far the best thing to use when you are running programs that take a while to complete. The danger is that you lose your SSH connection and your program along with it. Use the following to start...

Read More

Exporting info from AD as CSV

If you want to export AD info as CSV then csvde is the cmd for you, for example:

csvde -s clyde -f users.csv -r objectClass=user -l "givenName, sn, name, sAMAccountName"
Read More

Copy Files from Linux to Windows using pscp Over SSH

Use the following program that comes with putty to copy files from *nix machine to a windows machine.

pscp -r -C [email protected]:/var/log/httpd/* c:\weblog\

-C Enables compression, which sounds like a good shout accross slow links.

Read More

Backing up partions under *nix

dd is your man here. Replace /dev/disk for the disk you are interested in i.e. sda, sdb :

 dd if=/dev/disk of=/path/backup

This will create a full backup of your partition i.e. /dev/sda1:

 dd if=/dev/disk_partition of=/dev/backup 
Read More