To get two synced is pretty easy once you have the networking figured out. You might want to put the scripts in your /Users/local/bin/ directory but you can put them where ever you like. Add the path to the synced directories in BOTH scripts. Now you are ready to sync. To test run the script [...]
Archive for the ‘networking’ Category
Download, setup and automate folder sync’s with a cronjob
Posted: 29th May 2012 by hackengineer in networking, scriptingTags: cronjob, rsync
Coding a Simple Dropbox with Bash
Posted: 29th May 2012 by hackengineer in networking, scriptingTags: awk, bash, perl, rsync, scripting
I wrote this bash script very recently and I would say its still in “beta”. USE AT YOUR OWN RISK!! It has been working great but I recommend backing up your synced data just in case. With that said lets get into the code! I have two bash scripts, one to sync the data and [...]
DDNS, Port Forwarding and SSH Auto Authentication with RSA keys
Posted: 29th May 2012 by hackengineer in networkingTags: ddns, encryption, port forwarding, rsa, rsync, ssh
Alright, if you want to sync two computers you will need to enable sftp. On a Mac this is easy. Open system preferences, sharing and enable Remote Login. This enables ssh on your mac on port 22. If you have two machines using the same router each machine will need to have a different port. [...]
Roll Your own 2TB Dropbox on mac/unix
Posted: 28th May 2012 by hackengineer in networking, scriptingTags: bash, cronjob, dropbox, rsync
I have a lot of friends who are against having all of there data off in some cloud with who knows snooping around. For me this isnt an issue as I dont usually put sensitive material online and if I do its encrypted with disk utility. It wasn’t until I had to get a laptop to be able to have all my [...]