Skip to content

Instantly share code, notes, and snippets.

@lf-araujo
Last active August 21, 2018 14:52
Show Gist options
  • Save lf-araujo/2d63d5a9d28af5af024dd085866aa0ee to your computer and use it in GitHub Desktop.
Save lf-araujo/2d63d5a9d28af5af024dd085866aa0ee to your computer and use it in GitHub Desktop.
Backing Up Photos to Flickr with a Python Script

In trying to find a tool that would allow periodic synchronization of photos with Flickr, I discovered a small script. It works with a python2 written small command line software called flickrsmartsync and works pretty well. The tool can even be automated using a cron job. In what follows the steps to make this work will be presented.

The tools

We will be using two tools:

  1. flickrsmartsync and
  2. cron .

Installing flickrsmartsync

You can install flickrsmartsync through the instructions (using pip):

sudo apt-get install python-pip
sudo pip install flickrsmartsync

In order to use for the first time, go to your pictures directory and run flickrsmartsync. Then login to your flickr account when prompted by the previous command.

Setting a crontab job

Now to the automation. In order to make the system perform periodical syncs, you must create a crontab entry. In my case I did:

crontab -e

then added the line:

@weekly flickrsmartsync --sync-path ~/YOUR_PICTURES_DIRECTORY/

This tool can be helpful if one wants to keep a copy of photos in Flickr in sync with local directories. It can also simply be used as a way of backup of photos instead of synchronization. The main limitation to this approach is that it is unable to upload RAW formats, as Flickr itself does not support them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment