ohsnap.app
A module to house the ohsnap application classes.
-
class ohsnap.app.OhsnapApp(main=None, **kwargs)[source]
An abstract class to represent a subcommand for the ohsnap base
application.
-
get_archives()[source]
Fetch the tarsnap archive list and create Archive objects for each
that is ohsnap formatted
-
pre_run()[source]
Configures the application prior to self.run()
Sets the tarsnap binary path based on the the –binary parameter
-
class ohsnap.app.OhsnapBackupApp(main=None, **kwargs)
The backup application which inherits OhsnapApp
-
snap()
Creates an ohsnap formatted backup. The tarsnap archive is labeled
in a unique format like so:
ohsnap:creationtime:retention:name.
-
class ohsnap.app.OhsnapListApp(main=None, **kwargs)
The list application which inherits OhsnapApp
-
list_archives()
Create and print prettytable containing a list of all Archives
sorted by creation date
-
class ohsnap.app.OhsnapPurgeApp(main=None, **kwargs)
The purge application which inherits OhsnapApp
-
purge_archives()
Purge all backups that have outlived their retention policy