sync


How we sync files between two drives

We have two external hard disks that we use to keep backups of our data.
The way we do that is by using the command rsync that makes our life easy.

Specifically, we use the following command to synchronize the first hard disk with the second one:

rsync -avh --delete --progress "path/to/source" "path/to/destination";

rsync is a fast, versatile, remote (and local) file-copying tool, it is available in almost every system (GNU/Linux, Unix (MacOS as well) and Windows).

The parameters we use are the following:

  • -a, --archive enables archive mode which is equal to -rlptgoD (no -H,-A,-X)
    In more detail it enables all of the following options
    -r, --recursive recurse into directories
    -l, --links copy symlinks as symlinks
    -p, --perms preserve permissions
    -t, --times preserve modification times
    -g, --group preserve group
    -o, --owner preserve owner (super-user only)
    -D same as --devices --specials
    --devices preserve device files (super-user only)
    --specials preserve special files
  • -v, --verbose it increases verbosity of the output
  • -h, --human-readable outputs numbers in a human-readable format
  • --delete deletes extraneous files from destination directories
  • --progress shows progress during transfer
Advertisements

Samsung Galaxy: Move device contacts to Google (GMail) account

The following guide is a step by step tutorial on how to make move your phone device contacts to your Google (GMail) account.

Step 0: Start the ‘Contacts’ Application

Start the 'Contacts' Application

Start the ‘Contacts’ Application

Step 1: Press the Menu button on your phone and press on ‘Move Device Contacts to’

Press the Menu button on your phone and press on 'Move Device Contacts to'

Press the Menu button on your phone and press on ‘Move Device Contacts to’

Step 2: Select ‘Google’

Select 'Google'

Select ‘Google’

Step 3: Press ‘OK’

Press 'OK'

Press ‘OK’

Step 4: Select the account where you want to move your device contacts to

Select the account where you want to move your device contacts to

Select the account where you want to move your device contacts to


Samsung Galaxy: Synchronize Google (GMail) contacts with phone device

The following guide is a step by step tutorial on how to synchronize your Google (GMail) account contacts with your phone device.

Step 0: Start the ‘Contacts’ Application

Start the 'Contacts' Application

Start the ‘Contacts’ Application

Step 1: Press the Menu button on your phone and press on ‘Settings’

Press the Menu button on your phone and press on 'Settings'

Press the Menu button on your phone and press on ‘Settings’

Step 2: Select ‘Contacts’

02-select-contacts

Select ‘Contacts’

Step 3: Select ‘Accounts’

Select 'Accounts'

Select ‘Accounts’

Step 4: Select ‘Google’

Select 'Google'

Select ‘Google’

Step 5: Select the account you want to sync with

Select the account you want to sync with

Select the account you want to sync with

Step 6: Make sure that the ‘Sync Contacts’ option is enabled

Make sure that the 'Sync Contacts' option is enabled

Make sure that the ‘Sync Contacts’ option is enabled

Step 7: Press the Menu button on your phone and press ‘Sync Now’

Press the Menu button on your phone and press 'Sync Now'

Press the Menu button on your phone and press ‘Sync Now’