This file contains 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
##Parameters | |
#Number of backups to keep - oldest backup will be deleted | |
$threshold = 5 | |
#Where to backup [must be exclusive dir] | |
$dbDumpPath = 'C:\path\for\dump' | |
#pgdump binary path | |
$pgdumpPath = 'C:\path\to\pgdump\binary\PostgreSQL\10\bin\pg_dump.exe' | |
#database params | |
$dbName = 'db_name' |
This file contains 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
from datetime import datetime | |
import piexif | |
import pathlib | |
import os | |
def parseDateFromImageName(p_fName,p_time): | |
#Sample format IMG-20150515-WA0003 | |
splitted = p_fName.split('-') | |
dateOnly = datetime.strptime(splitted[1], '%Y%m%d') |