Simple, Secure Folder Backup on Mac OSX (Version 3)

featured-content-time-machine_2x

[TL;DR Folder ‘A’ in machine ‘A’ backed up manually, in folder ‘A’ of a USB drive, connected to machine ‘B’]

These are high-level steps to follow:

  1. Set up SSH keys in Machine A, which is the source machine.
  2. Select an existing user account or create a new user account in machine B, destination and allow that account for remote access.
  3. Add the SSH keys created in Machine A to the authorized_keys file in the server.
  4. Create and run rsync script.

Steps in detail:

1.Set up SSH keys in Machine A, which is the source machine.

Screen Shot 2017-12-20 at 12.06.39 AM2.Select an existing user account or create a new user account in machine B, destination and allow that account for remote access.

Screen Shot 2017-12-20 at 12.13.31 AM

3.Add the SSH keys created in Machine A to the authorized_keys file in the server.

Screen Shot 2017-12-20 at 12.16.03 AMCommand:

cat ~/.ssh/id_rsa.pub | ssh aneesh@10.0.0.137 "mkdir -p ~/.ssh && cat >>  ~/.ssh/authorized_keys"

Once you enter the above command, the password is prompt will be shown. Enter the password of the account being used in the destination machine (machine, B).
You may see prompts similar to the below screenshot:

Screen Shot 2017-12-20 at 12.29.07 AM

Select ‘yes’ and then again enter the password of the account being used in the destination machine (machine, B).

4.Create and run rsync script.

RSYNC=/usr/bin/rsync
LPATH=/Users/source_machine_user/Documents/test2/
RPATH=aneesh@10.0.0.137:/Volumes/MAC_EXT/test3/
$RSYNC -arvz --progress $LPATH $RPATH

Related articles:

 

Advertisements
Simple, Secure Folder Backup on Mac OSX (Version 3)

Simple, Secure Folder Backup on Mac OSX (Version 2)

featured-content-time-machine_2x

[TL;DR Folder ‘A’ in Machine ‘A’ backed up manually in folder ‘A’ of a connected USB drive]

Please refer to this post for more context.

In case all you need to copy a folder to an external hard drive which is not connected to the system always, you can run the script manually. Follow the steps above to create and make the script executable.
Here is a sample script:

RSYNC=/usr/bin/rsync
LPATH=/Users/user_name/Documents/myFolderName/
RPATH=/Volumes/drive_name/WorkBackUp/
$RSYNC -arvz --progress $LPATH $RPATH

Related articles:

Simple, Secure Folder Backup on Mac OSX (Version 2)

Alexa & Google assistant — 2 in 1.

google-home-vs-amazon-alexaAI-driven personal assistants are becoming a part of the day to day life and I was exploring the possibilities they offered. I started with making a Pi box that runs Alexa but ended up having both Alexa and Google Home running in parallel within a box.

This particular article was very helpful to make this happen.

Here is a demo of results:

Alexa & Google assistant — 2 in 1.

Uninstalling Xcode completely from MacOSX

How-to-Remove-Xcode-app-From-your-iMac-or-MacBook-Pro-Completely-Large

There are two ways to do it.

  1. Hard Way
  2. Easy Way

1. Hard Way

Below are the steps in the manual method:
Open the Applications folder
Drag the Xcode icon to the Trash
Clean out the Trash bin

Go to below folders and delete them:
~/Library/Developer/
~/Library/Caches/com.apple.dt.Xcode

Open Terminal.
Run: sudo /Developer/Library/uninstall-devtools –mode=all
Confirm your admin password.
Wait until the scripts are done running.
Quit Terminal.

2. Easy Way:

Use the application ‘CleanMyMac 3′.

Reference:

https://macpaw.com/how-to/uninstall-xcode-on-macos

Uninstalling Xcode completely from MacOSX

Ideas worth sharing (non-tech)

13552

Here are few ideas and concepts in the real world which are so fascinating.
Most of them come under one category. i.e Life.
Please judge yourself.
28. This shirt is straight sorcery.

27.The science behind the smile is pretty fascinating.

26.The fastest way to fold a shirt

25. Posh restaurant

24. Incredible video captures humpback whales swimming underneath the northern lights in Norway.

https://www.facebook.com/groups/AuroraBorealisWA/permalink/1778166325772767/

23. How to fool a telephone scammer?

22. Just smile..smile..and..smile..my friends !

21. Racism DESTROYED in one minute.

20. 6 fundamental rules of life

09. A small story that shows how we deal with difficult things in life.

08. This Ramazan, Surf Excel Pakistan releases an emotionally and beautifully written script with a loving twist.

07. Why laundry is only mother’s job?

06. The importance of making your bed

05. Must watch.. Dedicated to all the religious fanatics..

04. Thought process de-mystified

03. Apollo Robbins: The art of misdirection

02. Google Search: Reunion

01. Six Life Lessons I’ve Learned from Programming

Ideas worth sharing (non-tech)

My picks from ‘TOP 50 FREE ONLINE COURSES OF ALL TIME’

Elearning Tools

Reference:

https://www.class-central.com/collection/top-free-online-courses?utm_source=top-50-course-page

https://medium.freecodecamp.com/the-best-data-science-courses-on-the-internet-ranked-by-your-reviews-6dc5b910ea40

My picks from ‘TOP 50 FREE ONLINE COURSES OF ALL TIME’