Author: Hans-Henry Jakobsen
Curious IT geek and dad.
Linux
Read More
Synchronize current directory with remote one using rsync
This is a simple way to synchronize all the files from the current computer to a remote computer using SSH as transportation protocol. rsync -raz –progress –delete –bwlimit=4096 /synchronize/from/this-folder/ remote-server:/to/this-folder/ This example is using PUT as transfer method because the files are put from the local computer to the remote. Options explained -r synchronize directories […]
Scripting
Read More
Backup harddisk to remote machine
dd bs=1M if=/dev/hda | gzip | ssh user@remote ‘dd of=hda.gz’
Scripting
Read More
Replace word in files
Example: replace Strict with Transitional in your PHP-files sed -i -e ‘s/Strict/Transitional/’ *.php Warning! Edit files in place