This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This tool helps you backup photos from Google Photos to your NAS | |
# It assumes that you have ssh access to the NAS, on which there's a directory | |
# in which you keep all the files from Google Photos, and wish to incrementally | |
# add new files found in the zip file downloaded from Google Takout. | |
# The tool makes effort to unzip and upload only these files which have md5sum | |
# different from any file already in the destination backup directory. | |
# It creates a subdirectory at destination with a name matching modification date of the zip, | |
# so it is easier to restart this on failure, and figure out what got added. |