Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameStore body Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareNotIn Str NameLoad body Expr Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareNotIn Str NameLoad body Expr Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd NameLoad CompareNotEq NameLoad Str body Assign NameStore NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Str attr NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad orelse Assign NameStore Num While NameLoad body AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad Str attr NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Continue orelse Return NameLoad decorator_list
N/A N/A os N/A shutil N/A zipfile datetime datetime mongo restore dump_db utils temp_directory exit_with_message zipdir local_restore N/A N/A zip_path to_environment N/A N/A N/A zip N/A N/A zipfile ZipFile zip_path N/A N/A temp_directory temp_dir N/A N/A N/A N/A zip extractall path temp_dir N/A N/A restore temp_dir to_environment N/A local_backups N/A N/A local_config N/A N/A N/A N/A backup_dir local_config N/A N/A N/A exit_with_message Local Settings not configured correctly, expecting "backup_dir" N/A backup_dir N/A local_config N/A backup_dir N/A N/A N/A N/A N/A os path isdir backup_dir N/A N/A N/A exit_with_message N/A N/A Directory [{}] does not exist.  Exiting ... format backup_dir N/A backups N/A N/A item N/A N/A os listdir backup_dir N/A N/A N/A backups N/A item N/A N/A N/A os path join backup_dir item N/A backups N/A backup_localy N/A N/A environment local_settings name query_set_class N/A None N/A N/A N/A backup_dir local_settings N/A N/A N/A exit_with_message Local Settings not configured correctly, expecting "backup_dir" N/A backup_dir N/A local_settings N/A backup_dir N/A N/A N/A N/A N/A os path isdir backup_dir N/A N/A N/A exit_with_message N/A N/A Directory [{}] does not exist.  Exiting ... format backup_dir N/A dump_path N/A dump_db environment QuerySet query_set_class N/A zipf N/A zipdir dump_path N/A unique_file_path N/A generate_unique_name backup_dir environment name N/A N/A N/A shutil move N/A zipf filename unique_file_path N/A generate_unique_name N/A N/A backup_dir environemnt name_prefix N/A N/A N/A N/A name_prefix N/A name_prefix N/A N/A name_base name_prefix N/A N/A name_base N/A environemnt N/A db_name N/A name_attempt N/A N/A {}__{}.dmp.zip format name_base N/A N/A N/A N/A datetime utcnow strftime %Y_%m_%d N/A name_attempt_full_path N/A N/A N/A os path join backup_dir name_attempt N/A N/A N/A N/A N/A os path exists name_attempt_full_path N/A N/A name_attempt_full_path N/A N/A counter 1 N/A True N/A N/A counter 1 N/A name_attempt N/A N/A {}__{}_{}.dmp.zip format name_base N/A N/A N/A N/A datetime utcnow strftime %Y_%m_%d counter N/A name_attempt_full_path N/A N/A N/A os path join backup_dir name_attempt N/A N/A N/A N/A os path exists name_attempt_full_path N/A N/A N/A N/A name_attempt_full_path N/A