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