FlickrDownload is a free program licensed under the GPLv3 that runs from the command line that allows you to download all of your photos, videos, and associated metadata from Flickr.