Skip to content

Commit

Permalink
dump folder nomenclature defined '<group-name>_YYYY-MM-DD_HH-MM'
Browse files Browse the repository at this point in the history
  • Loading branch information
katkamrachana committed Aug 5, 2017
1 parent a63a3ad commit 8a8bc4e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def setup_dump_path(node_name):
global TOP_PATH
global DATA_EXPORT_PATH
global MEDIA_EXPORT_PATH
datetimestamp = datetime.datetime.now().isoformat()
# datetimestamp = datetime.datetime.now().isoformat()
datetimestamp = datetime.datetime.now().strftime("%Y-%m-%d_%H-%M")
DUMP_PATH = os.path.join(TOP_PATH, node_name + "_" + str(datetimestamp))
DATA_EXPORT_PATH = os.path.join(DUMP_PATH, 'dump')
MEDIA_EXPORT_PATH = os.path.join(DATA_EXPORT_PATH, 'media_files')
Expand Down

0 comments on commit 8a8bc4e

Please sign in to comment.