On macOs-machines (and other unix-like systems most likely too) you can use rsync command to sync two directories in many different ways.
This post is just a quick reminder two myself for a specific use. See links below for further info!
Imagine you’ve copied some file structure to a new directory, have by accident lost some of the files during that process and further more started to working on the files in the new file structure.
You might have some issues if you want to copy the missing files from the old file structure to the new one without searching too long AND without erasing your new work in the new structure if you’d just repeated the copy process.
I used rsync as follows:
rsync -rP /my/old/directory/ /my/new/directory
-r Option: Recursive, traverse into subdirectories
-P Option: Equivalent to –partial –progress: Show progress during transfer
Note that you need to put a slash after your old directory. If not rsync will simply copy your old directory in the new one instead of searching through your old subdirectories for changes.
Ressources I’ve been using to learn this
This was a quite tricky thing for me to get it running but here it is – how I download photos of a set (album) on Flickr (both public and private) with a python script to a Raspberry Pi. Continue reading Learning to Download Flickr Photos Using Python and FlickrAPI
I need to replace all non-square pictures of a WordPress WooCommerce shop by square versions for design reasons.
To do so I follow these asghhgfdsasdfghj steps: Continue reading Still in editing – How to replace images of a wordpress blog in bulk on OS X and Linux systems
Problem pending – still working on it…
A while ago I created a child theme for a wordpress theme we kinda liked to run a woocommerce shop.
I did a lot of minor styling of this theme to match it to our needs adding some classes or overwriting some of the parent theme’s classes in my child theme’s style.css.
This worked out fine until I came across a class that got some arguments from a style.css which was not the parent style theme’s but somewhere deeper in that parent theme from an include of the woocommerce plugin.
Adding a class in my browsers developer mode showed me the exact result I was aiming for. But as my child theme’s style.css appeared not to be the last one in the cascade the operation of adding theses classes there failed.
This was one of this things I really had now clue where to start searching… Continue reading Still in editing – Learning To Use WordPress Child Themes And Their css For Styling