Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. Local and Remote metadata are synchronized, no sync needed.
  3. Last full backup date: Thu Feb  2 14:18:25 2017
  4. No signature chain for the requested time.  Using oldest available chain, starting at time Thu Feb  2 13:49:03 2017.
  5. Thu Feb  2 13:48:38 2017 .
  6. Thu Feb  2 13:48:43 2017 backup
  7. Thu Feb  2 13:49:03 2017 backup/temp
  8. Thu Feb  2 13:49:02 2017 backup/temp/elasticsearch_backup_4_snapshot_5_2017-02-02_13-48-45+0100.tar.gz
  9. Thu Feb  2 13:49:03 2017 backup/temp/postgres_backup_2017-02-02_13-48-45+0100.tar.gz
  10.  
  11. with open('dupa.txt') as f:
  12.         names = []
  13.         lines = f.read().splitlines()
  14.         dot = False
  15.         for line in lines:
  16.             name = line.split(' ')[-1:][0]
  17.             if name is '.':
  18.                 dot = True
  19.             if dot:
  20.                 names.append(name)
  21.         f.close()
  22.  
  23.  
  24. filepath = next((s for s in paths if 'elastic' in s), None)
  25. filename =  os.path.basename(filepath)[:-len(".tar.gz")]
  26.  
  27. print(filename)
  28. elasticsearch_backup_4_snapshot_5_2017-02-02_13-48-45+0100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement