none
show_backup.py: a small python script to show list of backup files RRS feed

  • General discussion

  • (Repost)

    A python script to show list of backup files. Will also:

    • Show the oldest backup
    • Show the mots recent backup

    Download from https://bitbucket.org/hleofxquotesteam/hleofxquotes/downloads/show_backup.py

    You will need to have python instaleld (https://www.python.org/downloads/windows/)

    I use Python 3 but also have test this script with Python 2

    Usage:

    python show_backup.py -d your_backup_directory

    Recommendation, just put a copy of show_backup.py in your backup directory, then you can just run as

    python show_backup.py -d .

     
    ...\backup>python show_backup.py -d .
    Looking for backup file from dir=.
    Total backup files: 53
    
      Oldest backup file: .\My Money 2019 Backup_2019-08-17_130614.mbf
          About 81 days, 6 hours, 47 minutes, 15 seconds ago.
    
      Most recent backup file: .\My Money 2019 Backup_2019-11-06_172341.mbf
          About 0 days, 1 hours, 29 minutes, 49 seconds ago.
    
    # List of all backup files found:
      Backup file: .\My Money 2019 Backup_2019-08-17_130614.mbf
          About 81 days, 6 hours, 47 minutes, 15 seconds ago.
      Backup file: .\My Money 2019 Backup_2019-08-17_232320.mbf
          About 80 days, 20 hours, 30 minutes, 9 seconds ago.
    
    ...
    
     Backup file: .\My Money 2019 Backup_2019-11-04_213319.mbf
          About 1 days, 21 hours, 20 minutes, 9 seconds ago.
      Backup file: .\My Money 2019 Backup_2019-11-06_172341.mbf
          About 0 days, 1 hours, 29 minutes, 49 seconds ago.
    


    Thursday, November 7, 2019 2:57 AM

All replies

  • Nice code, and makes for a good example. I use Agent Ransack, and it finds a bunch of *.mbf, including ones from 2012. When I need space, I will prune that down considerably.

    I had 11 in the recycle, and just now deleted them.

    Friday, November 8, 2019 5:24 PM
    Moderator
  • Thanks. Will give it a try
    Saturday, November 9, 2019 4:43 PM