Sync folder of photos/videos with Filckr set of the same name
flickrsync [OPTIONS] folder where OPTIONS are:
-n, --dry-run -- Do not change anything, just show what should have been synced
-d, --download -- Download photos/videos missing from Flickr to folder
-r, --remove -- Delete photos/videos missing in local folder from Flickr
-f, --remove-duplicates -- Delete duplicate photos in the set
-s, --sort-by-title -- Sort photos/videos by title after syncing
-o, --set-titles-by-date-taken -- Set photo titles by title daken (in form YYYYMMDD-HHMMSS)
-g, --get-random-photo {file} -- Download random photo from album to {file} (if no folder is specified random album is chosen)
-h, --help -- Print this help, then exit
Note, that the folder can be long path but only last folder name is used as Flickr set name
flickrsync -s /data/photos/Wedding
syncs photos/videos in the folder /data/photos/Wedding to Flickr photoset named Wedding (creates the photoset if not existing) and sorts the photoset after sync based on photo titles (file basenames).
flickrsync can also be used to download all the photos/videos in set to folder. For example
flickrsync -d /data/photos/Wedding
downloads all missing photos/videos from the photoset Wedding to the folder /data/photos/Wedding (the folder can be empty at start to download all photoset.
flickrsync uses exactly the same authentication system as Flickcurl tool.
So, to use flickrsync and flickcurl, you first have to create Flickr API key and create Flickr OAuth tokens into ~/.flickcurl.conf file.
Please read how to do that from flickcurl manual.
Note, that you have to add &perms=delete to the end of the Flickr oauth authentication URL
To build the tool on modern Linux:
-
clone the source, with:
git clone https://github.com/martlaak-gmail/flickrsync.git
-
install requirements, can be done like this on Linux with apt package manager:
sudo apt install flickcurl-utils libflickcurl-dev qt5-default libxml2-dev
-
in the flickrsync source foulder, build the tool, with:
qmake; make