Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on rsync

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. The command rsync -avh src_dir des_dir (src_dir has no trailing slash) synchronizes the whole directory src_dir into the destination directory des_dir while rsync -avh src_dir/ des_dir (src_dir/ has …

Copy Pictures from an Android Phone to a Computer

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement! Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

You have to have a SSH server installed on the Android phone …

Tips on the Linux Command ln

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

It is suggest that you avoid using the trailing slash when you use ln to create symbolic link for a directory. This is different from the command rsync which a trailing …

Backup Files Using "rsnapshot"

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

To truncate the relative path while backing up using Rsnapshot:

  1. Uncomment the line started with rsync_long_args.

  2. Remove the --relative option and add the --no-relative option.

Copying Files in Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Generally speaking, you do not want to follow symbolic links when copying files unless you are copying from one machine to another. If you do not want follow symbolic links, use …