giovedì 26 settembre 2013

Incremental backups using rsync

The following is a command to easily do incremental backups in linux using rsync:

sudo rsync --delete -azvv /source_path /destination_path

using the --delete options, files no longer present in the source will be deleted also in the destination path.

-a: recursively mode
-z: compression mode
-vv: verbosity mode

venerdì 23 agosto 2013

What if axis labels fall outside margins in python?

Just increase the size of the figure by adding this little piece of code:

fig = plt.figure(num=None, facecolor='w', edgecolor='k', figsize=(x size, y size))